package imageutil
import "github.com/moby/buildkit/util/imageutil"
Index ¶
- func AddLease(f func(context.Context) error)
- func CancelCacheLeases()
- 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(dt []byte) (string, error)
- func DetectManifestMediaType(ra content.ReaderAt) (string, error)
- type ContentCache
- type ResolveToNonImageError
Functions ¶
func AddLease ¶
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 DetectManifestMediaType ¶
specs.MediaTypeImageManifest, // TODO: detect schema1/manifest-list
Types ¶
type ContentCache ¶
type ResolveToNonImageError ¶
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 ¶
- Version
- v0.12.1
- Published
- Aug 2, 2023
- Platform
- js/wasm
- Imports
- 27 packages
- Last checked
- 2 minutes ago –
Tools for package owners.