orasutil

package
v0.1.0-beta.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyNode

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.

func ReadAll

func ReadAll(r io.Reader, desc ocispec.Descriptor) ([]byte, error)

ReadAll safely reads the content described by the descriptor. The read content is verified against the size and the digest using a VerifyReader.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL