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

Method run

cli/command_blob_delete.go:26–37  ·  view source on GitHub ↗
(ctx context.Context, rep repo.DirectRepositoryWriter)

Source from the content-addressed store, hash-verified

24}
25
26func (c *commandBlobDelete) run(ctx context.Context, rep repo.DirectRepositoryWriter) error {
27 c.svc.dangerousCommand()
28
29 for _, b := range c.blobIDs {
30 err := rep.BlobStorage().DeleteBlob(ctx, blob.ID(b))
31 if err != nil {
32 return errors.Wrapf(err, "error deleting %v", b)
33 }
34 }
35
36 return nil
37}

Callers

nothing calls this directly

Calls 4

IDTypeAlias · 0.92
dangerousCommandMethod · 0.65
DeleteBlobMethod · 0.65
BlobStorageMethod · 0.65

Tested by

no test coverage detected