Documentation
¶
Index ¶
- type MockSouthboundHandler
- func (_m *MockSouthboundHandler) EXPECT() *MockSouthboundHandler_Expecter
- func (_m *MockSouthboundHandler) Register(ctx context.Context, nodeGUID string) (*cluster_orchestrator_southbound.ShellScriptCommand, ...)
- func (_m *MockSouthboundHandler) UpdateStatus(ctx context.Context, nodeGUID string, ...) (cluster_orchestrator_southbound.UpdateClusterStatusResponse_ActionRequest, ...)
- type MockSouthboundHandler_Expecter
- type MockSouthboundHandler_Register_Call
- func (_c *MockSouthboundHandler_Register_Call) Return(_a0 *cluster_orchestrator_southbound.ShellScriptCommand, ...) *MockSouthboundHandler_Register_Call
- func (_c *MockSouthboundHandler_Register_Call) Run(run func(ctx context.Context, nodeGUID string)) *MockSouthboundHandler_Register_Call
- func (_c *MockSouthboundHandler_Register_Call) RunAndReturn(...) *MockSouthboundHandler_Register_Call
- type MockSouthboundHandler_UpdateStatus_Call
- func (_c *MockSouthboundHandler_UpdateStatus_Call) Return(_a0 cluster_orchestrator_southbound.UpdateClusterStatusResponse_ActionRequest, ...) *MockSouthboundHandler_UpdateStatus_Call
- func (_c *MockSouthboundHandler_UpdateStatus_Call) Run(run func(ctx context.Context, nodeGUID string, ...)) *MockSouthboundHandler_UpdateStatus_Call
- func (_c *MockSouthboundHandler_UpdateStatus_Call) RunAndReturn(...) *MockSouthboundHandler_UpdateStatus_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSouthboundHandler ¶
MockSouthboundHandler is an autogenerated mock type for the SouthboundHandler type
func NewMockSouthboundHandler ¶
func NewMockSouthboundHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockSouthboundHandler
NewMockSouthboundHandler creates a new instance of MockSouthboundHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockSouthboundHandler) EXPECT ¶
func (_m *MockSouthboundHandler) EXPECT() *MockSouthboundHandler_Expecter
func (*MockSouthboundHandler) Register ¶
func (_m *MockSouthboundHandler) Register(ctx context.Context, nodeGUID string) (*cluster_orchestrator_southbound.ShellScriptCommand, *cluster_orchestrator_southbound.ShellScriptCommand, cluster_orchestrator_southbound.RegisterClusterResponse_Result, error)
Register provides a mock function with given fields: ctx, nodeGUID
func (*MockSouthboundHandler) UpdateStatus ¶
func (_m *MockSouthboundHandler) UpdateStatus(ctx context.Context, nodeGUID string, status cluster_orchestrator_southbound.UpdateClusterStatusRequest_Code) (cluster_orchestrator_southbound.UpdateClusterStatusResponse_ActionRequest, error)
UpdateStatus provides a mock function with given fields: ctx, nodeGUID, status
type MockSouthboundHandler_Expecter ¶
type MockSouthboundHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSouthboundHandler_Expecter) Register ¶
func (_e *MockSouthboundHandler_Expecter) Register(ctx interface{}, nodeGUID interface{}) *MockSouthboundHandler_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- nodeGUID string
func (*MockSouthboundHandler_Expecter) UpdateStatus ¶
func (_e *MockSouthboundHandler_Expecter) UpdateStatus(ctx interface{}, nodeGUID interface{}, status interface{}) *MockSouthboundHandler_UpdateStatus_Call
UpdateStatus is a helper method to define mock.On call
- ctx context.Context
- nodeGUID string
- status cluster_orchestrator_southbound.UpdateClusterStatusRequest_Code
type MockSouthboundHandler_Register_Call ¶
MockSouthboundHandler_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockSouthboundHandler_Register_Call) Run ¶
func (_c *MockSouthboundHandler_Register_Call) Run(run func(ctx context.Context, nodeGUID string)) *MockSouthboundHandler_Register_Call
func (*MockSouthboundHandler_Register_Call) RunAndReturn ¶
func (_c *MockSouthboundHandler_Register_Call) RunAndReturn(run func(context.Context, string) (*cluster_orchestrator_southbound.ShellScriptCommand, *cluster_orchestrator_southbound.ShellScriptCommand, cluster_orchestrator_southbound.RegisterClusterResponse_Result, error)) *MockSouthboundHandler_Register_Call
type MockSouthboundHandler_UpdateStatus_Call ¶
MockSouthboundHandler_UpdateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatus'
func (*MockSouthboundHandler_UpdateStatus_Call) Run ¶
func (_c *MockSouthboundHandler_UpdateStatus_Call) Run(run func(ctx context.Context, nodeGUID string, status cluster_orchestrator_southbound.UpdateClusterStatusRequest_Code)) *MockSouthboundHandler_UpdateStatus_Call