packageimport

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS(ctx context.Context, src fs.FS) (packagecontent.Files, error)

func Folder

func Folder(ctx context.Context, path string) (packagecontent.Files, error)

func Image

func Image(ctx context.Context, image v1.Image) (m packagecontent.Files, err error)

func PulledImage

func PulledImage(ctx context.Context, ref string) (packagecontent.Files, error)

Types

type PullConfig added in v1.7.0

type PullConfig struct {
	Insecure bool
}

func (*PullConfig) Option added in v1.7.0

func (c *PullConfig) Option(opts ...PullOption)

type PullOption added in v1.7.0

type PullOption interface {
	ConfigurePull(*PullConfig)
}

type Puller added in v1.7.0

type Puller struct{}

func NewPuller added in v1.7.0

func NewPuller() *Puller

func (*Puller) Pull added in v1.7.0

func (p *Puller) Pull(ctx context.Context, ref string, opts ...PullOption) (packagecontent.Files, error)

type Registry added in v1.6.0

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

Registry handles pulling images from a registry during PKO runtime.

func NewRegistry added in v1.6.0

func NewRegistry(registryHostOverrides map[string]string) *Registry

func (*Registry) Pull added in v1.6.0

func (r *Registry) Pull(ctx context.Context, image string) (packagecontent.Files, error)

type WithInsecure added in v1.7.0

type WithInsecure bool

func (WithInsecure) ConfigurePull added in v1.7.0

func (w WithInsecure) ConfigurePull(c *PullConfig)

Jump to

Keyboard shortcuts

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