util

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func DemuxLogs(ctx context.Context, source io.Reader, prefix string) (map[string]io.Reader, error)

Given a docker logs stream, return a map of the stdout and stderr components

func ReadFile added in v0.11.0

func ReadFile(ctx context.Context, client docker.CommonAPIClient, image, filename string) (io.Reader, 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 added in v0.11.0

type ContainerCmdError struct {
	StatusCode int
	Error      error
}

Jump to

Keyboard shortcuts

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