Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForDocker ¶ added in v0.3.0
func CheckForDocker() error
Types ¶
type ContainerInfo ¶ added in v0.1.2
type ContainerInfo struct {
Id string
State ContainerState
RunCommand string
}
type ContainerInterface ¶ added in v0.1.2
type ContainerState ¶ added in v0.1.2
type DockerContainer ¶ added in v0.1.2
type DockerContainer struct {
Name string
Id string
Image string
Command []string
Env []v1.EnvVar
Ports []v1.ServicePort
Volumes []canaryv1.Volume
RunOptions []string
StartupTimeout int
// contains filtered or unexported fields
}
func (DockerContainer) Exec ¶ added in v0.1.2
func (c DockerContainer) Exec(command ...string) (string, error)
Exec a command inside a container
func (DockerContainer) Logs ¶ added in v0.1.2
func (c DockerContainer) Logs() (string, error)
Get container logs
func (DockerContainer) Remove ¶ added in v0.1.2
func (c DockerContainer) Remove() error
Remove a container
func (*DockerContainer) Start ¶ added in v0.1.2
func (c *DockerContainer) Start(timeoutSeconds int) error
Start a container
func (DockerContainer) Status ¶ added in v0.1.2
func (c DockerContainer) Status() (*ContainerInfo, error)
Get container status
Click to show internal directories.
Click to hide internal directories.