MCPcopy
hub / github.com/perkeep/perkeep / RemoveBlob

Method RemoveBlob

pkg/client/remove.go:91–93  ·  view source on GitHub ↗

RemoveBlob removes the provided blob. An error is returned if the server failed to remove the blob. Removing a non-existent blob isn't an error.

(ctx context.Context, b blob.Ref)

Source from the content-addressed store, hash-verified

89// RemoveBlob removes the provided blob. An error is returned if the server failed to remove
90// the blob. Removing a non-existent blob isn't an error.
91func (c *Client) RemoveBlob(ctx context.Context, b blob.Ref) error {
92 return c.RemoveBlobs(ctx, []blob.Ref{b})
93}
94
95func stringKeys(m map[blob.Ref]bool) (s []string) {
96 s = make([]string, 0, len(m))

Callers

nothing calls this directly

Calls 1

RemoveBlobsMethod · 0.95

Tested by

no test coverage detected