imagetools

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 33 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistryAuthForRef added in v0.5.0

func RegistryAuthForRef(ref string, a Auth) (string, error)

Types

type Auth

type Auth interface {
	GetAuthConfig(registryHostname string) (clitypes.AuthConfig, error)
}

type Opt

type Opt struct {
	Auth           Auth
	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) ([]byte, ocispec.Descriptor, 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, ocispec.Descriptor, error)

func (*Resolver) GetDescriptor

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

func (*Resolver) ImageConfig added in v0.8.0

func (r *Resolver) ImageConfig(ctx context.Context, in string, platform *ocispec.Platform) (digest.Digest, []byte, error)

func (*Resolver) Push

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

func (*Resolver) Resolve

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

type Source added in v0.9.0

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

Jump to

Keyboard shortcuts

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