Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Docker ¶
type Docker interface { Build(ctx context.Context, file io.Reader, tag Tag, dockerfile Dockerfile) (job.Log, error) Run(ctx context.Context, opts RuntimeOptions, tag Tag, cmd Command) (ContainerID, job.Log, error) RemoveContainer(ctx context.Context, containerID ContainerID) error RemoveImage(ctx context.Context, tag Tag) error ExitCode(ctx context.Context, containerID ContainerID) (ExitCode, error) Status() error }
Docker is a interface describe docker service.
type Dockerfile ¶
Dockerfile represents a path to dockerfile
type Environments ¶
type Environments map[string]interface{}
Environments represents a docker `-e` option.
func (Environments) Array ¶
func (e Environments) Array() []string
Array returns string array of environments
type Moby ¶
type Moby interface { ImageBuild( ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions, ) (types.ImageBuildResponse, error) ContainerCreate( ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string, ) (container.ContainerCreateCreatedBody, error) ContainerStart( ctx context.Context, containerID string, options types.ContainerStartOptions, ) error ContainerLogs( ctx context.Context, container string, options types.ContainerLogsOptions, ) (io.ReadCloser, error) ContainerRemove( ctx context.Context, containerID string, options types.ContainerRemoveOptions, ) error ImageRemove( ctx context.Context, imageID string, options types.ImageRemoveOptions, ) ([]types.ImageDeleteResponseItem, error) ContainerWait( ctx context.Context, containerID string, condition container.WaitCondition, ) (<-chan container.ContainerWaitOKBody, <-chan error) Info( ctx context.Context, ) (types.Info, error) }
Moby is a interface of docker client see also github.com/moby/moby/client
type RuntimeOptions ¶
type RuntimeOptions struct { Environments Environments Volumes Volumes }
RuntimeOptions is a docker options.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_docker is a generated GoMock package.
|
Package mock_docker is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.