packageimport

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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

type PullConfig struct {
	Insecure bool
}

func (*PullConfig) Option

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

type PullOption

type PullOption interface {
	ConfigurePull(*PullConfig)
}

type Puller

type Puller struct{}

func NewPuller

func NewPuller() *Puller

func (*Puller) Pull

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

type Registry

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

Registry handles pulling images from a registry during PKO runtime.

func NewRegistry

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

func (*Registry) Pull

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

type WithInsecure

type WithInsecure bool

func (WithInsecure) ConfigurePull

func (w WithInsecure) ConfigurePull(c *PullConfig)

Jump to

Keyboard shortcuts

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