Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyNode ¶
func CopyNode(ctx context.Context, src content.ReadOnlyStorage, dst content.Storage, desc ocispec.Descriptor) error
CopyNode copies a single content from the source CAS to the destination CAS.
From: https://github.com/oras-project/oras-go/blob/main/copy.go
func FetchDecode ¶
func FetchDecode[T any](ctx context.Context, fetcher content.Fetcher, desc ocispec.Descriptor) (*T, error)
FetchDecode safely fetches the content described by the descriptor and decodes JSON into T. The fetched content is verified against the size and the digest.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.