Documentation ¶
Overview ¶
Package mock_api is a generated GoMock package.
Index ¶
- type MockAgentAPIClient
- type MockAgentAPIClientMockRecorder
- type MockAgentAPIServer
- type MockAgentAPIServerMockRecorder
- type MockInstructionClient
- func (m *MockInstructionClient) Command(ctx context.Context, in *api.CommandRequest, opts ...grpc.CallOption) (*api.CommandResponse, error)
- func (m *MockInstructionClient) EXPECT() *MockInstructionClientMockRecorder
- func (m *MockInstructionClient) Script(ctx context.Context, in *api.ScriptRequest, opts ...grpc.CallOption) (*api.ScriptResponse, error)
- type MockInstructionClientMockRecorder
- type MockInstructionServer
- func (m *MockInstructionServer) Command(arg0 context.Context, arg1 *api.CommandRequest) (*api.CommandResponse, error)
- func (m *MockInstructionServer) EXPECT() *MockInstructionServerMockRecorder
- func (m *MockInstructionServer) Script(arg0 context.Context, arg1 *api.ScriptRequest) (*api.ScriptResponse, error)
- type MockInstructionServerMockRecorder
- type MockUnsafeAgentAPIServer
- type MockUnsafeAgentAPIServerMockRecorder
- type MockUnsafeInstructionServer
- type MockUnsafeInstructionServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgentAPIClient ¶
type MockAgentAPIClient struct {
// contains filtered or unexported fields
}
MockAgentAPIClient is a mock of AgentAPIClient interface.
func NewMockAgentAPIClient ¶
func NewMockAgentAPIClient(ctrl *gomock.Controller) *MockAgentAPIClient
NewMockAgentAPIClient creates a new mock instance.
func (*MockAgentAPIClient) Announce ¶
func (m *MockAgentAPIClient) Announce(ctx context.Context, in *api.Announcement, opts ...grpc.CallOption) (*api.AnnouncementResponse, error)
Announce mocks base method.
func (*MockAgentAPIClient) EXPECT ¶
func (m *MockAgentAPIClient) EXPECT() *MockAgentAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAgentAPIClientMockRecorder ¶
type MockAgentAPIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentAPIClientMockRecorder is the mock recorder for MockAgentAPIClient.
func (*MockAgentAPIClientMockRecorder) Announce ¶
func (mr *MockAgentAPIClientMockRecorder) Announce(ctx, in interface{}, opts ...interface{}) *gomock.Call
Announce indicates an expected call of Announce.
type MockAgentAPIServer ¶
type MockAgentAPIServer struct {
// contains filtered or unexported fields
}
MockAgentAPIServer is a mock of AgentAPIServer interface.
func NewMockAgentAPIServer ¶
func NewMockAgentAPIServer(ctrl *gomock.Controller) *MockAgentAPIServer
NewMockAgentAPIServer creates a new mock instance.
func (*MockAgentAPIServer) Announce ¶
func (m *MockAgentAPIServer) Announce(arg0 context.Context, arg1 *api.Announcement) (*api.AnnouncementResponse, error)
Announce mocks base method.
func (*MockAgentAPIServer) EXPECT ¶
func (m *MockAgentAPIServer) EXPECT() *MockAgentAPIServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAgentAPIServerMockRecorder ¶
type MockAgentAPIServerMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentAPIServerMockRecorder is the mock recorder for MockAgentAPIServer.
func (*MockAgentAPIServerMockRecorder) Announce ¶
func (mr *MockAgentAPIServerMockRecorder) Announce(arg0, arg1 interface{}) *gomock.Call
Announce indicates an expected call of Announce.
type MockInstructionClient ¶
type MockInstructionClient struct {
// contains filtered or unexported fields
}
MockInstructionClient is a mock of InstructionClient interface.
func NewMockInstructionClient ¶
func NewMockInstructionClient(ctrl *gomock.Controller) *MockInstructionClient
NewMockInstructionClient creates a new mock instance.
func (*MockInstructionClient) Command ¶
func (m *MockInstructionClient) Command(ctx context.Context, in *api.CommandRequest, opts ...grpc.CallOption) (*api.CommandResponse, error)
Command mocks base method.
func (*MockInstructionClient) EXPECT ¶
func (m *MockInstructionClient) EXPECT() *MockInstructionClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstructionClient) Script ¶
func (m *MockInstructionClient) Script(ctx context.Context, in *api.ScriptRequest, opts ...grpc.CallOption) (*api.ScriptResponse, error)
Script mocks base method.
type MockInstructionClientMockRecorder ¶
type MockInstructionClientMockRecorder struct {
// contains filtered or unexported fields
}
MockInstructionClientMockRecorder is the mock recorder for MockInstructionClient.
func (*MockInstructionClientMockRecorder) Command ¶
func (mr *MockInstructionClientMockRecorder) Command(ctx, in interface{}, opts ...interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockInstructionClientMockRecorder) Script ¶
func (mr *MockInstructionClientMockRecorder) Script(ctx, in interface{}, opts ...interface{}) *gomock.Call
Script indicates an expected call of Script.
type MockInstructionServer ¶
type MockInstructionServer struct {
// contains filtered or unexported fields
}
MockInstructionServer is a mock of InstructionServer interface.
func NewMockInstructionServer ¶
func NewMockInstructionServer(ctrl *gomock.Controller) *MockInstructionServer
NewMockInstructionServer creates a new mock instance.
func (*MockInstructionServer) Command ¶
func (m *MockInstructionServer) Command(arg0 context.Context, arg1 *api.CommandRequest) (*api.CommandResponse, error)
Command mocks base method.
func (*MockInstructionServer) EXPECT ¶
func (m *MockInstructionServer) EXPECT() *MockInstructionServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstructionServer) Script ¶
func (m *MockInstructionServer) Script(arg0 context.Context, arg1 *api.ScriptRequest) (*api.ScriptResponse, error)
Script mocks base method.
type MockInstructionServerMockRecorder ¶
type MockInstructionServerMockRecorder struct {
// contains filtered or unexported fields
}
MockInstructionServerMockRecorder is the mock recorder for MockInstructionServer.
func (*MockInstructionServerMockRecorder) Command ¶
func (mr *MockInstructionServerMockRecorder) Command(arg0, arg1 interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockInstructionServerMockRecorder) Script ¶
func (mr *MockInstructionServerMockRecorder) Script(arg0, arg1 interface{}) *gomock.Call
Script indicates an expected call of Script.
type MockUnsafeAgentAPIServer ¶
type MockUnsafeAgentAPIServer struct {
// contains filtered or unexported fields
}
MockUnsafeAgentAPIServer is a mock of UnsafeAgentAPIServer interface.
func NewMockUnsafeAgentAPIServer ¶
func NewMockUnsafeAgentAPIServer(ctrl *gomock.Controller) *MockUnsafeAgentAPIServer
NewMockUnsafeAgentAPIServer creates a new mock instance.
func (*MockUnsafeAgentAPIServer) EXPECT ¶
func (m *MockUnsafeAgentAPIServer) EXPECT() *MockUnsafeAgentAPIServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeAgentAPIServerMockRecorder ¶
type MockUnsafeAgentAPIServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeAgentAPIServerMockRecorder is the mock recorder for MockUnsafeAgentAPIServer.
type MockUnsafeInstructionServer ¶
type MockUnsafeInstructionServer struct {
// contains filtered or unexported fields
}
MockUnsafeInstructionServer is a mock of UnsafeInstructionServer interface.
func NewMockUnsafeInstructionServer ¶
func NewMockUnsafeInstructionServer(ctrl *gomock.Controller) *MockUnsafeInstructionServer
NewMockUnsafeInstructionServer creates a new mock instance.
func (*MockUnsafeInstructionServer) EXPECT ¶
func (m *MockUnsafeInstructionServer) EXPECT() *MockUnsafeInstructionServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeInstructionServerMockRecorder ¶
type MockUnsafeInstructionServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeInstructionServerMockRecorder is the mock recorder for MockUnsafeInstructionServer.