Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRunner ¶
type ContainerRunner struct {
// contains filtered or unexported fields
}
ContainerRunner ...
func New ¶
func New(dockerCLI DockerCLI, dataDir string, removeContainer bool) *ContainerRunner
New ...
func (*ContainerRunner) Run ¶
func (c *ContainerRunner) Run(ctx context.Context, input *types.ImageRunnerInput) ([]byte, error)
Run ...
type DockerCLI ¶
type DockerCLI interface { 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 ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) }
DockerCLI ...
Click to show internal directories.
Click to hide internal directories.