MCPcopy
hub / github.com/kubernetes/kubectl / Execute

Method Execute

pkg/cmd/exec/exec.go:118–118  ·  view source on GitHub ↗

Execute supports executing remote command in a pod.

(url *url.URL, config *restclient.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool, terminalSizeQueue remotecommand.TerminalSizeQueue)

Source from the content-addressed store, hash-verified

116type RemoteExecutor interface {
117 // Execute supports executing remote command in a pod.
118 Execute(url *url.URL, config *restclient.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool, terminalSizeQueue remotecommand.TerminalSizeQueue) error
119
120 // ExecuteWithContext, in contrast to Execute, supports stopping the remote command via context cancellation.
121 ExecuteWithContext(ctx context.Context, url *url.URL, config *restclient.Config, stdin io.Reader, stdout, stderr io.Writer, tty bool, terminalSizeQueue remotecommand.TerminalSizeQueue) error

Callers 15

TestTaintFunction · 0.65
TestCordonFunction · 0.65
TestDrainFunction · 0.65
RunMethod · 0.65
TestCompleteAndValidateFunction · 0.65
TestApplyWithPruneV2FailFunction · 0.65
runMethod · 0.65
testConfigCommandFunction · 0.65
runMethod · 0.65
runMethod · 0.65
runMethod · 0.65

Implementers 3

testingRemoteExecutorpkg/cmd/cp/cp_test.go
fakeRemoteExecutorpkg/cmd/exec/exec_test.go
DefaultRemoteExecutorpkg/cmd/exec/exec.go

Calls

no outgoing calls

Tested by 15

TestTaintFunction · 0.52
TestCordonFunction · 0.52
TestDrainFunction · 0.52
TestCompleteAndValidateFunction · 0.52
TestApplyWithPruneV2FailFunction · 0.52
runMethod · 0.52
testConfigCommandFunction · 0.52
runMethod · 0.52
runMethod · 0.52
runMethod · 0.52
runMethod · 0.52