mirror of https://github.com/restic/restic.git
Fix godoc comments.
This commit is contained in:
parent
de9a040d27
commit
67f91be8d0
|
@ -116,7 +116,7 @@ func (p *jsonLsPrinter) Snapshot(sn *restic.Snapshot) error {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print node in our custom JSON format, followed by a newline.
|
// Node formats node in our custom JSON format, followed by a newline.
|
||||||
func (p *jsonLsPrinter) Node(path string, node *restic.Node, isPrefixDirectory bool) error {
|
func (p *jsonLsPrinter) Node(path string, node *restic.Node, isPrefixDirectory bool) error {
|
||||||
if isPrefixDirectory {
|
if isPrefixDirectory {
|
||||||
return nil
|
return nil
|
||||||
|
@ -175,7 +175,7 @@ type ncduLsPrinter struct {
|
||||||
depth int
|
depth int
|
||||||
}
|
}
|
||||||
|
|
||||||
// lsSnapshotNcdu prints a restic snapshot in Ncdu save format.
|
// Snapshot prints a restic snapshot in Ncdu save format.
|
||||||
// It opens the JSON list. Nodes are added with lsNodeNcdu and the list is closed by lsCloseNcdu.
|
// It opens the JSON list. Nodes are added with lsNodeNcdu and the list is closed by lsCloseNcdu.
|
||||||
// Format documentation: https://dev.yorhel.nl/ncdu/jsonfmt
|
// Format documentation: https://dev.yorhel.nl/ncdu/jsonfmt
|
||||||
func (p *ncduLsPrinter) Snapshot(sn *restic.Snapshot) error {
|
func (p *ncduLsPrinter) Snapshot(sn *restic.Snapshot) error {
|
||||||
|
|
|
@ -20,7 +20,7 @@ type Limiter interface {
|
||||||
// for downloads.
|
// for downloads.
|
||||||
Downstream(r io.Reader) io.Reader
|
Downstream(r io.Reader) io.Reader
|
||||||
|
|
||||||
// Downstream returns a rate limited reader that is intended to be used
|
// DownstreamWriter returns a rate limited reader that is intended to be used
|
||||||
// for downloads.
|
// for downloads.
|
||||||
DownstreamWriter(r io.Writer) io.Writer
|
DownstreamWriter(r io.Writer) io.Writer
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,6 @@ type Migration interface {
|
||||||
// Name returns a short name.
|
// Name returns a short name.
|
||||||
Name() string
|
Name() string
|
||||||
|
|
||||||
// Descr returns a description what the migration does.
|
// Desc returns a description what the migration does.
|
||||||
Desc() string
|
Desc() string
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ type WindowsAttributes struct {
|
||||||
SecurityDescriptor *[]byte `generic:"security_descriptor"`
|
SecurityDescriptor *[]byte `generic:"security_descriptor"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// windowsAttrsToGenericAttributes converts the WindowsAttributes to a generic attributes map using reflection
|
// WindowsAttrsToGenericAttributes converts the WindowsAttributes to a generic attributes map using reflection
|
||||||
func WindowsAttrsToGenericAttributes(windowsAttributes WindowsAttributes) (attrs map[GenericAttributeType]json.RawMessage, err error) {
|
func WindowsAttrsToGenericAttributes(windowsAttributes WindowsAttributes) (attrs map[GenericAttributeType]json.RawMessage, err error) {
|
||||||
// Get the value of the WindowsAttributes
|
// Get the value of the WindowsAttributes
|
||||||
windowsAttributesValue := reflect.ValueOf(windowsAttributes)
|
windowsAttributesValue := reflect.ValueOf(windowsAttributes)
|
||||||
|
|
|
@ -79,9 +79,9 @@ const (
|
||||||
ConfigFile FileType = backend.ConfigFile
|
ConfigFile FileType = backend.ConfigFile
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// WriteableFileType defines the different data types that can be modified via SaveUnpacked or RemoveUnpacked.
|
||||||
type WriteableFileType backend.FileType
|
type WriteableFileType backend.FileType
|
||||||
|
|
||||||
// These are the different data types that can be modified via SaveUnpacked or RemoveUnpacked.
|
|
||||||
const (
|
const (
|
||||||
WriteableSnapshotFile WriteableFileType = WriteableFileType(SnapshotFile)
|
WriteableSnapshotFile WriteableFileType = WriteableFileType(SnapshotFile)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue