imageutil

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 24 Imported by: 171

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLease added in v0.8.0

func AddLease(f func(context.Context) error)

func CancelCacheLeases added in v0.6.0

func CancelCacheLeases()

func Config

func Config(ctx context.Context, str string, resolver remotes.Resolver, cache ContentCache, leaseManager leases.Manager, p *ocispecs.Platform) (digest.Digest, []byte, error)

func DetectManifestBlobMediaType added in v0.4.0

func DetectManifestBlobMediaType(dt []byte) (string, error)

func DetectManifestMediaType

func DetectManifestMediaType(ra content.ReaderAt) (string, error)

specs.MediaTypeImageManifest, // TODO: detect schema1/manifest-list

Types

type ContentCache

type ContentCache interface {
	content.Ingester
	content.Provider
	content.Manager
}

type ResolveToNonImageError added in v0.12.0

type ResolveToNonImageError struct {
	Ref     string
	Updated string
}

ResolveToNonImageError is returned by the resolver when the ref is mutated by policy to a non-image ref

func (ResolveToNonImageError) Error added in v0.12.0

func (e ResolveToNonImageError) Error() string

Jump to

Keyboard shortcuts

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