mocks

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 8 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 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

func (m *MockFacade) ActionBegin(arg0 context.Context, arg1 names.ActionTag) error

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

type MockFacadeActionBeginCall struct {
	*gomock.Call
}

MockFacadeActionBeginCall wrap *gomock.Call

func (*MockFacadeActionBeginCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeActionBeginCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeActionBeginCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeActionCall

type MockFacadeActionCall struct {
	*gomock.Call
}

MockFacadeActionCall wrap *gomock.Call

func (*MockFacadeActionCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeActionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeActionCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeActionFinishCall

type MockFacadeActionFinishCall struct {
	*gomock.Call
}

MockFacadeActionFinishCall wrap *gomock.Call

func (*MockFacadeActionFinishCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeActionFinishCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeActionFinishCall) Return

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

type MockFacadeRunningActionsCall struct {
	*gomock.Call
}

MockFacadeRunningActionsCall wrap *gomock.Call

func (*MockFacadeRunningActionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeRunningActionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeRunningActionsCall) Return

Return rewrite *gomock.Call.Return

type MockFacadeWatchActionNotificationsCall

type MockFacadeWatchActionNotificationsCall struct {
	*gomock.Call
}

MockFacadeWatchActionNotificationsCall wrap *gomock.Call

func (*MockFacadeWatchActionNotificationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockFacadeWatchActionNotificationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFacadeWatchActionNotificationsCall) 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