Documentation ¶
Index ¶
- type DockerCLIClient
- func (cli *DockerCLIClient) DeleteContainerByName(containerName string) error
- func (cli *DockerCLIClient) GetDockerImage(ctx context.Context, ref name.Reference) error
- func (cli *DockerCLIClient) GetImageSha(image string) (string, error)
- func (cli *DockerCLIClient) ListImages(ctx context.Context, reference string) ([]types.ImageSummary, error)
- func (cli *DockerCLIClient) PullDockerImage(image string) error
- func (cli *DockerCLIClient) SaveDockerImage(image, filePath string) error
- func (cli *DockerCLIClient) SaveDockerImageAsTarGz(image, filePath string) error
- func (cli *DockerCLIClient) StopContainerByName(containerName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerCLIClient ¶
func NewCliClient ¶
func NewCliClient() (*DockerCLIClient, error)
func (*DockerCLIClient) DeleteContainerByName ¶
func (cli *DockerCLIClient) DeleteContainerByName(containerName string) error
TODO: use golang client instead of docker
func (*DockerCLIClient) GetDockerImage ¶
TODO: not working
func (*DockerCLIClient) GetImageSha ¶
func (cli *DockerCLIClient) GetImageSha(image string) (string, error)
func (*DockerCLIClient) ListImages ¶
func (cli *DockerCLIClient) ListImages(ctx context.Context, reference string) ([]types.ImageSummary, error)
func (*DockerCLIClient) PullDockerImage ¶
func (cli *DockerCLIClient) PullDockerImage(image string) error
TODO: use golang client instead of docker
func (*DockerCLIClient) SaveDockerImage ¶
func (cli *DockerCLIClient) SaveDockerImage(image, filePath string) error
SaveDockerImage creates a tar as an un-squashed image TODO: use golang client instead of docker
func (*DockerCLIClient) SaveDockerImageAsTarGz ¶
func (cli *DockerCLIClient) SaveDockerImageAsTarGz(image, filePath string) error
TODO: use golang client instead of docker
func (*DockerCLIClient) StopContainerByName ¶
func (cli *DockerCLIClient) StopContainerByName(containerName string) error
TODO: use golang client instead of docker
Click to show internal directories.
Click to hide internal directories.