manifestutil

package
v2.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManifestEntry

func CreateManifestEntry(parsedRef *referenceutil.ImageReference, desc ocispec.Descriptor, rawData []byte) (manifesttypes.DockerManifestEntry, error)

CreateManifestEntry creates a DockerManifestEntry with proper ManifestStruct

func CreateResolver

func CreateResolver(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, insecure bool) (remotes.Resolver, error)

CreateResolver creates a resolver for registry operations

func FetchManifestData

func FetchManifestData(ctx context.Context, resolver remotes.Resolver, ref string) (ocispec.Descriptor, []byte, error)

FetchManifestData fetches manifest descriptor and data from the registry

func GetManifest

func GetManifest(ctx context.Context, parsedRef *referenceutil.ImageReference, globalOptions types.GlobalCommandOptions, insecure bool) (interface{}, ocispec.Descriptor, []byte, error)

GetManifest returns manifest, descriptor, and raw data in one call

func GetPlatform

func GetPlatform(ctx context.Context, domain string, globalOptions types.GlobalCommandOptions, insecure bool, ref string, manifest interface{}) (*ocispec.Platform, error)

GetPlatform return the platform information from manifest config

func NewNoSuchManifestError

func NewNoSuchManifestError(ref string) error

NewNoSuchManifestError creates a new NoSuchManifestError

func ParseManifest

func ParseManifest(mediaType string, data []byte) (interface{}, error)

ParseManifest parses manifest data based on media type

Types

type NoSuchManifestError

type NoSuchManifestError struct {
	Ref string
}

NoSuchManifestError represents an error when a manifest is not found

func (*NoSuchManifestError) Error

func (e *NoSuchManifestError) Error() string

Jump to

Keyboard shortcuts

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