{"modulePath":"github.com/ssdev-go/moby","version":"v17.12.1-ce-rc2+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Functions\n\n```go\nfunc Args(args ...string) icmd.Cmd\n```\nArgs build an icmd.Cmd struct from the specified arguments\n\n```go\nfunc Build(name string) icmd.Cmd\n```\nBuild executes the specified docker build command\n\n```go\nfunc BuildCmd(t testingT, name string, cmdOperators ...CmdOperator) *icmd.Result\n```\nBuildCmd executes the specified docker build command and expect a success\n\n```go\nfunc Daemon(d *daemon.Daemon) func(*icmd.Cmd) func()\n```\nDaemon points to the specified daemon\n\n```go\nfunc Docker(cmd icmd.Cmd, cmdOperators ...CmdOperator) *icmd.Result\n```\nDocker executes the specified docker command\n\n```go\nfunc DockerCmd(t testingT, args ...string) *icmd.Result\n```\nDockerCmd executes the specified docker command and expect a success\n\n```go\nfunc Format(format string) func(*icmd.Cmd) func()\n```\nFormat sets the specified format with --format flag\n\n```go\nfunc InDir(path string) func(*icmd.Cmd) func()\n```\nInDir sets the folder in which the command should be executed\n\n```go\nfunc Inspect(name string) icmd.Cmd\n```\nInspect executes the specified docker inspect command\n\n```go\nfunc InspectCmd(t testingT, name string, cmdOperators ...CmdOperator) *icmd.Result\n```\nInspectCmd executes the specified docker inspect command and expect a success\n\n```go\nfunc SetTestEnvironment(env *environment.Execution)\n```\nSetTestEnvironment sets a static test environment TODO: decouple this package from environment\n\n```go\nfunc WaitExited(t testingT, name string, timeout time.Duration, cmdOperators ...CmdOperator)\n```\nWaitExited will wait for the specified container to state exit, subject to a maximum time limit in seconds supplied by the caller\n\n```go\nfunc WaitForInspectResult(t testingT, name, expr, expected string, timeout time.Duration, cmdOperators ...CmdOperator)\n```\nWaitForInspectResult waits for the specified expression to be equals to the specified expected string in the given time.\n\n```go\nfunc WaitRestart(t testingT, name string, timeout time.Duration, cmdOperators ...CmdOperator)\n```\nWaitRestart will wait for the specified container to restart once\n\n```go\nfunc WaitRun(t testingT, name string, cmdOperators ...CmdOperator)\n```\nWaitRun will wait for the specified container to be running, maximum 5 seconds.\n\n```go\nfunc WithEnvironmentVariables(envs ...string) func(cmd *icmd.Cmd) func()\n```\nWithEnvironmentVariables sets the specified environment variables for the command to run\n\n```go\nfunc WithFlags(flags ...string) func(*icmd.Cmd) func()\n```\nWithFlags sets the specified flags for the command to run\n\n```go\nfunc WithStdin(stdin io.Reader) func(*icmd.Cmd) func()\n```\nWithStdin sets the standard input reader for the command\n\n```go\nfunc WithStdout(writer io.Writer) func(*icmd.Cmd) func()\n```\nWithStdout sets the standard output writer of the command\n\n```go\nfunc WithTimeout(timeout time.Duration) func(cmd *icmd.Cmd) func()\n```\nWithTimeout sets the timeout for the command to run\n\n## Types\n\n```go\ntype CmdOperator func(*icmd.Cmd) func()\n```\nCmdOperator defines functions that can modify a command\n\n","path":"github.com/ssdev-go/moby/integration-cli/cli","name":"cli","synopsis":"","isRedistributable":true}
