Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) ClearReboot(arg0 context.Context) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetRebootAction(arg0 context.Context) (params.RebootAction, error)
- func (m *MockClient) RequestReboot(arg0 context.Context) error
- func (m *MockClient) WatchForRebootEvent(arg0 context.Context) (watcher.Watcher[struct{}], error)
- type MockClientClearRebootCall
- type MockClientGetRebootActionCall
- func (c *MockClientGetRebootActionCall) Do(f func(context.Context) (params.RebootAction, error)) *MockClientGetRebootActionCall
- func (c *MockClientGetRebootActionCall) DoAndReturn(f func(context.Context) (params.RebootAction, error)) *MockClientGetRebootActionCall
- func (c *MockClientGetRebootActionCall) Return(arg0 params.RebootAction, arg1 error) *MockClientGetRebootActionCall
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) ClearReboot(arg0 any) *MockClientClearRebootCall
- func (mr *MockClientMockRecorder) GetRebootAction(arg0 any) *MockClientGetRebootActionCall
- func (mr *MockClientMockRecorder) RequestReboot(arg0 any) *MockClientRequestRebootCall
- func (mr *MockClientMockRecorder) WatchForRebootEvent(arg0 any) *MockClientWatchForRebootEventCall
- type MockClientRequestRebootCall
- type MockClientWatchForRebootEventCall
- func (c *MockClientWatchForRebootEventCall) Do(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockClientWatchForRebootEventCall
- func (c *MockClientWatchForRebootEventCall) DoAndReturn(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockClientWatchForRebootEventCall
- func (c *MockClientWatchForRebootEventCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockClientWatchForRebootEventCall
- 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 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) ClearReboot ¶
func (m *MockClient) ClearReboot(arg0 context.Context) error
ClearReboot mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetRebootAction ¶
func (m *MockClient) GetRebootAction(arg0 context.Context) (params.RebootAction, error)
GetRebootAction mocks base method.
func (*MockClient) RequestReboot ¶
func (m *MockClient) RequestReboot(arg0 context.Context) error
RequestReboot mocks base method.
func (*MockClient) WatchForRebootEvent ¶
WatchForRebootEvent mocks base method.
type MockClientClearRebootCall ¶
MockClientClearRebootCall wrap *gomock.Call
func (*MockClientClearRebootCall) Do ¶
func (c *MockClientClearRebootCall) Do(f func(context.Context) error) *MockClientClearRebootCall
Do rewrite *gomock.Call.Do
func (*MockClientClearRebootCall) DoAndReturn ¶
func (c *MockClientClearRebootCall) DoAndReturn(f func(context.Context) error) *MockClientClearRebootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientClearRebootCall) Return ¶
func (c *MockClientClearRebootCall) Return(arg0 error) *MockClientClearRebootCall
Return rewrite *gomock.Call.Return
type MockClientGetRebootActionCall ¶
MockClientGetRebootActionCall wrap *gomock.Call
func (*MockClientGetRebootActionCall) Do ¶
func (c *MockClientGetRebootActionCall) Do(f func(context.Context) (params.RebootAction, error)) *MockClientGetRebootActionCall
Do rewrite *gomock.Call.Do
func (*MockClientGetRebootActionCall) DoAndReturn ¶
func (c *MockClientGetRebootActionCall) DoAndReturn(f func(context.Context) (params.RebootAction, error)) *MockClientGetRebootActionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientGetRebootActionCall) Return ¶
func (c *MockClientGetRebootActionCall) Return(arg0 params.RebootAction, arg1 error) *MockClientGetRebootActionCall
Return rewrite *gomock.Call.Return
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) ClearReboot ¶
func (mr *MockClientMockRecorder) ClearReboot(arg0 any) *MockClientClearRebootCall
ClearReboot indicates an expected call of ClearReboot.
func (*MockClientMockRecorder) GetRebootAction ¶
func (mr *MockClientMockRecorder) GetRebootAction(arg0 any) *MockClientGetRebootActionCall
GetRebootAction indicates an expected call of GetRebootAction.
func (*MockClientMockRecorder) RequestReboot ¶
func (mr *MockClientMockRecorder) RequestReboot(arg0 any) *MockClientRequestRebootCall
RequestReboot indicates an expected call of RequestReboot.
func (*MockClientMockRecorder) WatchForRebootEvent ¶
func (mr *MockClientMockRecorder) WatchForRebootEvent(arg0 any) *MockClientWatchForRebootEventCall
WatchForRebootEvent indicates an expected call of WatchForRebootEvent.
type MockClientRequestRebootCall ¶
MockClientRequestRebootCall wrap *gomock.Call
func (*MockClientRequestRebootCall) Do ¶
func (c *MockClientRequestRebootCall) Do(f func(context.Context) error) *MockClientRequestRebootCall
Do rewrite *gomock.Call.Do
func (*MockClientRequestRebootCall) DoAndReturn ¶
func (c *MockClientRequestRebootCall) DoAndReturn(f func(context.Context) error) *MockClientRequestRebootCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientRequestRebootCall) Return ¶
func (c *MockClientRequestRebootCall) Return(arg0 error) *MockClientRequestRebootCall
Return rewrite *gomock.Call.Return
type MockClientWatchForRebootEventCall ¶
MockClientWatchForRebootEventCall wrap *gomock.Call
func (*MockClientWatchForRebootEventCall) Do ¶
func (c *MockClientWatchForRebootEventCall) Do(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockClientWatchForRebootEventCall
Do rewrite *gomock.Call.Do
func (*MockClientWatchForRebootEventCall) DoAndReturn ¶
func (c *MockClientWatchForRebootEventCall) DoAndReturn(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockClientWatchForRebootEventCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockClientWatchForRebootEventCall) Return ¶
func (c *MockClientWatchForRebootEventCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockClientWatchForRebootEventCall
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