package containerdutil

import "github.com/containerd/stargz-snapshotter/util/containerdutil"

Index

Functions

func FetchManifestPlatform

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

func ValidateMediaType(b []byte, mt string) error

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.

Source Files

manifest.go

Version
v0.16.3 (latest)
Published
Dec 12, 2024
Platform
linux/amd64
Imports
12 packages
Last checked
2 weeks ago

Tools for package owners.