Documentation ¶
Index ¶
- func Args(args ...string) icmd.Cmd
- func Build(name string) icmd.Cmd
- func BuildCmd(t testingT, 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 testingT, args ...string) *icmd.Result
- func EnsureTestEnvIsLoaded(t testingT)
- func Format(format string) func(*icmd.Cmd) func()
- func InDir(path string) func(*icmd.Cmd) func()
- func Inspect(name string) icmd.Cmd
- func InspectCmd(t testingT, name string, cmdOperators ...CmdOperator) *icmd.Result
- func WithEnvironmentVariables(envs ...string) func(cmd *icmd.Cmd) func()
- func WithFlags(flags ...string) 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 BuildCmd ¶
func BuildCmd(t testingT, name string, cmdOperators ...CmdOperator) *icmd.Result
BuildCmd executes the specified docker build command and expect a success
func Docker ¶
func Docker(cmd icmd.Cmd, cmdOperators ...CmdOperator) *icmd.Result
Docker executes the specified docker command
func EnsureTestEnvIsLoaded ¶
func EnsureTestEnvIsLoaded(t testingT)
EnsureTestEnvIsLoaded make sure the test environment is loaded for this package
func InspectCmd ¶
func InspectCmd(t testingT, name string, cmdOperators ...CmdOperator) *icmd.Result
InspectCmd executes the specified docker inspect command and expect a success
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.