cli

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultImageTarer

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

DefaultImageTarer exports/imports images from an ImageStore.

func NewDefaultImageTarer

func NewDefaultImageTarer(store *storage.ImageStore) DefaultImageTarer

NewDefaultImageTarer creates a new DefaultImageTarer with the given manifests, layers, and rootdir.

func (DefaultImageTarer) CreateTarReadCloser

func (tarer DefaultImageTarer) CreateTarReadCloser(imageName image.Name) (io.Reader, error)

CreateTarReadCloser exports an image from the image store as a tar, and returns a reader for the tar that automatically closes on EOF.

func (DefaultImageTarer) CreateTarReader

func (tarer DefaultImageTarer) CreateTarReader(imageName image.Name) (io.Reader, error)

CreateTarReader exports an image from the image store as a tar, and returns a reader for the tar.

type DockerClient

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

DockerClient connects to docker daemon socket

func NewDockerClient

func NewDockerClient(
	sandboxDir string, host, scheme, version string, headers http.Header) (*DockerClient, error)

NewDockerClient creates a new DockerClient

func (*DockerClient) ImagePull

func (cli *DockerClient) ImagePull(ctx context.Context, registry, repo, tag string) error

ImagePull calls `docker pull` on an image

func (*DockerClient) ImagePush

func (cli *DockerClient) ImagePush(ctx context.Context, registry, repo, tag string) error

ImagePush calls `docker push` on an image

func (*DockerClient) ImageTarLoad

func (cli *DockerClient) ImageTarLoad(ctx context.Context, input io.Reader) error

ImageTarLoad calls `docker load` on an image tar

Jump to

Keyboard shortcuts

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