MCPcopy
hub / github.com/kopia/kopia / run

Method run

cli/command_blob_show.go:34–42  ·  view source on GitHub ↗
(ctx context.Context, rep repo.DirectRepository)

Source from the content-addressed store, hash-verified

32}
33
34func (c *commandBlobShow) run(ctx context.Context, rep repo.DirectRepository) error {
35 for _, blobID := range c.blobShowIDs {
36 if err := c.maybeDecryptBlob(ctx, c.out.stdout(), rep, blob.ID(blobID)); err != nil {
37 return errors.Wrap(err, "error presenting blob")
38 }
39 }
40
41 return nil
42}
43
44func (c *commandBlobShow) maybeDecryptBlob(ctx context.Context, w io.Writer, rep repo.DirectRepository, blobID blob.ID) error {
45 var (

Callers

nothing calls this directly

Calls 3

maybeDecryptBlobMethod · 0.95
IDTypeAlias · 0.92
stdoutMethod · 0.65

Tested by

no test coverage detected