Skip to content

Commit

Permalink
docs(Store): revise doc to be more accurate (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT authored Jan 27, 2025
1 parent 0ab0ea6 commit 693899b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions oci_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
3 changes: 1 addition & 2 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 693899b

Please sign in to comment.