MCPcopy
hub / github.com/restic/restic / NewCounter

Method NewCounter

internal/ui/progress/printer.go:10–10  ·  view source on GitHub ↗

NewCounter returns a new progress counter. It is not shown if --quiet or --json is specified.

(description string)

Source from the content-addressed store, hash-verified

8type Printer interface {
9 // NewCounter returns a new progress counter. It is not shown if --quiet or --json is specified.
10 NewCounter(description string) *Counter
11 // NewCounterTerminalOnly returns a new progress counter that is only shown if stdout points to a
12 // terminal. It is not shown if --quiet or --json is specified.
13 NewCounterTerminalOnly(description string) *Counter

Callers 11

runCheckFunction · 0.95
RepairPacksFunction · 0.65
RepairIndexFunction · 0.65
rewriteIndexFilesFunction · 0.65
decidePackActionFunction · 0.65
ExecuteMethod · 0.65
deleteFilesFunction · 0.65
getUsedBlobsFunction · 0.65
runRecoverFunction · 0.65
copyTreeFunction · 0.65
runForgetFunction · 0.65

Implementers 3

NoopPrinterinternal/ui/progress/printer.go
TestPrinterinternal/ui/progress/printer.go
jsonErrorPrintercmd/restic/cmd_check.go

Calls

no outgoing calls

Tested by

no test coverage detected