From feb7afbcc9757ba119c1f5806796e843d342bb72 Mon Sep 17 00:00:00 2001 From: Vlad Iovanov Date: Thu, 9 Jun 2022 20:09:49 +0300 Subject: [PATCH] Implement Delete in the oci store content implementation (#174) Signed-off-by: viovanov --- pkg/content/oci.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/content/oci.go b/pkg/content/oci.go index 15124496..b643f61f 100644 --- a/pkg/content/oci.go +++ b/pkg/content/oci.go @@ -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)