Documentation ¶
Index ¶
Constants ¶
View Source
const ( DockerKillCommand = "kill" DockerRunCommand = "run" DockerServiceCommand = "service" DockerCreateCommand = "create" DockerRmCommand = "rm" DockerCliDetachFlag = "-d" DockerTTYFlag = "-t" )
Variables ¶
This section is empty.
Functions ¶
func DockerCli ¶
func DockerCli(flags *DockerCliArgs, fn func(string), t *testing.T)
Launch a container from CLI with the flag passed
func KillContainer ¶
func KillService ¶
Types ¶
type DockerCliArgs ¶
type DockerCliArgs struct {
// contains filtered or unexported fields
}
func NewDockerCliBuilder ¶
func NewDockerCliBuilder(command string) *DockerCliArgs
func (*DockerCliArgs) Command ¶
func (d *DockerCliArgs) Command(cmd string) *DockerCliArgs
func (*DockerCliArgs) Flag ¶
func (d *DockerCliArgs) Flag(flag string) *DockerCliArgs
func (*DockerCliArgs) Image ¶
func (d *DockerCliArgs) Image(image string) *DockerCliArgs
func (*DockerCliArgs) Label ¶
func (d *DockerCliArgs) Label(label string) *DockerCliArgs
func (*DockerCliArgs) Name ¶
func (d *DockerCliArgs) Name(name string) *DockerCliArgs
Click to show internal directories.
Click to hide internal directories.