image

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type DefaultImageFactory

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

func NewFactory

func NewFactory(dockerClient client.CommonAPIClient, keychain authn.Keychain) *DefaultImageFactory

func (*DefaultImageFactory) NewImage

func (f *DefaultImageFactory) NewImage(repoName string, daemon bool, imageOS string) (imgutil.Image, error)

type FetchOptions added in v1.0.3

type FetchOptions struct {
	Daemon     bool
	Platform   string
	PullPolicy config.PullPolicy
}

type Fetcher

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

func NewFetcher

func NewFetcher(logger logging.Logger, docker client.CommonAPIClient, opts ...FetcherOption) *Fetcher

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(ctx context.Context, name string, options FetchOptions) (imgutil.Image, error)

type FetcherOption added in v1.0.3

type FetcherOption func(c *Fetcher)

FetcherOption is a type of function that mutate settings on the client. Values in these functions are set through currying.

func WithRegistryMirrors added in v1.0.3

func WithRegistryMirrors(registryMirrors map[string]string) FetcherOption

WithRegistryMirrors supply your own mirrors for registry.

Jump to

Keyboard shortcuts

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