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 ¶
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 ¶
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 ¶
ImageTarLoad calls `docker load` on an image tar
Click to show internal directories.
Click to hide internal directories.