docker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCLIClient

type DockerCLIClient struct {
	DockerClient *client.Client
}

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

func (cli *DockerCLIClient) GetDockerImage(ctx context.Context, ref name.Reference) error

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

Jump to

Keyboard shortcuts

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