diff --git a/cmd/restic/cmd_ls.go b/cmd/restic/cmd_ls.go index 9fbaa3fb3..bba81a070 100644 --- a/cmd/restic/cmd_ls.go +++ b/cmd/restic/cmd_ls.go @@ -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 { if isPrefixDirectory { return nil @@ -175,7 +175,7 @@ type ncduLsPrinter struct { 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. // Format documentation: https://dev.yorhel.nl/ncdu/jsonfmt func (p *ncduLsPrinter) Snapshot(sn *restic.Snapshot) error { diff --git a/internal/backend/limiter/limiter.go b/internal/backend/limiter/limiter.go index 7ba5ad02b..0416c2f5b 100644 --- a/internal/backend/limiter/limiter.go +++ b/internal/backend/limiter/limiter.go @@ -20,7 +20,7 @@ type Limiter interface { // for downloads. 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. DownstreamWriter(r io.Writer) io.Writer diff --git a/internal/migrations/interface.go b/internal/migrations/interface.go index 63682b46b..c0b813655 100644 --- a/internal/migrations/interface.go +++ b/internal/migrations/interface.go @@ -19,6 +19,6 @@ type Migration interface { // Name returns a short name. Name() string - // Descr returns a description what the migration does. + // Desc returns a description what the migration does. Desc() string } diff --git a/internal/restic/node_windows.go b/internal/restic/node_windows.go index 7df426665..09316f725 100644 --- a/internal/restic/node_windows.go +++ b/internal/restic/node_windows.go @@ -18,7 +18,7 @@ type WindowsAttributes struct { 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) { // Get the value of the WindowsAttributes windowsAttributesValue := reflect.ValueOf(windowsAttributes) diff --git a/internal/restic/repository.go b/internal/restic/repository.go index 977950f59..93e2831e0 100644 --- a/internal/restic/repository.go +++ b/internal/restic/repository.go @@ -79,9 +79,9 @@ const ( ConfigFile FileType = backend.ConfigFile ) +// WriteableFileType defines the different data types that can be modified via SaveUnpacked or RemoveUnpacked. type WriteableFileType backend.FileType -// These are the different data types that can be modified via SaveUnpacked or RemoveUnpacked. const ( WriteableSnapshotFile WriteableFileType = WriteableFileType(SnapshotFile) )