...

Package exec

Overview ▾

Package exec is a generated GoMock package.

type Client

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

type ExecClient struct {
    // contains filtered or unexported fields
}

func NewExecClient

func NewExecClient(platformClient platform.Client) *ExecClient

func (ExecClient) ExecuteCommand

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

type MockClient

MockClient is a mock of Client interface.

type MockClient struct {
    // contains filtered or unexported fields
}

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) ExecuteCommand

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.

type MockClientMockRecorder

MockClientMockRecorder is the mock recorder for MockClient.

type MockClientMockRecorder struct {
    // contains filtered or unexported fields
}

func (*MockClientMockRecorder) ExecuteCommand

func (mr *MockClientMockRecorder) ExecuteCommand(ctx, command, podName, containerName, show, stdoutWriter, stderrWriter interface{}) *gomock.Call

ExecuteCommand indicates an expected call of ExecuteCommand.