MCPcopy Index your code
hub / github.com/coder/envbox / Execer

Interface Execer

xunix/exec.go:37–44  ·  view source on GitHub ↗

The code henceforth is copied straight and modified slightly from "k8s.io/utils/exec". Their interface doesn't allow for a reference to exec.Cmd.Process which we use to kill and wait for a process to exit.

Source from the content-addressed store, hash-verified

35// exec.Cmd.Process which we use to kill and wait for a process to exit.
36
37type Execer interface {
38 // CommandContext returns a Cmd instance which can be used to run a single command.
39 //
40 // The provided context is used to kill the process if the context becomes done
41 // before the command completes on its own. For example, a timeout can be set in
42 // the context.
43 CommandContext(ctx context.Context, cmd string, args ...string) Cmd
44}
45
46type Cmd interface {
47 utilexec.Cmd

Callers 7

dockerRuntimesFunction · 0.65
startEnvboxCmdFunction · 0.65
execContainerCmdFunction · 0.65
dockerCmdFunction · 0.65
NewFunction · 0.65
RestartMethod · 0.65
CommandContextMethod · 0.65

Implementers 2

executorxunix/exec.go
FakeExecxunix/xunixfake/exec.go

Calls

no outgoing calls

Tested by

no test coverage detected