testutils

package
v0.0.0-...-9ad74b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 3 Imported by: 0

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 KillContainer(containerId string, t *testing.T)

func KillService

func KillService(serviceId string, t *testing.T)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL