MCPcopy Create free account

hub / github.com/ahmetb/go-dexec / functions

Functions86 in github.com/ahmetb/go-dexec

↓ 42 callersMethodCommand
Command returns the Cmd struct to execute the named program with given arguments using specified execution method. For each new Cmd, you should creat
cmd.go:20
↓ 29 callersFunctionbaseContainer
(c *C)
cmd_test.go:75
↓ 13 callersMethodStart
()
type_test.go:16
↓ 12 callersMethodRun
()
type_test.go:15
↓ 10 callersMethodWait
()
type_test.go:20
↓ 9 callersMethodOutput
()
type_test.go:14
↓ 8 callersFunctionbaseOpts
()
cmd_test.go:67
↓ 4 callersMethodCombinedOutput
()
type_test.go:13
↓ 4 callersMethodStdoutPipe
()
type_test.go:19
↓ 3 callersMethodStdinPipe
()
type_test.go:18
↓ 3 callersFunctiontestDocker
(c *C)
cmd_test.go:30
↓ 2 callersMethodRun
Run starts the specified command and waits for it to complete. If the command runs successfully and copying streams are done as expected, the error i
cmd.go:135
↓ 2 callersMethodStderrPipe
()
type_test.go:17
↓ 2 callersFunctioncleanupContainers
(c *C, cl dexec.Docker)
cmd_test.go:51
↓ 1 callersMethodError
()
exiterror.go:16
↓ 1 callersMethodStart
Start starts the specified command but does not wait for it to complete.
cmd.go:69
↓ 1 callersMethodWait
Wait waits for the command to exit. It must have been started by Start. If the container exits with a non-zero exit code, the error is of type *ExitE
cmd.go:113
↓ 1 callersFunctioncloseFds
(l []io.Closer)
cmd.go:230
↓ 1 callersMethodcreate
(d Docker, cmd []string)
execution.go:14
↓ 1 callersFunctionmd5
(url string)
examples/600-parallel-compute/main.go:52
↓ 1 callersMethodrun
(d Docker, stdin io.Reader, stdout, stderr io.Writer)
execution.go:15
↓ 1 callersMethodsetDir
(dir string)
execution.go:19
↓ 1 callersMethodsetEnv
(env []string)
execution.go:18
↓ 1 callersFunctiontestContainer
()
cmd_test.go:28
↓ 1 callersMethodwait
(d Docker)
execution.go:16
FunctionByCreatingContainer
ByCreatingContainer is the execution strategy where a new container with specified options is created to execute the command. The container will be c
execution.go:34
MethodCombinedOutput
CombinedOutput runs the command and returns its combined standard output and standard error. Docker API does not have strong guarantees over ordering
cmd.go:150
FunctionExampleCmd_Output
()
example_test.go:11
MethodOutput
Output runs the command and returns its standard output. If the container exits with a non-zero exit code, the error is of type *ExitError. Other err
cmd.go:169
MethodRead
(b []byte)
cmd.go:238
MethodSetUpSuite
(c *C)
cmd_test.go:40
MethodSetUpTest
(c *C)
cmd_test.go:47
MethodStderrPipe
StderrPipe returns a pipe that will be connected to the command's standard error when the command starts. Wait will close the pipe after seeing the c
cmd.go:220
MethodStdinPipe
StdinPipe returns a pipe that will be connected to the command's standard input when the command starts. Different than os/exec.StdinPipe, returned i
cmd.go:193
MethodStdoutPipe
StdoutPipe returns a pipe that will be connected to the command's standard output when the command starts. Wait will close the pipe after seeing the
cmd.go:206
FunctionTest
Hook up gocheck into the "go test" runner.
cmd_test.go:21
MethodTestCmdAlreadySet
(c *C)
cmd_test.go:157
MethodTestCombinedOutput
(c *C)
cmd_test.go:297
MethodTestCombinedOutputStderrAlreadySet
(c *C)
cmd_test.go:289
MethodTestCombinedOutputStdoutAlreadySet
(c *C)
cmd_test.go:281
MethodTestConfigNotSet
(c *C)
cmd_test.go:97
MethodTestDefaultHandles
(c *C)
cmd_test.go:168
FunctionTestDexecCommandMatchesInterface
(_ *testing.T)
type_test.go:30
MethodTestDirAlreadySet
(c *C)
cmd_test.go:122
MethodTestDoubleStart
(c *C)
cmd_test.go:105
MethodTestEntrypointAlreadySet
(c *C)
cmd_test.go:146
MethodTestEnvAlreadySet
(c *C)
cmd_test.go:134
MethodTestFailedCommandReturnsExitError
(c *C)
cmd_test.go:200
MethodTestHandlesPreserved
(c *C)
cmd_test.go:177
MethodTestJustStart
(c *C)
cmd_test.go:90
MethodTestLargeStdin
(c *C)
cmd_test.go:340
MethodTestNewCommand
(c *C)
cmd_test.go:81
MethodTestNonExisitingCommand
(c *C)
cmd_test.go:193
MethodTestNonZeroExitCodeReturnedInError
(c *C)
cmd_test.go:207
FunctionTestOSExecCommandMatchesInterface
(_ *testing.T)
type_test.go:23
MethodTestOutputExitErrorStderrCollected
(c *C)
cmd_test.go:330
MethodTestOutputExitErrorStderrNotCollected
(c *C)
cmd_test.go:320
MethodTestOutputStdoutAlreadySet
(c *C)
cmd_test.go:305
MethodTestOutputSuccessfulCommand
(c *C)
cmd_test.go:313
MethodTestRunBasicCommandReadStdout
(c *C)
cmd_test.go:219
MethodTestRunBasicCommandWithStdin
(c *C)
cmd_test.go:230
MethodTestRunStdoutStderrDontMix
(c *C)
cmd_test.go:271
MethodTestRunWithDir
(c *C)
cmd_test.go:245
MethodTestRunWithEnv
(c *C)
cmd_test.go:256
MethodTestStderrPipe
(c *C)
cmd_test.go:451
MethodTestStderrPipeAlreadySet
(c *C)
cmd_test.go:443
MethodTestStdinPipe
(c *C)
cmd_test.go:372
MethodTestStdinPipeAlreadySet
(c *C)
cmd_test.go:365
MethodTestStdoutPipe
(c *C)
cmd_test.go:403
MethodTestStdoutPipeAlreadySet
(c *C)
cmd_test.go:395
MethodTestStdoutPipeJSONDecoding
(c *C)
cmd_test.go:424
MethodTestWaitBeforestart
(c *C)
cmd_test.go:114
MethodTestWaitDeletesContainer
(c *C)
cmd_test.go:480
MethodTestWaitDeletesContainerOnExitError
(c *C)
cmd_test.go:498
Methodcreate
(d Docker, cmd []string)
execution.go:57
Functioninit
()
examples/600-parallel-compute/main.go:17
Functionmain
()
examples/600-parallel-compute/main.go:26
Functionmain
()
examples/400-exit-code/main.go:9
Functionmain
()
examples/500-video-processing/main.go:15
Functionmain
()
examples/200-stdin-stdout/main.go:10
Functionmain
()
examples/300-pipes/main.go:10
Functionmain
()
examples/100-hello/main.go:9
Methodrun
(d Docker, stdin io.Reader, stdout, stderr io.Writer)
execution.go:84
MethodsetDir
(dir string)
execution.go:49
MethodsetEnv
(env []string)
execution.go:41
Methodwait
(d Docker)
execution.go:111