1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-21 23:33:03 +00:00

chore: fix some function names

Signed-off-by: dropbigfish <fillfish@foxmail.com>
This commit is contained in:
dropbigfish 2024-09-01 00:54:39 +08:00
parent e5cdae9c84
commit 6f9513d88c
4 changed files with 4 additions and 4 deletions

View file

@ -329,7 +329,7 @@ type SnapshotGroup struct {
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 {
if grouped {
snapshotGroups := []SnapshotGroup{}

View file

@ -29,7 +29,7 @@ func calculateProgressInterval(show bool, json bool) time.Duration {
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 {
if !show {
return nil

View file

@ -156,7 +156,7 @@ func enableBackupPrivilege() {
}
}
// enableBackupPrivilege enables privilege for restoring security descriptors
// enableRestorePrivilege enables privilege for restoring security descriptors
func enableRestorePrivilege() {
err := enableProcessPrivileges([]string{SeRestorePrivilege, SeSecurityPrivilege, SeTakeOwnershipPrivilege})
if err != nil {

View file

@ -784,7 +784,7 @@ func (p *VssSnapshot) GetSnapshotDeviceObject() string {
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) {
vssInstance, err := loadIVssBackupComponentsConstructor()
if err != nil {