lib

package
v0.0.0-...-d946818 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidImageScheme = fmt.Errorf("only supported scheme is docker://")
	ErrInvalidImageName   = fmt.Errorf("failed to parse image name")
)

Functions

func GetTLSClient

func GetTLSClient(skipTLSCheck bool) *http.Client

GetTLSClient gets an HTTP client that behaves like the default HTTP client, but optionally skips the TLS certificate verification.

Types

type OCIFetcher

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

OCIFetcher is a struct that can be used to fetch OCI images from a remote registry.

func NewOCIFetcher

func NewOCIFetcher(username, password string, insecureAllowHTTP, insecureSkipTLSVerification, debug bool) *OCIFetcher

NewOCIFetcher returns a new OCIFetcher, configured with the provided arguments.

func (*OCIFetcher) Fetch

func (of *OCIFetcher) Fetch(u *URL, outputDir string) error

Fetch will download the image represented by u into outputDir.

type URL

type URL struct {
	Host    string
	Name    string
	Version string
}

func NewURL

func NewURL(url string) (*URL, error)

func (*URL) String

func (u *URL) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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