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

Method run

cli/command_index_inspect.go:41–55  ·  view source on GitHub ↗
(ctx context.Context, rep repo.DirectRepository)

Source from the content-addressed store, hash-verified

39}
40
41func (c *commandIndexInspect) run(ctx context.Context, rep repo.DirectRepository) error {
42 output := make(chan indexBlobPlusContentInfo)
43
44 var wg sync.WaitGroup
45
46 wg.Go(func() {
47 c.dumpIndexBlobEntries(output)
48 })
49
50 err := c.runWithOutput(ctx, rep, output)
51 close(output)
52 wg.Wait()
53
54 return err
55}
56
57func (c *commandIndexInspect) runWithOutput(ctx context.Context, rep repo.DirectRepository, output chan indexBlobPlusContentInfo) error {
58 switch {

Callers

nothing calls this directly

Calls 3

dumpIndexBlobEntriesMethod · 0.95
runWithOutputMethod · 0.95
WaitMethod · 0.65

Tested by

no test coverage detected