MCPcopy
hub / github.com/perkeep/perkeep / RemoveBlobs

Method RemoveBlobs

pkg/blobserver/namespace/ns.go:146–153  ·  view source on GitHub ↗
(ctx context.Context, blobs []blob.Ref)

Source from the content-addressed store, hash-verified

144}
145
146func (ns *nsto) RemoveBlobs(ctx context.Context, blobs []blob.Ref) error {
147 for _, br := range blobs {
148 if err := ns.inventory.Delete(br.String()); err != nil {
149 return err
150 }
151 }
152 return nil
153}
154
155func (ns *nsto) StatBlobs(ctx context.Context, blobs []blob.Ref, fn func(blob.SizedRef) error) error {
156 for _, br := range blobs {

Callers

nothing calls this directly

Calls 2

DeleteMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected