Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBaseClient
- type MockBaseClientMockRecorder
- type MockClient
- func (m *MockClient) Connect() error
- func (m *MockClient) Disconnect()
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) Reply(requestID string, message *protocol.Envelope) error
- func (m *MockClient) Send(message *protocol.Envelope) error
- func (m *MockClient) Subscribe(handlers ...ditto.Handler)
- func (m *MockClient) Unsubscribe(handlers ...ditto.Handler)
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Connect() *gomock.Call
- func (mr *MockClientMockRecorder) Disconnect() *gomock.Call
- func (mr *MockClientMockRecorder) Reply(requestID, message interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Send(message interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Subscribe(handlers ...interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Unsubscribe(handlers ...interface{}) *gomock.Call
- type MockCurrentStateHandler
- type MockCurrentStateHandlerMockRecorder
- type MockDesiredStateClient
- func (m *MockDesiredStateClient) Domain() string
- func (m *MockDesiredStateClient) EXPECT() *MockDesiredStateClientMockRecorder
- func (m *MockDesiredStateClient) SendCurrentStateGet(arg0 string) error
- func (m *MockDesiredStateClient) SendDesiredState(arg0 string, arg1 *types.DesiredState) error
- func (m *MockDesiredStateClient) SendDesiredStateCommand(arg0 string, arg1 *types.DesiredStateCommand) error
- func (m *MockDesiredStateClient) Start(arg0 api.StateHandler) error
- func (m *MockDesiredStateClient) Stop() error
- type MockDesiredStateClientMockRecorder
- func (mr *MockDesiredStateClientMockRecorder) Domain() *gomock.Call
- func (mr *MockDesiredStateClientMockRecorder) SendCurrentStateGet(arg0 interface{}) *gomock.Call
- func (mr *MockDesiredStateClientMockRecorder) SendDesiredState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDesiredStateClientMockRecorder) SendDesiredStateCommand(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDesiredStateClientMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockDesiredStateClientMockRecorder) Stop() *gomock.Call
- type MockDesiredStateFeedbackHandler
- type MockDesiredStateFeedbackHandlerMockRecorder
- type MockRebootManager
- type MockRebootManagerMockRecorder
- type MockStateHandler
- type MockStateHandlerMockRecorder
- type MockUpdateAgent
- type MockUpdateAgentClient
- func (m *MockUpdateAgentClient) Domain() string
- func (m *MockUpdateAgentClient) EXPECT() *MockUpdateAgentClientMockRecorder
- func (m *MockUpdateAgentClient) SendCurrentState(arg0 string, arg1 *types.Inventory) error
- func (m *MockUpdateAgentClient) SendDesiredStateFeedback(arg0 string, arg1 *types.DesiredStateFeedback) error
- func (m *MockUpdateAgentClient) Start(arg0 api.UpdateAgentHandler) error
- func (m *MockUpdateAgentClient) Stop() error
- type MockUpdateAgentClientMockRecorder
- func (mr *MockUpdateAgentClientMockRecorder) Domain() *gomock.Call
- func (mr *MockUpdateAgentClientMockRecorder) SendCurrentState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpdateAgentClientMockRecorder) SendDesiredStateFeedback(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpdateAgentClientMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockUpdateAgentClientMockRecorder) Stop() *gomock.Call
- type MockUpdateAgentHandler
- func (m *MockUpdateAgentHandler) EXPECT() *MockUpdateAgentHandlerMockRecorder
- func (m *MockUpdateAgentHandler) HandleCurrentStateGet(arg0 string, arg1 int64) error
- func (m *MockUpdateAgentHandler) HandleDesiredState(arg0 string, arg1 int64, arg2 *types.DesiredState) error
- func (m *MockUpdateAgentHandler) HandleDesiredStateCommand(arg0 string, arg1 int64, arg2 *types.DesiredStateCommand) error
- type MockUpdateAgentHandlerMockRecorder
- func (mr *MockUpdateAgentHandlerMockRecorder) HandleCurrentStateGet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockUpdateAgentHandlerMockRecorder) HandleDesiredState(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockUpdateAgentHandlerMockRecorder) HandleDesiredStateCommand(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockUpdateAgentMockRecorder
- type MockUpdateManager
- func (m *MockUpdateManager) Apply(ctx context.Context, activityID string, desiredState *types.DesiredState)
- func (m *MockUpdateManager) Command(ctx context.Context, activityID string, command *types.DesiredStateCommand)
- func (m *MockUpdateManager) Dispose() error
- func (m *MockUpdateManager) EXPECT() *MockUpdateManagerMockRecorder
- func (m *MockUpdateManager) Get(ctx context.Context, activityID string) (*types.Inventory, error)
- func (m *MockUpdateManager) Name() string
- func (m *MockUpdateManager) SetCallback(callback api.UpdateManagerCallback)
- func (m *MockUpdateManager) WatchEvents(ctx context.Context)
- type MockUpdateManagerCallback
- func (m *MockUpdateManagerCallback) EXPECT() *MockUpdateManagerCallbackMockRecorder
- func (m *MockUpdateManagerCallback) HandleCurrentStateEvent(domain, activityID string, currentState *types.Inventory)
- func (m *MockUpdateManagerCallback) HandleDesiredStateFeedbackEvent(domain, activityID, baseline string, status types.StatusType, message string, ...)
- type MockUpdateManagerCallbackMockRecorder
- type MockUpdateManagerFeature
- func (m *MockUpdateManagerFeature) Activate() error
- func (m *MockUpdateManagerFeature) Deactivate()
- func (m *MockUpdateManagerFeature) EXPECT() *MockUpdateManagerFeatureMockRecorder
- func (m *MockUpdateManagerFeature) SendFeedback(activityID string, desiredStateFeedback *types.DesiredStateFeedback) error
- func (m *MockUpdateManagerFeature) SetState(activityID string, currentState *types.Inventory) error
- type MockUpdateManagerFeatureMockRecorder
- func (mr *MockUpdateManagerFeatureMockRecorder) Activate() *gomock.Call
- func (mr *MockUpdateManagerFeatureMockRecorder) Deactivate() *gomock.Call
- func (mr *MockUpdateManagerFeatureMockRecorder) SendFeedback(activityID, desiredStateFeedback interface{}) *gomock.Call
- func (mr *MockUpdateManagerFeatureMockRecorder) SetState(activityID, currentState interface{}) *gomock.Call
- type MockUpdateManagerMockRecorder
- func (mr *MockUpdateManagerMockRecorder) Apply(ctx, activityID, desiredState interface{}) *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) Command(ctx, activityID, command interface{}) *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) Dispose() *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) Get(ctx, activityID interface{}) *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) Name() *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) SetCallback(callback interface{}) *gomock.Call
- func (mr *MockUpdateManagerMockRecorder) WatchEvents(ctx interface{}) *gomock.Call
- type MockUpdateOrchestrator
- func (m *MockUpdateOrchestrator) Apply(arg0 context.Context, arg1 map[string]api.UpdateManager, arg2 string, ...) bool
- func (m *MockUpdateOrchestrator) EXPECT() *MockUpdateOrchestratorMockRecorder
- func (m *MockUpdateOrchestrator) HandleDesiredStateFeedbackEvent(domain, activityID, baseline string, status types.StatusType, message string, ...)
- type MockUpdateOrchestratorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBaseClient ¶
type MockBaseClient struct {
// contains filtered or unexported fields
}
MockBaseClient is a mock of BaseClient interface.
func NewMockBaseClient ¶
func NewMockBaseClient(ctrl *gomock.Controller) *MockBaseClient
NewMockBaseClient creates a new mock instance.
func (*MockBaseClient) EXPECT ¶
func (m *MockBaseClient) EXPECT() *MockBaseClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBaseClientMockRecorder ¶
type MockBaseClientMockRecorder struct {
// contains filtered or unexported fields
}
MockBaseClientMockRecorder is the mock recorder for MockBaseClient.
func (*MockBaseClientMockRecorder) Domain ¶
func (mr *MockBaseClientMockRecorder) Domain() *gomock.Call
Domain indicates an expected call of Domain.
func (*MockBaseClientMockRecorder) Stop ¶
func (mr *MockBaseClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
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) Reply ¶
func (m *MockClient) Reply(requestID string, message *protocol.Envelope) error
Reply mocks base method.
func (*MockClient) Send ¶
func (m *MockClient) Send(message *protocol.Envelope) error
Send mocks base method.
func (*MockClient) Subscribe ¶
func (m *MockClient) Subscribe(handlers ...ditto.Handler)
Subscribe mocks base method.
func (*MockClient) Unsubscribe ¶
func (m *MockClient) Unsubscribe(handlers ...ditto.Handler)
Unsubscribe mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Connect ¶
func (mr *MockClientMockRecorder) Connect() *gomock.Call
Connect indicates an expected call of Connect.
func (*MockClientMockRecorder) Disconnect ¶
func (mr *MockClientMockRecorder) Disconnect() *gomock.Call
Disconnect indicates an expected call of Disconnect.
func (*MockClientMockRecorder) Reply ¶
func (mr *MockClientMockRecorder) Reply(requestID, message interface{}) *gomock.Call
Reply indicates an expected call of Reply.
func (*MockClientMockRecorder) Send ¶
func (mr *MockClientMockRecorder) Send(message interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockClientMockRecorder) Subscribe ¶
func (mr *MockClientMockRecorder) Subscribe(handlers ...interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MockClientMockRecorder) Unsubscribe ¶
func (mr *MockClientMockRecorder) Unsubscribe(handlers ...interface{}) *gomock.Call
Unsubscribe indicates an expected call of Unsubscribe.
type MockCurrentStateHandler ¶
type MockCurrentStateHandler struct {
// contains filtered or unexported fields
}
MockCurrentStateHandler is a mock of CurrentStateHandler interface.
func NewMockCurrentStateHandler ¶
func NewMockCurrentStateHandler(ctrl *gomock.Controller) *MockCurrentStateHandler
NewMockCurrentStateHandler creates a new mock instance.
func (*MockCurrentStateHandler) EXPECT ¶
func (m *MockCurrentStateHandler) EXPECT() *MockCurrentStateHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCurrentStateHandler) HandleCurrentStateEvent ¶
func (m *MockCurrentStateHandler) HandleCurrentStateEvent(domain, activityID string, currentState *types.Inventory)
HandleCurrentStateEvent mocks base method.
type MockCurrentStateHandlerMockRecorder ¶
type MockCurrentStateHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockCurrentStateHandlerMockRecorder is the mock recorder for MockCurrentStateHandler.
func (*MockCurrentStateHandlerMockRecorder) HandleCurrentStateEvent ¶
func (mr *MockCurrentStateHandlerMockRecorder) HandleCurrentStateEvent(domain, activityID, currentState interface{}) *gomock.Call
HandleCurrentStateEvent indicates an expected call of HandleCurrentStateEvent.
type MockDesiredStateClient ¶
type MockDesiredStateClient struct {
// contains filtered or unexported fields
}
MockDesiredStateClient is a mock of DesiredStateClient interface.
func NewMockDesiredStateClient ¶
func NewMockDesiredStateClient(ctrl *gomock.Controller) *MockDesiredStateClient
NewMockDesiredStateClient creates a new mock instance.
func (*MockDesiredStateClient) Domain ¶
func (m *MockDesiredStateClient) Domain() string
Domain mocks base method.
func (*MockDesiredStateClient) EXPECT ¶
func (m *MockDesiredStateClient) EXPECT() *MockDesiredStateClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDesiredStateClient) SendCurrentStateGet ¶
func (m *MockDesiredStateClient) SendCurrentStateGet(arg0 string) error
SendCurrentStateGet mocks base method.
func (*MockDesiredStateClient) SendDesiredState ¶
func (m *MockDesiredStateClient) SendDesiredState(arg0 string, arg1 *types.DesiredState) error
SendDesiredState mocks base method.
func (*MockDesiredStateClient) SendDesiredStateCommand ¶
func (m *MockDesiredStateClient) SendDesiredStateCommand(arg0 string, arg1 *types.DesiredStateCommand) error
SendDesiredStateCommand mocks base method.
func (*MockDesiredStateClient) Start ¶
func (m *MockDesiredStateClient) Start(arg0 api.StateHandler) error
Start mocks base method.
func (*MockDesiredStateClient) Stop ¶
func (m *MockDesiredStateClient) Stop() error
Stop mocks base method.
type MockDesiredStateClientMockRecorder ¶
type MockDesiredStateClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDesiredStateClientMockRecorder is the mock recorder for MockDesiredStateClient.
func (*MockDesiredStateClientMockRecorder) Domain ¶
func (mr *MockDesiredStateClientMockRecorder) Domain() *gomock.Call
Domain indicates an expected call of Domain.
func (*MockDesiredStateClientMockRecorder) SendCurrentStateGet ¶
func (mr *MockDesiredStateClientMockRecorder) SendCurrentStateGet(arg0 interface{}) *gomock.Call
SendCurrentStateGet indicates an expected call of SendCurrentStateGet.
func (*MockDesiredStateClientMockRecorder) SendDesiredState ¶
func (mr *MockDesiredStateClientMockRecorder) SendDesiredState(arg0, arg1 interface{}) *gomock.Call
SendDesiredState indicates an expected call of SendDesiredState.
func (*MockDesiredStateClientMockRecorder) SendDesiredStateCommand ¶
func (mr *MockDesiredStateClientMockRecorder) SendDesiredStateCommand(arg0, arg1 interface{}) *gomock.Call
SendDesiredStateCommand indicates an expected call of SendDesiredStateCommand.
func (*MockDesiredStateClientMockRecorder) Start ¶
func (mr *MockDesiredStateClientMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockDesiredStateClientMockRecorder) Stop ¶
func (mr *MockDesiredStateClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockDesiredStateFeedbackHandler ¶
type MockDesiredStateFeedbackHandler struct {
// contains filtered or unexported fields
}
MockDesiredStateFeedbackHandler is a mock of DesiredStateFeedbackHandler interface.
func NewMockDesiredStateFeedbackHandler ¶
func NewMockDesiredStateFeedbackHandler(ctrl *gomock.Controller) *MockDesiredStateFeedbackHandler
NewMockDesiredStateFeedbackHandler creates a new mock instance.
func (*MockDesiredStateFeedbackHandler) EXPECT ¶
func (m *MockDesiredStateFeedbackHandler) EXPECT() *MockDesiredStateFeedbackHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDesiredStateFeedbackHandler) HandleDesiredStateFeedbackEvent ¶
func (m *MockDesiredStateFeedbackHandler) HandleDesiredStateFeedbackEvent(domain, activityID, baseline string, status types.StatusType, message string, actions []*types.Action)
HandleDesiredStateFeedbackEvent mocks base method.
type MockDesiredStateFeedbackHandlerMockRecorder ¶
type MockDesiredStateFeedbackHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockDesiredStateFeedbackHandlerMockRecorder is the mock recorder for MockDesiredStateFeedbackHandler.
func (*MockDesiredStateFeedbackHandlerMockRecorder) HandleDesiredStateFeedbackEvent ¶
func (mr *MockDesiredStateFeedbackHandlerMockRecorder) HandleDesiredStateFeedbackEvent(domain, activityID, baseline, status, message, actions interface{}) *gomock.Call
HandleDesiredStateFeedbackEvent indicates an expected call of HandleDesiredStateFeedbackEvent.
type MockRebootManager ¶
type MockRebootManager struct {
// contains filtered or unexported fields
}
MockRebootManager is a mock of RebootManager interface.
func NewMockRebootManager ¶
func NewMockRebootManager(ctrl *gomock.Controller) *MockRebootManager
NewMockRebootManager creates a new mock instance.
func (*MockRebootManager) EXPECT ¶
func (m *MockRebootManager) EXPECT() *MockRebootManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRebootManagerMockRecorder ¶
type MockRebootManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockRebootManagerMockRecorder is the mock recorder for MockRebootManager.
func (*MockRebootManagerMockRecorder) Reboot ¶
func (mr *MockRebootManagerMockRecorder) Reboot(arg0 interface{}) *gomock.Call
Reboot indicates an expected call of Reboot.
type MockStateHandler ¶
type MockStateHandler struct {
// contains filtered or unexported fields
}
MockStateHandler is a mock of StateHandler interface.
func NewMockStateHandler ¶
func NewMockStateHandler(ctrl *gomock.Controller) *MockStateHandler
NewMockStateHandler creates a new mock instance.
func (*MockStateHandler) EXPECT ¶
func (m *MockStateHandler) EXPECT() *MockStateHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateHandler) HandleCurrentState ¶
HandleCurrentState mocks base method.
func (*MockStateHandler) HandleDesiredStateFeedback ¶
func (m *MockStateHandler) HandleDesiredStateFeedback(arg0 string, arg1 int64, arg2 *types.DesiredStateFeedback) error
HandleDesiredStateFeedback mocks base method.
type MockStateHandlerMockRecorder ¶
type MockStateHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockStateHandlerMockRecorder is the mock recorder for MockStateHandler.
func (*MockStateHandlerMockRecorder) HandleCurrentState ¶
func (mr *MockStateHandlerMockRecorder) HandleCurrentState(arg0, arg1, arg2 interface{}) *gomock.Call
HandleCurrentState indicates an expected call of HandleCurrentState.
func (*MockStateHandlerMockRecorder) HandleDesiredStateFeedback ¶
func (mr *MockStateHandlerMockRecorder) HandleDesiredStateFeedback(arg0, arg1, arg2 interface{}) *gomock.Call
HandleDesiredStateFeedback indicates an expected call of HandleDesiredStateFeedback.
type MockUpdateAgent ¶
type MockUpdateAgent struct {
// contains filtered or unexported fields
}
MockUpdateAgent is a mock of UpdateAgent interface.
func NewMockUpdateAgent ¶
func NewMockUpdateAgent(ctrl *gomock.Controller) *MockUpdateAgent
NewMockUpdateAgent creates a new mock instance.
func (*MockUpdateAgent) EXPECT ¶
func (m *MockUpdateAgent) EXPECT() *MockUpdateAgentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUpdateAgentClient ¶
type MockUpdateAgentClient struct {
// contains filtered or unexported fields
}
MockUpdateAgentClient is a mock of UpdateAgentClient interface.
func NewMockUpdateAgentClient ¶
func NewMockUpdateAgentClient(ctrl *gomock.Controller) *MockUpdateAgentClient
NewMockUpdateAgentClient creates a new mock instance.
func (*MockUpdateAgentClient) Domain ¶
func (m *MockUpdateAgentClient) Domain() string
Domain mocks base method.
func (*MockUpdateAgentClient) EXPECT ¶
func (m *MockUpdateAgentClient) EXPECT() *MockUpdateAgentClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateAgentClient) SendCurrentState ¶
func (m *MockUpdateAgentClient) SendCurrentState(arg0 string, arg1 *types.Inventory) error
SendCurrentState mocks base method.
func (*MockUpdateAgentClient) SendDesiredStateFeedback ¶
func (m *MockUpdateAgentClient) SendDesiredStateFeedback(arg0 string, arg1 *types.DesiredStateFeedback) error
SendDesiredStateFeedback mocks base method.
func (*MockUpdateAgentClient) Start ¶
func (m *MockUpdateAgentClient) Start(arg0 api.UpdateAgentHandler) error
Start mocks base method.
func (*MockUpdateAgentClient) Stop ¶
func (m *MockUpdateAgentClient) Stop() error
Stop mocks base method.
type MockUpdateAgentClientMockRecorder ¶
type MockUpdateAgentClientMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateAgentClientMockRecorder is the mock recorder for MockUpdateAgentClient.
func (*MockUpdateAgentClientMockRecorder) Domain ¶
func (mr *MockUpdateAgentClientMockRecorder) Domain() *gomock.Call
Domain indicates an expected call of Domain.
func (*MockUpdateAgentClientMockRecorder) SendCurrentState ¶
func (mr *MockUpdateAgentClientMockRecorder) SendCurrentState(arg0, arg1 interface{}) *gomock.Call
SendCurrentState indicates an expected call of SendCurrentState.
func (*MockUpdateAgentClientMockRecorder) SendDesiredStateFeedback ¶
func (mr *MockUpdateAgentClientMockRecorder) SendDesiredStateFeedback(arg0, arg1 interface{}) *gomock.Call
SendDesiredStateFeedback indicates an expected call of SendDesiredStateFeedback.
func (*MockUpdateAgentClientMockRecorder) Start ¶
func (mr *MockUpdateAgentClientMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockUpdateAgentClientMockRecorder) Stop ¶
func (mr *MockUpdateAgentClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockUpdateAgentHandler ¶
type MockUpdateAgentHandler struct {
// contains filtered or unexported fields
}
MockUpdateAgentHandler is a mock of UpdateAgentHandler interface.
func NewMockUpdateAgentHandler ¶
func NewMockUpdateAgentHandler(ctrl *gomock.Controller) *MockUpdateAgentHandler
NewMockUpdateAgentHandler creates a new mock instance.
func (*MockUpdateAgentHandler) EXPECT ¶
func (m *MockUpdateAgentHandler) EXPECT() *MockUpdateAgentHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateAgentHandler) HandleCurrentStateGet ¶
func (m *MockUpdateAgentHandler) HandleCurrentStateGet(arg0 string, arg1 int64) error
HandleCurrentStateGet mocks base method.
func (*MockUpdateAgentHandler) HandleDesiredState ¶
func (m *MockUpdateAgentHandler) HandleDesiredState(arg0 string, arg1 int64, arg2 *types.DesiredState) error
HandleDesiredState mocks base method.
func (*MockUpdateAgentHandler) HandleDesiredStateCommand ¶
func (m *MockUpdateAgentHandler) HandleDesiredStateCommand(arg0 string, arg1 int64, arg2 *types.DesiredStateCommand) error
HandleDesiredStateCommand mocks base method.
type MockUpdateAgentHandlerMockRecorder ¶
type MockUpdateAgentHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateAgentHandlerMockRecorder is the mock recorder for MockUpdateAgentHandler.
func (*MockUpdateAgentHandlerMockRecorder) HandleCurrentStateGet ¶
func (mr *MockUpdateAgentHandlerMockRecorder) HandleCurrentStateGet(arg0, arg1 interface{}) *gomock.Call
HandleCurrentStateGet indicates an expected call of HandleCurrentStateGet.
func (*MockUpdateAgentHandlerMockRecorder) HandleDesiredState ¶
func (mr *MockUpdateAgentHandlerMockRecorder) HandleDesiredState(arg0, arg1, arg2 interface{}) *gomock.Call
HandleDesiredState indicates an expected call of HandleDesiredState.
func (*MockUpdateAgentHandlerMockRecorder) HandleDesiredStateCommand ¶
func (mr *MockUpdateAgentHandlerMockRecorder) HandleDesiredStateCommand(arg0, arg1, arg2 interface{}) *gomock.Call
HandleDesiredStateCommand indicates an expected call of HandleDesiredStateCommand.
type MockUpdateAgentMockRecorder ¶
type MockUpdateAgentMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateAgentMockRecorder is the mock recorder for MockUpdateAgent.
func (*MockUpdateAgentMockRecorder) Start ¶
func (mr *MockUpdateAgentMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockUpdateAgentMockRecorder) Stop ¶
func (mr *MockUpdateAgentMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockUpdateManager ¶
type MockUpdateManager struct {
// contains filtered or unexported fields
}
MockUpdateManager is a mock of UpdateManager interface.
func NewMockUpdateManager ¶
func NewMockUpdateManager(ctrl *gomock.Controller) *MockUpdateManager
NewMockUpdateManager creates a new mock instance.
func (*MockUpdateManager) Apply ¶
func (m *MockUpdateManager) Apply(ctx context.Context, activityID string, desiredState *types.DesiredState)
Apply mocks base method.
func (*MockUpdateManager) Command ¶
func (m *MockUpdateManager) Command(ctx context.Context, activityID string, command *types.DesiredStateCommand)
Command mocks base method.
func (*MockUpdateManager) Dispose ¶
func (m *MockUpdateManager) Dispose() error
Dispose mocks base method.
func (*MockUpdateManager) EXPECT ¶
func (m *MockUpdateManager) EXPECT() *MockUpdateManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateManager) SetCallback ¶
func (m *MockUpdateManager) SetCallback(callback api.UpdateManagerCallback)
SetCallback mocks base method.
func (*MockUpdateManager) WatchEvents ¶
func (m *MockUpdateManager) WatchEvents(ctx context.Context)
WatchEvents mocks base method.
type MockUpdateManagerCallback ¶
type MockUpdateManagerCallback struct {
// contains filtered or unexported fields
}
MockUpdateManagerCallback is a mock of UpdateManagerCallback interface.
func NewMockUpdateManagerCallback ¶
func NewMockUpdateManagerCallback(ctrl *gomock.Controller) *MockUpdateManagerCallback
NewMockUpdateManagerCallback creates a new mock instance.
func (*MockUpdateManagerCallback) EXPECT ¶
func (m *MockUpdateManagerCallback) EXPECT() *MockUpdateManagerCallbackMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateManagerCallback) HandleCurrentStateEvent ¶
func (m *MockUpdateManagerCallback) HandleCurrentStateEvent(domain, activityID string, currentState *types.Inventory)
HandleCurrentStateEvent mocks base method.
func (*MockUpdateManagerCallback) HandleDesiredStateFeedbackEvent ¶
func (m *MockUpdateManagerCallback) HandleDesiredStateFeedbackEvent(domain, activityID, baseline string, status types.StatusType, message string, actions []*types.Action)
HandleDesiredStateFeedbackEvent mocks base method.
type MockUpdateManagerCallbackMockRecorder ¶
type MockUpdateManagerCallbackMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateManagerCallbackMockRecorder is the mock recorder for MockUpdateManagerCallback.
func (*MockUpdateManagerCallbackMockRecorder) HandleCurrentStateEvent ¶
func (mr *MockUpdateManagerCallbackMockRecorder) HandleCurrentStateEvent(domain, activityID, currentState interface{}) *gomock.Call
HandleCurrentStateEvent indicates an expected call of HandleCurrentStateEvent.
func (*MockUpdateManagerCallbackMockRecorder) HandleDesiredStateFeedbackEvent ¶
func (mr *MockUpdateManagerCallbackMockRecorder) HandleDesiredStateFeedbackEvent(domain, activityID, baseline, status, message, actions interface{}) *gomock.Call
HandleDesiredStateFeedbackEvent indicates an expected call of HandleDesiredStateFeedbackEvent.
type MockUpdateManagerFeature ¶
type MockUpdateManagerFeature struct {
// contains filtered or unexported fields
}
MockUpdateManagerFeature is a mock of UpdateManagerFeature interface.
func NewMockUpdateManagerFeature ¶
func NewMockUpdateManagerFeature(ctrl *gomock.Controller) *MockUpdateManagerFeature
NewMockUpdateManagerFeature creates a new mock instance.
func (*MockUpdateManagerFeature) Activate ¶
func (m *MockUpdateManagerFeature) Activate() error
Activate mocks base method.
func (*MockUpdateManagerFeature) Deactivate ¶
func (m *MockUpdateManagerFeature) Deactivate()
Deactivate mocks base method.
func (*MockUpdateManagerFeature) EXPECT ¶
func (m *MockUpdateManagerFeature) EXPECT() *MockUpdateManagerFeatureMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateManagerFeature) SendFeedback ¶
func (m *MockUpdateManagerFeature) SendFeedback(activityID string, desiredStateFeedback *types.DesiredStateFeedback) error
SendFeedback mocks base method.
type MockUpdateManagerFeatureMockRecorder ¶
type MockUpdateManagerFeatureMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateManagerFeatureMockRecorder is the mock recorder for MockUpdateManagerFeature.
func (*MockUpdateManagerFeatureMockRecorder) Activate ¶
func (mr *MockUpdateManagerFeatureMockRecorder) Activate() *gomock.Call
Activate indicates an expected call of Activate.
func (*MockUpdateManagerFeatureMockRecorder) Deactivate ¶
func (mr *MockUpdateManagerFeatureMockRecorder) Deactivate() *gomock.Call
Deactivate indicates an expected call of Deactivate.
func (*MockUpdateManagerFeatureMockRecorder) SendFeedback ¶
func (mr *MockUpdateManagerFeatureMockRecorder) SendFeedback(activityID, desiredStateFeedback interface{}) *gomock.Call
SendFeedback indicates an expected call of SendFeedback.
func (*MockUpdateManagerFeatureMockRecorder) SetState ¶
func (mr *MockUpdateManagerFeatureMockRecorder) SetState(activityID, currentState interface{}) *gomock.Call
SetState indicates an expected call of SetState.
type MockUpdateManagerMockRecorder ¶
type MockUpdateManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateManagerMockRecorder is the mock recorder for MockUpdateManager.
func (*MockUpdateManagerMockRecorder) Apply ¶
func (mr *MockUpdateManagerMockRecorder) Apply(ctx, activityID, desiredState interface{}) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockUpdateManagerMockRecorder) Command ¶
func (mr *MockUpdateManagerMockRecorder) Command(ctx, activityID, command interface{}) *gomock.Call
Command indicates an expected call of Command.
func (*MockUpdateManagerMockRecorder) Dispose ¶
func (mr *MockUpdateManagerMockRecorder) Dispose() *gomock.Call
Dispose indicates an expected call of Dispose.
func (*MockUpdateManagerMockRecorder) Get ¶
func (mr *MockUpdateManagerMockRecorder) Get(ctx, activityID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUpdateManagerMockRecorder) Name ¶
func (mr *MockUpdateManagerMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockUpdateManagerMockRecorder) SetCallback ¶
func (mr *MockUpdateManagerMockRecorder) SetCallback(callback interface{}) *gomock.Call
SetCallback indicates an expected call of SetCallback.
func (*MockUpdateManagerMockRecorder) WatchEvents ¶
func (mr *MockUpdateManagerMockRecorder) WatchEvents(ctx interface{}) *gomock.Call
WatchEvents indicates an expected call of WatchEvents.
type MockUpdateOrchestrator ¶
type MockUpdateOrchestrator struct {
// contains filtered or unexported fields
}
MockUpdateOrchestrator is a mock of UpdateOrchestrator interface.
func NewMockUpdateOrchestrator ¶
func NewMockUpdateOrchestrator(ctrl *gomock.Controller) *MockUpdateOrchestrator
NewMockUpdateOrchestrator creates a new mock instance.
func (*MockUpdateOrchestrator) Apply ¶
func (m *MockUpdateOrchestrator) Apply(arg0 context.Context, arg1 map[string]api.UpdateManager, arg2 string, arg3 *types.DesiredState, arg4 api.DesiredStateFeedbackHandler) bool
Apply mocks base method.
func (*MockUpdateOrchestrator) EXPECT ¶
func (m *MockUpdateOrchestrator) EXPECT() *MockUpdateOrchestratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUpdateOrchestrator) HandleDesiredStateFeedbackEvent ¶
func (m *MockUpdateOrchestrator) HandleDesiredStateFeedbackEvent(domain, activityID, baseline string, status types.StatusType, message string, actions []*types.Action)
HandleDesiredStateFeedbackEvent mocks base method.
type MockUpdateOrchestratorMockRecorder ¶
type MockUpdateOrchestratorMockRecorder struct {
// contains filtered or unexported fields
}
MockUpdateOrchestratorMockRecorder is the mock recorder for MockUpdateOrchestrator.
func (*MockUpdateOrchestratorMockRecorder) Apply ¶
func (mr *MockUpdateOrchestratorMockRecorder) Apply(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockUpdateOrchestratorMockRecorder) HandleDesiredStateFeedbackEvent ¶
func (mr *MockUpdateOrchestratorMockRecorder) HandleDesiredStateFeedbackEvent(domain, activityID, baseline, status, message, actions interface{}) *gomock.Call
HandleDesiredStateFeedbackEvent indicates an expected call of HandleDesiredStateFeedbackEvent.