Documentation ¶
Index ¶
- func HandleBuildOutput(buildOutputReader 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 LookupDockerfileBaseImage(dockerfilePath string) (string, error)
- func LookupDockerfileLabelValue(dockerfilePath string, searchedLabelKey string) (string, error)
- func NewDefaultClient() (*client.Client, error)
- type BuildErrorDetail
- type BuildOutput
- type ContainerState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBuildOutput ¶
func IsContainerRunning ¶
func LookupContainer ¶
func NewDefaultClient ¶
Types ¶
type BuildErrorDetail ¶
type BuildErrorDetail struct {
Message string `json:"message"`
}
type BuildOutput ¶
type BuildOutput struct { Stream string `json:"stream"` Error string `json:"error"` ErrorDetail BuildErrorDetail `json:"errorDetail"` }
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.