Documentation
¶
Index ¶
- func HandlePullOutput(pullOutputReader io.Reader, streamHandler func(logLine string) error) error
- func IsContainerRunning(dockerClient *client.Client, containerName string) (bool, error)
- func LookupContainer(dockerClient *client.Client, containerName string) (*types.Container, error)
- func NewDefaultClient() (*client.Client, error)
- type ContainerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePullOutput ¶
func HandlePullOutput( pullOutputReader io.Reader, streamHandler func(logLine string) error, ) error
Taken and adapted from https://github.com/moby/moby/blob/master/pkg/jsonmessage/jsonmessage.go
func IsContainerRunning ¶
func LookupContainer ¶
func NewDefaultClient ¶
Types ¶
type ContainerState ¶
type ContainerState string
const ( ContainerStateCreated ContainerState = "created" ContainerStateRestarting ContainerState = "restarting" ContainerStateRunning ContainerState = "running" ContainerStatePaused ContainerState = "paused" ContainerStateExited ContainerState = "exited" ContainerStateDead ContainerState = "dead" )
Click to show internal directories.
Click to hide internal directories.