direct

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPool

func CertPool(certificatePath string) (*x509.CertPool, error)

func TLSRoundTripper

func TLSRoundTripper(certificatePath string) (http.RoundTripper, error)

Types

type Client

type Client struct {
	Host    string
	Secure  bool
	Options []remote.Option
	Context contextpkg.Context
}

func NewClient

func NewClient(host string, transport http.RoundTripper, username string, password string, token string, context contextpkg.Context) *Client

func (*Client) DeleteImage

func (self *Client) DeleteImage(imageName string) error

func (*Client) ListImages

func (self *Client) ListImages() ([]string, error)

func (*Client) PullTarball

func (self *Client) PullTarball(context contextpkg.Context, imageName string, path string) error

func (*Client) PushGzippedTarball

func (self *Client) PushGzippedTarball(context contextpkg.Context, path string, imageName string) error

func (*Client) PushGzippedTarballFromURL added in v0.1.1

func (self *Client) PushGzippedTarballFromURL(context contextpkg.Context, url exturl.URL, imageName string) (string, error)

func (*Client) PushLayer

func (self *Client) PushLayer(readCloser io.ReadCloser, imageName string) error

func (*Client) PushTarball

func (self *Client) PushTarball(context contextpkg.Context, path string, imageName string) error

Jump to

Keyboard shortcuts

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