From a5cf23a80d8bb7270dba754e81d1dca82a01272b Mon Sep 17 00:00:00 2001 From: oanatmaria <49147761+oanatmaria@users.noreply.github.com> Date: Tue, 21 Jun 2022 10:24:54 +0300 Subject: [PATCH] Implement Info in the oci store content implementation (#187) Signed-off-by: oanatmaria --- pkg/content/oci.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/content/oci.go b/pkg/content/oci.go index b643f61f..c5849ad7 100644 --- a/pkg/content/oci.go +++ b/pkg/content/oci.go @@ -251,11 +251,10 @@ func (s *OCI) validateOCILayoutFile() error { return nil } -// TODO: implement (needed to create a content.Store) -// TODO: do not return empty content.Info +// Info will return metadata about content available in the content store. // Abort completely cancels the ingest operation targeted by ref. func (s *OCI) Info(ctx context.Context, dgst digest.Digest) (content.Info, error) { - return content.Info{}, nil + return s.Store.Info(ctx, dgst) } // TODO: implement (needed to create a content.Store)