mocks

package
v0.0.0-...-56cb166 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

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

func (m *MockClient) WatchForRebootEvent(arg0 context.Context) (watcher.Watcher[struct{}], error)

WatchForRebootEvent mocks base method.

type MockClientClearRebootCall

type MockClientClearRebootCall struct {
	*gomock.Call
}

MockClientClearRebootCall wrap *gomock.Call

func (*MockClientClearRebootCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientClearRebootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientClearRebootCall) Return

Return rewrite *gomock.Call.Return

type MockClientGetRebootActionCall

type MockClientGetRebootActionCall struct {
	*gomock.Call
}

MockClientGetRebootActionCall wrap *gomock.Call

func (*MockClientGetRebootActionCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientGetRebootActionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientGetRebootActionCall) Return

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

type MockClientRequestRebootCall struct {
	*gomock.Call
}

MockClientRequestRebootCall wrap *gomock.Call

func (*MockClientRequestRebootCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientRequestRebootCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientRequestRebootCall) Return

Return rewrite *gomock.Call.Return

type MockClientWatchForRebootEventCall

type MockClientWatchForRebootEventCall struct {
	*gomock.Call
}

MockClientWatchForRebootEventCall wrap *gomock.Call

func (*MockClientWatchForRebootEventCall) Do

Do rewrite *gomock.Call.Do

func (*MockClientWatchForRebootEventCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockClientWatchForRebootEventCall) Return

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

type MockLockAcquireCall struct {
	*gomock.Call
}

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

type MockLockReportCall struct {
	*gomock.Call
}

MockLockReportCall wrap *gomock.Call

func (*MockLockReportCall) Do

Do rewrite *gomock.Call.Do

func (*MockLockReportCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLockReportCall) Return

func (c *MockLockReportCall) Return(arg0 string, arg1 error) *MockLockReportCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL