Documentation ¶
Index ¶
- func ContainerExec(ctx context.Context, client docker.CommonAPIClient, container string, ...) (io.ReadCloser, io.ReadCloser, <-chan ContainerCmdError, error)
- func ContainerRun(ctx context.Context, client docker.CommonAPIClient, ...) (io.ReadCloser, io.ReadCloser, <-chan ContainerCmdError, error)
- func DemuxLogs(ctx context.Context, source io.Reader, prefix string) (map[string]io.Reader, error)
- func FileCount(ctx context.Context, client docker.CommonAPIClient, image string, ...) (int, error)
- func FileExists(ctx context.Context, client docker.CommonAPIClient, image string, ...) (bool, error)
- func ReadFile(ctx context.Context, client docker.CommonAPIClient, image, filename string, ...) (io.ReadCloser, 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 ¶
func ContainerExec(ctx context.Context, client docker.CommonAPIClient, container string, config dockertypes.ExecConfig) (io.ReadCloser, io.ReadCloser, <-chan ContainerCmdError, error)
func ContainerRun ¶
func ContainerRun(ctx context.Context, client docker.CommonAPIClient, config dockertypes.ContainerCreateConfig, enablePull bool) (io.ReadCloser, io.ReadCloser, <-chan ContainerCmdError, error)
func FileExists ¶
func ReadFile ¶
func ReadFile(ctx context.Context, client docker.CommonAPIClient, image, filename string, securityOpt []string) (io.ReadCloser, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.