Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockExecutorClient
- func (m *MockExecutorClient) EXPECT() *MockExecutorClientMockRecorder
- func (m *MockExecutorClient) Environment(arg0 context.Context, arg1 *executorpb.EnvironmentRequest, ...) (*executorpb.EnvironmentResponse, error)
- func (m *MockExecutorClient) GetCommandLog(arg0 context.Context, arg1 *executorpb.GetCommandLogRequest, ...) (executorpb.Executor_GetCommandLogClient, error)
- func (m *MockExecutorClient) GetRuntimeInfo(arg0 context.Context, arg1 *executorpb.GetRuntimeInfoRequest, ...) (*executorpb.GetRuntimeInfoResponse, error)
- func (m *MockExecutorClient) Ping(arg0 context.Context, arg1 *executorpb.PingRequest, arg2 ...grpc.CallOption) (*executorpb.PingResponse, error)
- func (m *MockExecutorClient) StartCommand(arg0 context.Context, arg1 *executorpb.StartCommandRequest, ...) (*executorpb.StartCommandResponse, error)
- func (m *MockExecutorClient) WaitCommand(arg0 context.Context, arg1 *executorpb.WaitCommandRequest, ...) (*executorpb.WaitCommandResponse, error)
- type MockExecutorClientEnvironmentCall
- func (c *MockExecutorClientEnvironmentCall) Do(...) *MockExecutorClientEnvironmentCall
- func (c *MockExecutorClientEnvironmentCall) DoAndReturn(...) *MockExecutorClientEnvironmentCall
- func (c *MockExecutorClientEnvironmentCall) Return(arg0 *executorpb.EnvironmentResponse, arg1 error) *MockExecutorClientEnvironmentCall
- type MockExecutorClientGetCommandLogCall
- func (c *MockExecutorClientGetCommandLogCall) Do(...) *MockExecutorClientGetCommandLogCall
- func (c *MockExecutorClientGetCommandLogCall) DoAndReturn(...) *MockExecutorClientGetCommandLogCall
- func (c *MockExecutorClientGetCommandLogCall) Return(arg0 executorpb.Executor_GetCommandLogClient, arg1 error) *MockExecutorClientGetCommandLogCall
- type MockExecutorClientGetRuntimeInfoCall
- func (c *MockExecutorClientGetRuntimeInfoCall) Do(...) *MockExecutorClientGetRuntimeInfoCall
- func (c *MockExecutorClientGetRuntimeInfoCall) DoAndReturn(...) *MockExecutorClientGetRuntimeInfoCall
- func (c *MockExecutorClientGetRuntimeInfoCall) Return(arg0 *executorpb.GetRuntimeInfoResponse, arg1 error) *MockExecutorClientGetRuntimeInfoCall
- type MockExecutorClientMockRecorder
- func (mr *MockExecutorClientMockRecorder) Environment(arg0, arg1 any, arg2 ...any) *MockExecutorClientEnvironmentCall
- func (mr *MockExecutorClientMockRecorder) GetCommandLog(arg0, arg1 any, arg2 ...any) *MockExecutorClientGetCommandLogCall
- func (mr *MockExecutorClientMockRecorder) GetRuntimeInfo(arg0, arg1 any, arg2 ...any) *MockExecutorClientGetRuntimeInfoCall
- func (mr *MockExecutorClientMockRecorder) Ping(arg0, arg1 any, arg2 ...any) *MockExecutorClientPingCall
- func (mr *MockExecutorClientMockRecorder) StartCommand(arg0, arg1 any, arg2 ...any) *MockExecutorClientStartCommandCall
- func (mr *MockExecutorClientMockRecorder) WaitCommand(arg0, arg1 any, arg2 ...any) *MockExecutorClientWaitCommandCall
- type MockExecutorClientPingCall
- type MockExecutorClientStartCommandCall
- func (c *MockExecutorClientStartCommandCall) Do(...) *MockExecutorClientStartCommandCall
- func (c *MockExecutorClientStartCommandCall) DoAndReturn(...) *MockExecutorClientStartCommandCall
- func (c *MockExecutorClientStartCommandCall) Return(arg0 *executorpb.StartCommandResponse, arg1 error) *MockExecutorClientStartCommandCall
- type MockExecutorClientWaitCommandCall
- func (c *MockExecutorClientWaitCommandCall) Do(...) *MockExecutorClientWaitCommandCall
- func (c *MockExecutorClientWaitCommandCall) DoAndReturn(...) *MockExecutorClientWaitCommandCall
- func (c *MockExecutorClientWaitCommandCall) Return(arg0 *executorpb.WaitCommandResponse, arg1 error) *MockExecutorClientWaitCommandCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExecutorClient ¶
type MockExecutorClient struct {
// contains filtered or unexported fields
}
MockExecutorClient is a mock of ExecutorClient interface.
func NewMockExecutorClient ¶
func NewMockExecutorClient(ctrl *gomock.Controller) *MockExecutorClient
NewMockExecutorClient creates a new mock instance.
func (*MockExecutorClient) EXPECT ¶
func (m *MockExecutorClient) EXPECT() *MockExecutorClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutorClient) Environment ¶
func (m *MockExecutorClient) Environment(arg0 context.Context, arg1 *executorpb.EnvironmentRequest, arg2 ...grpc.CallOption) (*executorpb.EnvironmentResponse, error)
Environment mocks base method.
func (*MockExecutorClient) GetCommandLog ¶
func (m *MockExecutorClient) GetCommandLog(arg0 context.Context, arg1 *executorpb.GetCommandLogRequest, arg2 ...grpc.CallOption) (executorpb.Executor_GetCommandLogClient, error)
GetCommandLog mocks base method.
func (*MockExecutorClient) GetRuntimeInfo ¶
func (m *MockExecutorClient) GetRuntimeInfo(arg0 context.Context, arg1 *executorpb.GetRuntimeInfoRequest, arg2 ...grpc.CallOption) (*executorpb.GetRuntimeInfoResponse, error)
GetRuntimeInfo mocks base method.
func (*MockExecutorClient) Ping ¶
func (m *MockExecutorClient) Ping(arg0 context.Context, arg1 *executorpb.PingRequest, arg2 ...grpc.CallOption) (*executorpb.PingResponse, error)
Ping mocks base method.
func (*MockExecutorClient) StartCommand ¶
func (m *MockExecutorClient) StartCommand(arg0 context.Context, arg1 *executorpb.StartCommandRequest, arg2 ...grpc.CallOption) (*executorpb.StartCommandResponse, error)
StartCommand mocks base method.
func (*MockExecutorClient) WaitCommand ¶
func (m *MockExecutorClient) WaitCommand(arg0 context.Context, arg1 *executorpb.WaitCommandRequest, arg2 ...grpc.CallOption) (*executorpb.WaitCommandResponse, error)
WaitCommand mocks base method.
type MockExecutorClientEnvironmentCall ¶
MockExecutorClientEnvironmentCall wrap *gomock.Call
func (*MockExecutorClientEnvironmentCall) Do ¶
func (c *MockExecutorClientEnvironmentCall) Do(f func(context.Context, *executorpb.EnvironmentRequest, ...grpc.CallOption) (*executorpb.EnvironmentResponse, error)) *MockExecutorClientEnvironmentCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientEnvironmentCall) DoAndReturn ¶
func (c *MockExecutorClientEnvironmentCall) DoAndReturn(f func(context.Context, *executorpb.EnvironmentRequest, ...grpc.CallOption) (*executorpb.EnvironmentResponse, error)) *MockExecutorClientEnvironmentCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientEnvironmentCall) Return ¶
func (c *MockExecutorClientEnvironmentCall) Return(arg0 *executorpb.EnvironmentResponse, arg1 error) *MockExecutorClientEnvironmentCall
Return rewrite *gomock.Call.Return
type MockExecutorClientGetCommandLogCall ¶
MockExecutorClientGetCommandLogCall wrap *gomock.Call
func (*MockExecutorClientGetCommandLogCall) Do ¶
func (c *MockExecutorClientGetCommandLogCall) Do(f func(context.Context, *executorpb.GetCommandLogRequest, ...grpc.CallOption) (executorpb.Executor_GetCommandLogClient, error)) *MockExecutorClientGetCommandLogCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientGetCommandLogCall) DoAndReturn ¶
func (c *MockExecutorClientGetCommandLogCall) DoAndReturn(f func(context.Context, *executorpb.GetCommandLogRequest, ...grpc.CallOption) (executorpb.Executor_GetCommandLogClient, error)) *MockExecutorClientGetCommandLogCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientGetCommandLogCall) Return ¶
func (c *MockExecutorClientGetCommandLogCall) Return(arg0 executorpb.Executor_GetCommandLogClient, arg1 error) *MockExecutorClientGetCommandLogCall
Return rewrite *gomock.Call.Return
type MockExecutorClientGetRuntimeInfoCall ¶
MockExecutorClientGetRuntimeInfoCall wrap *gomock.Call
func (*MockExecutorClientGetRuntimeInfoCall) Do ¶
func (c *MockExecutorClientGetRuntimeInfoCall) Do(f func(context.Context, *executorpb.GetRuntimeInfoRequest, ...grpc.CallOption) (*executorpb.GetRuntimeInfoResponse, error)) *MockExecutorClientGetRuntimeInfoCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientGetRuntimeInfoCall) DoAndReturn ¶
func (c *MockExecutorClientGetRuntimeInfoCall) DoAndReturn(f func(context.Context, *executorpb.GetRuntimeInfoRequest, ...grpc.CallOption) (*executorpb.GetRuntimeInfoResponse, error)) *MockExecutorClientGetRuntimeInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientGetRuntimeInfoCall) Return ¶
func (c *MockExecutorClientGetRuntimeInfoCall) Return(arg0 *executorpb.GetRuntimeInfoResponse, arg1 error) *MockExecutorClientGetRuntimeInfoCall
Return rewrite *gomock.Call.Return
type MockExecutorClientMockRecorder ¶
type MockExecutorClientMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorClientMockRecorder is the mock recorder for MockExecutorClient.
func (*MockExecutorClientMockRecorder) Environment ¶
func (mr *MockExecutorClientMockRecorder) Environment(arg0, arg1 any, arg2 ...any) *MockExecutorClientEnvironmentCall
Environment indicates an expected call of Environment.
func (*MockExecutorClientMockRecorder) GetCommandLog ¶
func (mr *MockExecutorClientMockRecorder) GetCommandLog(arg0, arg1 any, arg2 ...any) *MockExecutorClientGetCommandLogCall
GetCommandLog indicates an expected call of GetCommandLog.
func (*MockExecutorClientMockRecorder) GetRuntimeInfo ¶
func (mr *MockExecutorClientMockRecorder) GetRuntimeInfo(arg0, arg1 any, arg2 ...any) *MockExecutorClientGetRuntimeInfoCall
GetRuntimeInfo indicates an expected call of GetRuntimeInfo.
func (*MockExecutorClientMockRecorder) Ping ¶
func (mr *MockExecutorClientMockRecorder) Ping(arg0, arg1 any, arg2 ...any) *MockExecutorClientPingCall
Ping indicates an expected call of Ping.
func (*MockExecutorClientMockRecorder) StartCommand ¶
func (mr *MockExecutorClientMockRecorder) StartCommand(arg0, arg1 any, arg2 ...any) *MockExecutorClientStartCommandCall
StartCommand indicates an expected call of StartCommand.
func (*MockExecutorClientMockRecorder) WaitCommand ¶
func (mr *MockExecutorClientMockRecorder) WaitCommand(arg0, arg1 any, arg2 ...any) *MockExecutorClientWaitCommandCall
WaitCommand indicates an expected call of WaitCommand.
type MockExecutorClientPingCall ¶
MockExecutorClientPingCall wrap *gomock.Call
func (*MockExecutorClientPingCall) Do ¶
func (c *MockExecutorClientPingCall) Do(f func(context.Context, *executorpb.PingRequest, ...grpc.CallOption) (*executorpb.PingResponse, error)) *MockExecutorClientPingCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientPingCall) DoAndReturn ¶
func (c *MockExecutorClientPingCall) DoAndReturn(f func(context.Context, *executorpb.PingRequest, ...grpc.CallOption) (*executorpb.PingResponse, error)) *MockExecutorClientPingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientPingCall) Return ¶
func (c *MockExecutorClientPingCall) Return(arg0 *executorpb.PingResponse, arg1 error) *MockExecutorClientPingCall
Return rewrite *gomock.Call.Return
type MockExecutorClientStartCommandCall ¶
MockExecutorClientStartCommandCall wrap *gomock.Call
func (*MockExecutorClientStartCommandCall) Do ¶
func (c *MockExecutorClientStartCommandCall) Do(f func(context.Context, *executorpb.StartCommandRequest, ...grpc.CallOption) (*executorpb.StartCommandResponse, error)) *MockExecutorClientStartCommandCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientStartCommandCall) DoAndReturn ¶
func (c *MockExecutorClientStartCommandCall) DoAndReturn(f func(context.Context, *executorpb.StartCommandRequest, ...grpc.CallOption) (*executorpb.StartCommandResponse, error)) *MockExecutorClientStartCommandCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientStartCommandCall) Return ¶
func (c *MockExecutorClientStartCommandCall) Return(arg0 *executorpb.StartCommandResponse, arg1 error) *MockExecutorClientStartCommandCall
Return rewrite *gomock.Call.Return
type MockExecutorClientWaitCommandCall ¶
MockExecutorClientWaitCommandCall wrap *gomock.Call
func (*MockExecutorClientWaitCommandCall) Do ¶
func (c *MockExecutorClientWaitCommandCall) Do(f func(context.Context, *executorpb.WaitCommandRequest, ...grpc.CallOption) (*executorpb.WaitCommandResponse, error)) *MockExecutorClientWaitCommandCall
Do rewrite *gomock.Call.Do
func (*MockExecutorClientWaitCommandCall) DoAndReturn ¶
func (c *MockExecutorClientWaitCommandCall) DoAndReturn(f func(context.Context, *executorpb.WaitCommandRequest, ...grpc.CallOption) (*executorpb.WaitCommandResponse, error)) *MockExecutorClientWaitCommandCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExecutorClientWaitCommandCall) Return ¶
func (c *MockExecutorClientWaitCommandCall) Return(arg0 *executorpb.WaitCommandResponse, arg1 error) *MockExecutorClientWaitCommandCall
Return rewrite *gomock.Call.Return