MCPcopy Index your code
hub / github.com/kopia/kopia / getRestoreProgress

Method getRestoreProgress

cli/command_restore.go:393–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393func (c *commandRestore) getRestoreProgress() RestoreProgress {
394 if rp := c.svc.getRestoreProgress(); rp != nil {
395 return rp
396 }
397
398 pf := c.svc.getProgress().progressFlags
399
400 return &cliRestoreProgress{
401 enableProgress: pf.enableProgress,
402 out: pf.out,
403 progressUpdateInterval: pf.progressUpdateInterval,
404 eta: timetrack.Start(),
405 }
406}
407
408func (c *commandRestore) run(ctx context.Context, rep repo.Repository) error {
409 output, oerr := c.restoreOutput(ctx, rep)

Callers 1

runMethod · 0.95

Calls 3

StartFunction · 0.92
getRestoreProgressMethod · 0.65
getProgressMethod · 0.65

Tested by

no test coverage detected