Documentation ¶
Index ¶
- func ContainerExec(ctx context.Context, client docker.CommonAPIClient, container string, ...) (io.Reader, io.Reader, <-chan ContainerCmdError, error)
- func ContainerRun(ctx context.Context, client docker.CommonAPIClient, ...) (io.Reader, io.Reader, <-chan ContainerCmdError, error)
- func DemuxLogs(ctx context.Context, source io.Reader, prefix string) (map[string]io.Reader, error)
- func ReadFile(ctx context.Context, client docker.CommonAPIClient, image, filename string) (io.Reader, error)
- func ThisContainer(ctx context.Context, client docker.CommonAPIClient) (*dockertypes.ContainerJSON, error)
- type ContainerCmdError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerExec ¶ added in v0.11.0
func ContainerExec(ctx context.Context, client docker.CommonAPIClient, container string, config dockertypes.ExecConfig) (io.Reader, io.Reader, <-chan ContainerCmdError, error)
func ContainerRun ¶ added in v0.11.0
func ContainerRun(ctx context.Context, client docker.CommonAPIClient, config dockertypes.ContainerCreateConfig, enablePull bool) (io.Reader, io.Reader, <-chan ContainerCmdError, error)
func DemuxLogs ¶ added in v0.10.2
Given a docker logs stream, return a map of the stdout and stderr components
func ThisContainer ¶
func ThisContainer(ctx context.Context, client docker.CommonAPIClient) (*dockertypes.ContainerJSON, error)
ThisContainer will find a running container with image containing "support-bundle"
Types ¶
type ContainerCmdError ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.