Skip to content

Commit 96dcb2d

Browse files
author
oanatmaria
committed
Implement Info in the oci store content implementation
Signed-off-by: oanatmaria <oana@aserto.com>
1 parent 991ecbb commit 96dcb2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/content/oci.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,10 @@ func (s *OCI) validateOCILayoutFile() error {
251251
return nil
252252
}
253253

254-
// TODO: implement (needed to create a content.Store)
255-
// TODO: do not return empty content.Info
254+
// Info will return metadata about content available in the content store.
256255
// Abort completely cancels the ingest operation targeted by ref.
257256
func (s *OCI) Info(ctx context.Context, dgst digest.Digest) (content.Info, error) {
258-
return content.Info{}, nil
257+
return s.Store.Info(ctx, dgst)
259258
}
260259

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

0 commit comments

Comments
 (0)