From 693899b2309903b332891d7176002c1c74160f48 Mon Sep 17 00:00:00 2001 From: Shiwei Zhang Date: Mon, 27 Jan 2025 11:09:41 +0800 Subject: [PATCH] docs(Store): revise doc to be more accurate (#34) Signed-off-by: Shiwei Zhang --- oci_store.go | 3 +-- store.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/oci_store.go b/oci_store.go index b75dad1..6212e5b 100644 --- a/oci_store.go +++ b/oci_store.go @@ -129,8 +129,7 @@ func (s *OCIStore) FetchBlob(ctx context.Context, _ string, desc ocispec.Descrip return content.FetchAll(ctx, s.store, desc) } -// FetchManifest returns the referenced image manifest as given by the -// descriptor. +// FetchManifest returns the referenced manifest as given by the descriptor. func (s *OCIStore) FetchManifest(ctx context.Context, _ string, desc ocispec.Descriptor) ([]byte, error) { return content.FetchAll(ctx, s.store, desc) } diff --git a/store.go b/store.go index a159fb2..4824fa8 100644 --- a/store.go +++ b/store.go @@ -41,7 +41,6 @@ type Store interface { // SBoMs. FetchBlob(ctx context.Context, repo string, desc ocispec.Descriptor) ([]byte, error) - // FetchManifest returns the referenced image manifest as given by the - // descriptor. + // FetchManifest returns the referenced manifest as given by the descriptor. FetchManifest(ctx context.Context, repo string, desc ocispec.Descriptor) ([]byte, error) }