type Client interface { // ExecuteCommand executes the given command in the pod's container, // writing the output to the specified respective pipe writers ExecuteCommand(ctx context.Context, command []string, podName string, containerName string, show bool, stdoutWriter *io.PipeWriter, stderrWriter *io.PipeWriter) (stdout []string, stderr []string, err error) }
type ExecClient struct {
// contains filtered or unexported fields
}
func NewExecClient(platformClient platform.Client) *ExecClient
func (o ExecClient) ExecuteCommand(ctx context.Context, command []string, podName string, containerName string, directRun bool, stdoutWriter *io.PipeWriter, stderrWriter *io.PipeWriter) (stdout []string, stderr []string, err error)
ExecuteCommand executes the given command in the pod's container, writing the output to the specified respective pipe writers when directRun is true, will execute the command with terminal in Raw mode and connected to local standard I/Os so input, including Ctrl-c, is sent to the remote process
MockClient is a mock of Client interface.
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockClient) ExecuteCommand(ctx context.Context, command []string, podName, containerName string, show bool, stdoutWriter, stderrWriter *io.PipeWriter) ([]string, []string, error)
ExecuteCommand mocks base method.
MockClientMockRecorder is the mock recorder for MockClient.
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
func (mr *MockClientMockRecorder) ExecuteCommand(ctx, command, podName, containerName, show, stdoutWriter, stderrWriter interface{}) *gomock.Call
ExecuteCommand indicates an expected call of ExecuteCommand.