Documentation ¶
Index ¶
- func Args(commandAndArgs ...string) icmd.Cmd
- func BuildCmd(t testing.TB, name string, cmdOperators ...CmdOperator) *icmd.Result
- func Daemon(d *daemon.Daemon) func(*icmd.Cmd) func()
- func Docker(cmd icmd.Cmd, cmdOperators ...CmdOperator) *icmd.Result
- func DockerCmd(t testing.TB, args ...string) *icmd.Result
- func Format(format string) func(*icmd.Cmd) func()
- func InDir(path string) func(*icmd.Cmd) func()
- func InspectCmd(t testing.TB, name string, cmdOperators ...CmdOperator) *icmd.Result
- func SetTestEnvironment(env *environment.Execution)
- func WaitExited(t testing.TB, name string, timeout time.Duration, cmdOperators ...CmdOperator)
- func WaitRun(t testing.TB, name string, cmdOperators ...CmdOperator)
- func WithEnvironmentVariables(envs ...string) func(cmd *icmd.Cmd) func()
- func WithFlags(flags ...string) func(*icmd.Cmd) func()
- func WithStdin(stdin io.Reader) func(*icmd.Cmd) func()
- func WithStdout(writer io.Writer) func(*icmd.Cmd) func()
- func WithTimeout(timeout time.Duration) func(cmd *icmd.Cmd) func()
- type CmdOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Docker ¶
func Docker(cmd icmd.Cmd, cmdOperators ...CmdOperator) *icmd.Result
Docker executes the specified docker command
func InspectCmd ¶
InspectCmd executes the specified docker inspect command and expect a success
func SetTestEnvironment ¶
func SetTestEnvironment(env *environment.Execution)
SetTestEnvironment sets a static test environment TODO: decouple this package from environment
func WaitExited ¶
WaitExited will wait for the specified container to state exit, subject to a maximum time limit in seconds supplied by the caller
func WaitRun ¶
func WaitRun(t testing.TB, name string, cmdOperators ...CmdOperator)
WaitRun will wait for the specified container to be running, maximum 5 seconds.
func WithEnvironmentVariables ¶
WithEnvironmentVariables sets the specified environment variables for the command to run
func WithStdout ¶
WithStdout sets the standard output writer of the command
Types ¶
type CmdOperator ¶
CmdOperator defines functions that can modify a command
Click to show internal directories.
Click to hide internal directories.