imagetools

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 38 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistryAuthForRef added in v0.5.0

func RegistryAuthForRef(ref string, auth authprovider.AuthConfigProvider) (string, error)

Types

type DescWithSource added in v0.30.0

type DescWithSource struct {
	ocispecs.Descriptor
	Source *Source
}

type Opt

type Opt struct {
	Auth           authprovider.AuthConfigProvider
	RegistryConfig map[string]resolver.RegistryConfig
}

type Printer added in v0.8.0

type Printer struct {
	// contains filtered or unexported fields
}

func NewPrinter added in v0.8.0

func NewPrinter(ctx context.Context, opt Opt, name string, format string) (*Printer, error)

func (*Printer) Print added in v0.8.0

func (p *Printer) Print(raw bool, out io.Writer) error

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(opt Opt) *Resolver

func (*Resolver) Combine

func (r *Resolver) Combine(ctx context.Context, srcs []*Source, ann map[exptypes.AnnotationKey]string, preferIndex bool, platforms []ocispecs.Platform) ([]byte, ocispecs.Descriptor, []DescWithSource, error)

func (*Resolver) Copy added in v0.9.0

func (r *Resolver) Copy(ctx context.Context, src *Source, dest reference.Named) error

func (*Resolver) Get

func (r *Resolver) Get(ctx context.Context, in string) ([]byte, ocispecs.Descriptor, error)

func (*Resolver) GetDescriptor

func (r *Resolver) GetDescriptor(ctx context.Context, in string, desc ocispecs.Descriptor) ([]byte, error)

func (*Resolver) Push

func (r *Resolver) Push(ctx context.Context, ref reference.Named, desc ocispecs.Descriptor, dt []byte) error

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, in string) (string, ocispecs.Descriptor, error)

type Source added in v0.9.0

type Source struct {
	Desc ocispecs.Descriptor
	Ref  reference.Named
}

Jump to

Keyboard shortcuts

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