Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ahmetb/go-dexec
/ functions
Functions
86 in github.com/ahmetb/go-dexec
⨍
Functions
86
◇
Types & classes
8
↓ 42 callers
Method
Command
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 callers
Function
baseContainer
(c *C)
cmd_test.go:75
↓ 13 callers
Method
Start
()
type_test.go:16
↓ 12 callers
Method
Run
()
type_test.go:15
↓ 10 callers
Method
Wait
()
type_test.go:20
↓ 9 callers
Method
Output
()
type_test.go:14
↓ 8 callers
Function
baseOpts
()
cmd_test.go:67
↓ 4 callers
Method
CombinedOutput
()
type_test.go:13
↓ 4 callers
Method
StdoutPipe
()
type_test.go:19
↓ 3 callers
Method
StdinPipe
()
type_test.go:18
↓ 3 callers
Function
testDocker
(c *C)
cmd_test.go:30
↓ 2 callers
Method
Run
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 callers
Method
StderrPipe
()
type_test.go:17
↓ 2 callers
Function
cleanupContainers
(c *C, cl dexec.Docker)
cmd_test.go:51
↓ 1 callers
Method
Error
()
exiterror.go:16
↓ 1 callers
Method
Start
Start starts the specified command but does not wait for it to complete.
cmd.go:69
↓ 1 callers
Method
Wait
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 callers
Function
closeFds
(l []io.Closer)
cmd.go:230
↓ 1 callers
Method
create
(d Docker, cmd []string)
execution.go:14
↓ 1 callers
Function
md5
(url string)
examples/600-parallel-compute/main.go:52
↓ 1 callers
Method
run
(d Docker, stdin io.Reader, stdout, stderr io.Writer)
execution.go:15
↓ 1 callers
Method
setDir
(dir string)
execution.go:19
↓ 1 callers
Method
setEnv
(env []string)
execution.go:18
↓ 1 callers
Function
testContainer
()
cmd_test.go:28
↓ 1 callers
Method
wait
(d Docker)
execution.go:16
Function
ByCreatingContainer
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
Method
CombinedOutput
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
Function
ExampleCmd_Output
()
example_test.go:11
Method
Output
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
Method
Read
(b []byte)
cmd.go:238
Method
SetUpSuite
(c *C)
cmd_test.go:40
Method
SetUpTest
(c *C)
cmd_test.go:47
Method
StderrPipe
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
Method
StdinPipe
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
Method
StdoutPipe
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
Function
Test
Hook up gocheck into the "go test" runner.
cmd_test.go:21
Method
TestCmdAlreadySet
(c *C)
cmd_test.go:157
Method
TestCombinedOutput
(c *C)
cmd_test.go:297
Method
TestCombinedOutputStderrAlreadySet
(c *C)
cmd_test.go:289
Method
TestCombinedOutputStdoutAlreadySet
(c *C)
cmd_test.go:281
Method
TestConfigNotSet
(c *C)
cmd_test.go:97
Method
TestDefaultHandles
(c *C)
cmd_test.go:168
Function
TestDexecCommandMatchesInterface
(_ *testing.T)
type_test.go:30
Method
TestDirAlreadySet
(c *C)
cmd_test.go:122
Method
TestDoubleStart
(c *C)
cmd_test.go:105
Method
TestEntrypointAlreadySet
(c *C)
cmd_test.go:146
Method
TestEnvAlreadySet
(c *C)
cmd_test.go:134
Method
TestFailedCommandReturnsExitError
(c *C)
cmd_test.go:200
Method
TestHandlesPreserved
(c *C)
cmd_test.go:177
Method
TestJustStart
(c *C)
cmd_test.go:90
Method
TestLargeStdin
(c *C)
cmd_test.go:340
Method
TestNewCommand
(c *C)
cmd_test.go:81
Method
TestNonExisitingCommand
(c *C)
cmd_test.go:193
Method
TestNonZeroExitCodeReturnedInError
(c *C)
cmd_test.go:207
Function
TestOSExecCommandMatchesInterface
(_ *testing.T)
type_test.go:23
Method
TestOutputExitErrorStderrCollected
(c *C)
cmd_test.go:330
Method
TestOutputExitErrorStderrNotCollected
(c *C)
cmd_test.go:320
Method
TestOutputStdoutAlreadySet
(c *C)
cmd_test.go:305
Method
TestOutputSuccessfulCommand
(c *C)
cmd_test.go:313
Method
TestRunBasicCommandReadStdout
(c *C)
cmd_test.go:219
Method
TestRunBasicCommandWithStdin
(c *C)
cmd_test.go:230
Method
TestRunStdoutStderrDontMix
(c *C)
cmd_test.go:271
Method
TestRunWithDir
(c *C)
cmd_test.go:245
Method
TestRunWithEnv
(c *C)
cmd_test.go:256
Method
TestStderrPipe
(c *C)
cmd_test.go:451
Method
TestStderrPipeAlreadySet
(c *C)
cmd_test.go:443
Method
TestStdinPipe
(c *C)
cmd_test.go:372
Method
TestStdinPipeAlreadySet
(c *C)
cmd_test.go:365
Method
TestStdoutPipe
(c *C)
cmd_test.go:403
Method
TestStdoutPipeAlreadySet
(c *C)
cmd_test.go:395
Method
TestStdoutPipeJSONDecoding
(c *C)
cmd_test.go:424
Method
TestWaitBeforestart
(c *C)
cmd_test.go:114
Method
TestWaitDeletesContainer
(c *C)
cmd_test.go:480
Method
TestWaitDeletesContainerOnExitError
(c *C)
cmd_test.go:498
Method
create
(d Docker, cmd []string)
execution.go:57
Function
init
()
examples/600-parallel-compute/main.go:17
Function
main
()
examples/600-parallel-compute/main.go:26
Function
main
()
examples/400-exit-code/main.go:9
Function
main
()
examples/500-video-processing/main.go:15
Function
main
()
examples/200-stdin-stdout/main.go:10
Function
main
()
examples/300-pipes/main.go:10
Function
main
()
examples/100-hello/main.go:9
Method
run
(d Docker, stdin io.Reader, stdout, stderr io.Writer)
execution.go:84
Method
setDir
(dir string)
execution.go:49
Method
setEnv
(env []string)
execution.go:41
Method
wait
(d Docker)
execution.go:111