mirror of
https://github.com/restic/restic.git
synced 2025-10-09 06:01:12 +00:00
Fix godoc comments.
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
)
|
||||
|
Reference in New Issue
Block a user