registry

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFetcher

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

func NewDefaultFetcher

func NewDefaultFetcher(tlsCfg TLSConfig) DefaultFetcher

func (DefaultFetcher) Fetch

func (d DefaultFetcher) Fetch(keychain authn.Keychain, src string) (v1.Image, error)

type DefaultRelocator

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

func NewDefaultRelocator

func NewDefaultRelocator(writer io.Writer, tlsCfg TLSConfig) DefaultRelocator

func (DefaultRelocator) Relocate

func (d DefaultRelocator) Relocate(keychain authn.Keychain, src v1.Image, destination string) (string, error)

type DefaultSourceUploader

type DefaultSourceUploader struct{}

func (DefaultSourceUploader) Upload

func (d DefaultSourceUploader) Upload(dstImgRefStr, srcPath string, writer io.Writer, tlsCfg TLSConfig) (string, error)

type DefaultUtilProvider

type DefaultUtilProvider struct{}

func (DefaultUtilProvider) Fetcher

func (d DefaultUtilProvider) Fetcher(config TLSConfig) Fetcher

func (DefaultUtilProvider) Relocator

func (d DefaultUtilProvider) Relocator(writer io.Writer, tlsCfg TLSConfig, changeState bool) Relocator

func (DefaultUtilProvider) SourceUploader

func (d DefaultUtilProvider) SourceUploader(changeState bool) SourceUploader

type DiscardRelocator

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

func NewDiscardRelocator

func NewDiscardRelocator(writer io.Writer) DiscardRelocator

func (DiscardRelocator) Relocate

func (d DiscardRelocator) Relocate(keychain authn.Keychain, src v1.Image, destination string) (string, error)

type DiscardSourceUploader

type DiscardSourceUploader struct{}

func (DiscardSourceUploader) Upload

func (d DiscardSourceUploader) Upload(dstImgRefStr, srcPath string, writer io.Writer, tlsCfg TLSConfig) (string, error)

type Fetcher

type Fetcher interface {
	Fetch(keychain authn.Keychain, src string) (v1.Image, error)
}

type Relocator

type Relocator interface {
	Relocate(keychain authn.Keychain, src v1.Image, destination string) (string, error)
}

type SourceUploader

type SourceUploader interface {
	Upload(dstImgRefStr, srcPath string, writer io.Writer, tlsCfg TLSConfig) (string, error)
}

type TLSConfig

type TLSConfig struct {
	CaCertPath  string
	VerifyCerts bool
}

func (*TLSConfig) Transport

func (t *TLSConfig) Transport() (*http.Transport, error)

type UtilProvider

type UtilProvider interface {
	Relocator(writer io.Writer, tlsCfg TLSConfig, changeState bool) Relocator
	SourceUploader(changeState bool) SourceUploader
	Fetcher(config TLSConfig) Fetcher
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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