forked from TrueCloudLab/restic
Merge pull request #5032 from dropbigfish/master
chore: fix some function name comments
This commit is contained in:
commit
9a6059eb71
4 changed files with 4 additions and 4 deletions
|
@ -329,7 +329,7 @@ type SnapshotGroup struct {
|
||||||
Snapshots []Snapshot `json:"snapshots"`
|
Snapshots []Snapshot `json:"snapshots"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// printSnapshotsJSON writes the JSON representation of list to stdout.
|
// printSnapshotGroupJSON writes the JSON representation of list to stdout.
|
||||||
func printSnapshotGroupJSON(stdout io.Writer, snGroups map[string]restic.Snapshots, grouped bool) error {
|
func printSnapshotGroupJSON(stdout io.Writer, snGroups map[string]restic.Snapshots, grouped bool) error {
|
||||||
if grouped {
|
if grouped {
|
||||||
snapshotGroups := []SnapshotGroup{}
|
snapshotGroups := []SnapshotGroup{}
|
||||||
|
|
|
@ -29,7 +29,7 @@ func calculateProgressInterval(show bool, json bool) time.Duration {
|
||||||
return interval
|
return interval
|
||||||
}
|
}
|
||||||
|
|
||||||
// newTerminalProgressMax returns a progress.Counter that prints to stdout or terminal if provided.
|
// newGenericProgressMax returns a progress.Counter that prints to stdout or terminal if provided.
|
||||||
func newGenericProgressMax(show bool, max uint64, description string, print func(status string, final bool)) *progress.Counter {
|
func newGenericProgressMax(show bool, max uint64, description string, print func(status string, final bool)) *progress.Counter {
|
||||||
if !show {
|
if !show {
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -156,7 +156,7 @@ func enableBackupPrivilege() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// enableBackupPrivilege enables privilege for restoring security descriptors
|
// enableRestorePrivilege enables privilege for restoring security descriptors
|
||||||
func enableRestorePrivilege() {
|
func enableRestorePrivilege() {
|
||||||
err := enableProcessPrivileges([]string{seRestorePrivilege, seSecurityPrivilege, seTakeOwnershipPrivilege})
|
err := enableProcessPrivileges([]string{seRestorePrivilege, seSecurityPrivilege, seTakeOwnershipPrivilege})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -785,7 +785,7 @@ func (p *VssSnapshot) GetSnapshotDeviceObject() string {
|
||||||
return p.snapshotDeviceObject
|
return p.snapshotDeviceObject
|
||||||
}
|
}
|
||||||
|
|
||||||
// initializeCOMInterface initialize an instance of the VSS COM api
|
// initializeVssCOMInterface initialize an instance of the VSS COM api
|
||||||
func initializeVssCOMInterface() (*ole.IUnknown, error) {
|
func initializeVssCOMInterface() (*ole.IUnknown, error) {
|
||||||
vssInstance, err := loadIVssBackupComponentsConstructor()
|
vssInstance, err := loadIVssBackupComponentsConstructor()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue