imageutil

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLease

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

func CancelCacheLeases

func CancelCacheLeases()

func Config

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

func DetectManifestBlobMediaType

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

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

func (e ResolveToNonImageError) Error() string

Jump to

Keyboard shortcuts

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