Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFacade
- func (m *MockFacade) Action(arg0 context.Context, arg1 names.ActionTag) (*machineactions.Action, error)
- func (m *MockFacade) ActionBegin(arg0 context.Context, arg1 names.ActionTag) error
- func (m *MockFacade) ActionFinish(arg0 context.Context, arg1 names.ActionTag, arg2 string, arg3 map[string]any, ...) error
- func (m *MockFacade) EXPECT() *MockFacadeMockRecorder
- func (m *MockFacade) RunningActions(arg0 context.Context, arg1 names.MachineTag) ([]params.ActionResult, error)
- func (m *MockFacade) WatchActionNotifications(arg0 context.Context, arg1 names.MachineTag) (watcher.Watcher[[]string], error)
- type MockFacadeActionBeginCall
- func (c *MockFacadeActionBeginCall) Do(f func(context.Context, names.ActionTag) error) *MockFacadeActionBeginCall
- func (c *MockFacadeActionBeginCall) DoAndReturn(f func(context.Context, names.ActionTag) error) *MockFacadeActionBeginCall
- func (c *MockFacadeActionBeginCall) Return(arg0 error) *MockFacadeActionBeginCall
- type MockFacadeActionCall
- func (c *MockFacadeActionCall) Do(f func(context.Context, names.ActionTag) (*machineactions.Action, error)) *MockFacadeActionCall
- func (c *MockFacadeActionCall) DoAndReturn(f func(context.Context, names.ActionTag) (*machineactions.Action, error)) *MockFacadeActionCall
- func (c *MockFacadeActionCall) Return(arg0 *machineactions.Action, arg1 error) *MockFacadeActionCall
- type MockFacadeActionFinishCall
- func (c *MockFacadeActionFinishCall) Do(f func(context.Context, names.ActionTag, string, map[string]any, string) error) *MockFacadeActionFinishCall
- func (c *MockFacadeActionFinishCall) DoAndReturn(f func(context.Context, names.ActionTag, string, map[string]any, string) error) *MockFacadeActionFinishCall
- func (c *MockFacadeActionFinishCall) Return(arg0 error) *MockFacadeActionFinishCall
- type MockFacadeMockRecorder
- func (mr *MockFacadeMockRecorder) Action(arg0, arg1 any) *MockFacadeActionCall
- func (mr *MockFacadeMockRecorder) ActionBegin(arg0, arg1 any) *MockFacadeActionBeginCall
- func (mr *MockFacadeMockRecorder) ActionFinish(arg0, arg1, arg2, arg3, arg4 any) *MockFacadeActionFinishCall
- func (mr *MockFacadeMockRecorder) RunningActions(arg0, arg1 any) *MockFacadeRunningActionsCall
- func (mr *MockFacadeMockRecorder) WatchActionNotifications(arg0, arg1 any) *MockFacadeWatchActionNotificationsCall
- type MockFacadeRunningActionsCall
- func (c *MockFacadeRunningActionsCall) Do(f func(context.Context, names.MachineTag) ([]params.ActionResult, error)) *MockFacadeRunningActionsCall
- func (c *MockFacadeRunningActionsCall) DoAndReturn(f func(context.Context, names.MachineTag) ([]params.ActionResult, error)) *MockFacadeRunningActionsCall
- func (c *MockFacadeRunningActionsCall) Return(arg0 []params.ActionResult, arg1 error) *MockFacadeRunningActionsCall
- type MockFacadeWatchActionNotificationsCall
- func (c *MockFacadeWatchActionNotificationsCall) Do(f func(context.Context, names.MachineTag) (watcher.Watcher[[]string], error)) *MockFacadeWatchActionNotificationsCall
- func (c *MockFacadeWatchActionNotificationsCall) DoAndReturn(f func(context.Context, names.MachineTag) (watcher.Watcher[[]string], error)) *MockFacadeWatchActionNotificationsCall
- func (c *MockFacadeWatchActionNotificationsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockFacadeWatchActionNotificationsCall
- type MockLock
- type MockLockAcquireCall
- type MockLockMockRecorder
- type MockLockReportCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFacade ¶
type MockFacade struct {
// contains filtered or unexported fields
}
MockFacade is a mock of Facade interface.
func NewMockFacade ¶
func NewMockFacade(ctrl *gomock.Controller) *MockFacade
NewMockFacade creates a new mock instance.
func (*MockFacade) Action ¶
func (m *MockFacade) Action(arg0 context.Context, arg1 names.ActionTag) (*machineactions.Action, error)
Action mocks base method.
func (*MockFacade) ActionBegin ¶
ActionBegin mocks base method.
func (*MockFacade) ActionFinish ¶
func (m *MockFacade) ActionFinish(arg0 context.Context, arg1 names.ActionTag, arg2 string, arg3 map[string]any, arg4 string) error
ActionFinish mocks base method.
func (*MockFacade) EXPECT ¶
func (m *MockFacade) EXPECT() *MockFacadeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFacade) RunningActions ¶
func (m *MockFacade) RunningActions(arg0 context.Context, arg1 names.MachineTag) ([]params.ActionResult, error)
RunningActions mocks base method.
func (*MockFacade) WatchActionNotifications ¶
func (m *MockFacade) WatchActionNotifications(arg0 context.Context, arg1 names.MachineTag) (watcher.Watcher[[]string], error)
WatchActionNotifications mocks base method.
type MockFacadeActionBeginCall ¶
MockFacadeActionBeginCall wrap *gomock.Call
func (*MockFacadeActionBeginCall) Do ¶
func (c *MockFacadeActionBeginCall) Do(f func(context.Context, names.ActionTag) error) *MockFacadeActionBeginCall
Do rewrite *gomock.Call.Do
func (*MockFacadeActionBeginCall) DoAndReturn ¶
func (c *MockFacadeActionBeginCall) DoAndReturn(f func(context.Context, names.ActionTag) error) *MockFacadeActionBeginCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFacadeActionBeginCall) Return ¶
func (c *MockFacadeActionBeginCall) Return(arg0 error) *MockFacadeActionBeginCall
Return rewrite *gomock.Call.Return
type MockFacadeActionCall ¶
MockFacadeActionCall wrap *gomock.Call
func (*MockFacadeActionCall) Do ¶
func (c *MockFacadeActionCall) Do(f func(context.Context, names.ActionTag) (*machineactions.Action, error)) *MockFacadeActionCall
Do rewrite *gomock.Call.Do
func (*MockFacadeActionCall) DoAndReturn ¶
func (c *MockFacadeActionCall) DoAndReturn(f func(context.Context, names.ActionTag) (*machineactions.Action, error)) *MockFacadeActionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFacadeActionCall) Return ¶
func (c *MockFacadeActionCall) Return(arg0 *machineactions.Action, arg1 error) *MockFacadeActionCall
Return rewrite *gomock.Call.Return
type MockFacadeActionFinishCall ¶
MockFacadeActionFinishCall wrap *gomock.Call
func (*MockFacadeActionFinishCall) Do ¶
func (c *MockFacadeActionFinishCall) Do(f func(context.Context, names.ActionTag, string, map[string]any, string) error) *MockFacadeActionFinishCall
Do rewrite *gomock.Call.Do
func (*MockFacadeActionFinishCall) DoAndReturn ¶
func (c *MockFacadeActionFinishCall) DoAndReturn(f func(context.Context, names.ActionTag, string, map[string]any, string) error) *MockFacadeActionFinishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFacadeActionFinishCall) Return ¶
func (c *MockFacadeActionFinishCall) Return(arg0 error) *MockFacadeActionFinishCall
Return rewrite *gomock.Call.Return
type MockFacadeMockRecorder ¶
type MockFacadeMockRecorder struct {
// contains filtered or unexported fields
}
MockFacadeMockRecorder is the mock recorder for MockFacade.
func (*MockFacadeMockRecorder) Action ¶
func (mr *MockFacadeMockRecorder) Action(arg0, arg1 any) *MockFacadeActionCall
Action indicates an expected call of Action.
func (*MockFacadeMockRecorder) ActionBegin ¶
func (mr *MockFacadeMockRecorder) ActionBegin(arg0, arg1 any) *MockFacadeActionBeginCall
ActionBegin indicates an expected call of ActionBegin.
func (*MockFacadeMockRecorder) ActionFinish ¶
func (mr *MockFacadeMockRecorder) ActionFinish(arg0, arg1, arg2, arg3, arg4 any) *MockFacadeActionFinishCall
ActionFinish indicates an expected call of ActionFinish.
func (*MockFacadeMockRecorder) RunningActions ¶
func (mr *MockFacadeMockRecorder) RunningActions(arg0, arg1 any) *MockFacadeRunningActionsCall
RunningActions indicates an expected call of RunningActions.
func (*MockFacadeMockRecorder) WatchActionNotifications ¶
func (mr *MockFacadeMockRecorder) WatchActionNotifications(arg0, arg1 any) *MockFacadeWatchActionNotificationsCall
WatchActionNotifications indicates an expected call of WatchActionNotifications.
type MockFacadeRunningActionsCall ¶
MockFacadeRunningActionsCall wrap *gomock.Call
func (*MockFacadeRunningActionsCall) Do ¶
func (c *MockFacadeRunningActionsCall) Do(f func(context.Context, names.MachineTag) ([]params.ActionResult, error)) *MockFacadeRunningActionsCall
Do rewrite *gomock.Call.Do
func (*MockFacadeRunningActionsCall) DoAndReturn ¶
func (c *MockFacadeRunningActionsCall) DoAndReturn(f func(context.Context, names.MachineTag) ([]params.ActionResult, error)) *MockFacadeRunningActionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFacadeRunningActionsCall) Return ¶
func (c *MockFacadeRunningActionsCall) Return(arg0 []params.ActionResult, arg1 error) *MockFacadeRunningActionsCall
Return rewrite *gomock.Call.Return
type MockFacadeWatchActionNotificationsCall ¶
MockFacadeWatchActionNotificationsCall wrap *gomock.Call
func (*MockFacadeWatchActionNotificationsCall) Do ¶
func (c *MockFacadeWatchActionNotificationsCall) Do(f func(context.Context, names.MachineTag) (watcher.Watcher[[]string], error)) *MockFacadeWatchActionNotificationsCall
Do rewrite *gomock.Call.Do
func (*MockFacadeWatchActionNotificationsCall) DoAndReturn ¶
func (c *MockFacadeWatchActionNotificationsCall) DoAndReturn(f func(context.Context, names.MachineTag) (watcher.Watcher[[]string], error)) *MockFacadeWatchActionNotificationsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockFacadeWatchActionNotificationsCall) Return ¶
func (c *MockFacadeWatchActionNotificationsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockFacadeWatchActionNotificationsCall
Return rewrite *gomock.Call.Return
type MockLock ¶
type MockLock struct {
// contains filtered or unexported fields
}
MockLock is a mock of Lock interface.
func NewMockLock ¶
func NewMockLock(ctrl *gomock.Controller) *MockLock
NewMockLock creates a new mock instance.
func (*MockLock) Acquire ¶
func (m *MockLock) Acquire(arg0 machinelock.Spec) (func(), error)
Acquire mocks base method.
func (*MockLock) EXPECT ¶
func (m *MockLock) EXPECT() *MockLockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLock) Report ¶
func (m *MockLock) Report(arg0 ...machinelock.ReportOption) (string, error)
Report mocks base method.
type MockLockAcquireCall ¶
MockLockAcquireCall wrap *gomock.Call
func (*MockLockAcquireCall) Do ¶
func (c *MockLockAcquireCall) Do(f func(machinelock.Spec) (func(), error)) *MockLockAcquireCall
Do rewrite *gomock.Call.Do
func (*MockLockAcquireCall) DoAndReturn ¶
func (c *MockLockAcquireCall) DoAndReturn(f func(machinelock.Spec) (func(), error)) *MockLockAcquireCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLockAcquireCall) Return ¶
func (c *MockLockAcquireCall) Return(arg0 func(), arg1 error) *MockLockAcquireCall
Return rewrite *gomock.Call.Return
type MockLockMockRecorder ¶
type MockLockMockRecorder struct {
// contains filtered or unexported fields
}
MockLockMockRecorder is the mock recorder for MockLock.
func (*MockLockMockRecorder) Acquire ¶
func (mr *MockLockMockRecorder) Acquire(arg0 any) *MockLockAcquireCall
Acquire indicates an expected call of Acquire.
func (*MockLockMockRecorder) Report ¶
func (mr *MockLockMockRecorder) Report(arg0 ...any) *MockLockReportCall
Report indicates an expected call of Report.
type MockLockReportCall ¶
MockLockReportCall wrap *gomock.Call
func (*MockLockReportCall) Do ¶
func (c *MockLockReportCall) Do(f func(...machinelock.ReportOption) (string, error)) *MockLockReportCall
Do rewrite *gomock.Call.Do
func (*MockLockReportCall) DoAndReturn ¶
func (c *MockLockReportCall) DoAndReturn(f func(...machinelock.ReportOption) (string, error)) *MockLockReportCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLockReportCall) Return ¶
func (c *MockLockReportCall) Return(arg0 string, arg1 error) *MockLockReportCall
Return rewrite *gomock.Call.Return