Documentation ¶
Index ¶
- func FetchManifestPlatform(ctx context.Context, fetcher remotes.Fetcher, desc ocispec.Descriptor, ...) (ocispec.Manifest, error)
- func ManifestDesc(ctx context.Context, provider content.Provider, image ocispec.Descriptor, ...) (ocispec.Descriptor, error)
- func ValidateMediaType(b []byte, mt string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchManifestPlatform ¶ added in v0.13.0
func FetchManifestPlatform(ctx context.Context, fetcher remotes.Fetcher, desc ocispec.Descriptor, platform ocispec.Platform) (ocispec.Manifest, error)
Fetch manifest of the specified platform
func ManifestDesc ¶
func ManifestDesc(ctx context.Context, provider content.Provider, image ocispec.Descriptor, platform platforms.MatchComparer) (ocispec.Descriptor, error)
func ValidateMediaType ¶ added in v0.10.1
ValidateMediaType returns an error if the byte slice is invalid JSON or if the media type identifies the blob as one format but it contains elements of another format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.