package imageutil

import "github.com/moby/buildkit/util/imageutil"

Index

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) (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

Source Files

config.go schema1.go

Version
v0.14.0-rc1
Published
May 31, 2024
Platform
js/wasm
Imports
24 packages
Last checked
1 minute ago

Tools for package owners.