Documentation ¶
Index ¶
Constants ¶
View Source
const ( None mode = 0 InContainer mode = 1 LinuxNsenter mode = 2 )
Variables ¶
View Source
var ErrModeNone = errors.New("mode not set")
Functions ¶
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) Containers ¶
type DockerClient ¶ added in v1.7.4
type DockerClient interface { ContainerList(context.Context, container.ListOptions) ([]types.Container, error) ContainerInspect(context.Context, string) (types.ContainerJSON, error) ContainerExecCreate(context.Context, string, types.ExecConfig) (types.IDResponse, error) ContainerExecAttach(context.Context, string, types.ExecStartCheck) (types.HijackedResponse, error) ContainerTop(ctx context.Context, containerID string, arguments []string) (container.ContainerTopOKBody, error) Close() error }
func Default ¶ added in v1.7.4
func Default() (rv DockerClient, err error)
Click to show internal directories.
Click to hide internal directories.