Skip to content

Commit

Permalink
Implement Delete in the oci store content implementation (#174)
Browse files Browse the repository at this point in the history
Signed-off-by: viovanov <vlad@aserto.com>
  • Loading branch information
viovanov committed Jun 9, 2022
1 parent d3ec86b commit feb7afb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/content/oci.go
Expand Up @@ -276,10 +276,9 @@ func (s *OCI) Walk(ctx context.Context, fn content.WalkFunc, filters ...string)
return errors.New("not yet implemented: Walk (content.Store interface)")
}

// TODO: implement (needed to create a content.Store)
// Delete removes the content from the store.
func (s *OCI) Delete(ctx context.Context, dgst digest.Digest) error {
return errors.New("not yet implemented: Delete (content.Store interface)")
return s.Store.Delete(ctx, dgst)
}

// TODO: implement (needed to create a content.Store)
Expand Down

0 comments on commit feb7afb

Please sign in to comment.