mocks

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

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

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCredentialAPI

type MockCredentialAPI struct {
	// contains filtered or unexported fields
}

MockCredentialAPI is a mock of CredentialAPI interface.

func NewMockCredentialAPI

func NewMockCredentialAPI(ctrl *gomock.Controller) *MockCredentialAPI

NewMockCredentialAPI creates a new mock instance.

func (*MockCredentialAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCredentialAPI) InvalidateModelCredential

func (m *MockCredentialAPI) InvalidateModelCredential(arg0 context.Context, arg1 string) error

InvalidateModelCredential mocks base method.

type MockCredentialAPIInvalidateModelCredentialCall

type MockCredentialAPIInvalidateModelCredentialCall struct {
	*gomock.Call
}

MockCredentialAPIInvalidateModelCredentialCall wrap *gomock.Call

func (*MockCredentialAPIInvalidateModelCredentialCall) Do

Do rewrite *gomock.Call.Do

func (*MockCredentialAPIInvalidateModelCredentialCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCredentialAPIInvalidateModelCredentialCall) Return

Return rewrite *gomock.Call.Return

type MockCredentialAPIMockRecorder

type MockCredentialAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockCredentialAPIMockRecorder is the mock recorder for MockCredentialAPI.

func (*MockCredentialAPIMockRecorder) InvalidateModelCredential

func (mr *MockCredentialAPIMockRecorder) InvalidateModelCredential(arg0, arg1 any) *MockCredentialAPIInvalidateModelCredentialCall

InvalidateModelCredential indicates an expected call of InvalidateModelCredential.

type MockEnviron

type MockEnviron struct {
	// contains filtered or unexported fields
}

MockEnviron is a mock of Environ interface.

func NewMockEnviron

func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron

NewMockEnviron creates a new mock instance.

func (*MockEnviron) EXPECT

func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEnviron) Instances

func (m *MockEnviron) Instances(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)

Instances mocks base method.

func (*MockEnviron) NetworkInterfaces

func (m *MockEnviron) NetworkInterfaces(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]network.InterfaceInfos, error)

NetworkInterfaces mocks base method.

type MockEnvironInstancesCall

type MockEnvironInstancesCall struct {
	*gomock.Call
}

MockEnvironInstancesCall wrap *gomock.Call

func (*MockEnvironInstancesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstancesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstancesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironMockRecorder

type MockEnvironMockRecorder struct {
	// contains filtered or unexported fields
}

MockEnvironMockRecorder is the mock recorder for MockEnviron.

func (*MockEnvironMockRecorder) Instances

func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *MockEnvironInstancesCall

Instances indicates an expected call of Instances.

func (*MockEnvironMockRecorder) NetworkInterfaces

func (mr *MockEnvironMockRecorder) NetworkInterfaces(arg0, arg1 any) *MockEnvironNetworkInterfacesCall

NetworkInterfaces indicates an expected call of NetworkInterfaces.

type MockEnvironNetworkInterfacesCall

type MockEnvironNetworkInterfacesCall struct {
	*gomock.Call
}

MockEnvironNetworkInterfacesCall wrap *gomock.Call

func (*MockEnvironNetworkInterfacesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironNetworkInterfacesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironNetworkInterfacesCall) Return

Return rewrite *gomock.Call.Return

type MockInstance

type MockInstance struct {
	// contains filtered or unexported fields
}

MockInstance is a mock of Instance interface.

func NewMockInstance

func NewMockInstance(ctrl *gomock.Controller) *MockInstance

NewMockInstance creates a new mock instance.

func (*MockInstance) Addresses

Addresses mocks base method.

func (*MockInstance) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInstance) Id

func (m *MockInstance) Id() instance.Id

Id mocks base method.

func (*MockInstance) Status

Status mocks base method.

type MockInstanceAddressesCall

type MockInstanceAddressesCall struct {
	*gomock.Call
}

MockInstanceAddressesCall wrap *gomock.Call

func (*MockInstanceAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceAddressesCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceIdCall

type MockInstanceIdCall struct {
	*gomock.Call
}

MockInstanceIdCall wrap *gomock.Call

func (*MockInstanceIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceIdCall) DoAndReturn

func (c *MockInstanceIdCall) DoAndReturn(f func() instance.Id) *MockInstanceIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceIdCall) Return

Return rewrite *gomock.Call.Return

type MockInstanceMockRecorder

type MockInstanceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInstanceMockRecorder is the mock recorder for MockInstance.

func (*MockInstanceMockRecorder) Addresses

Addresses indicates an expected call of Addresses.

func (*MockInstanceMockRecorder) Id

Id indicates an expected call of Id.

func (*MockInstanceMockRecorder) Status

Status indicates an expected call of Status.

type MockInstanceStatusCall

type MockInstanceStatusCall struct {
	*gomock.Call
}

MockInstanceStatusCall wrap *gomock.Call

func (*MockInstanceStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockInstanceStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockInstanceStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMachine

type MockMachine struct {
	// contains filtered or unexported fields
}

MockMachine is a mock of Machine interface.

func NewMockMachine

func NewMockMachine(ctrl *gomock.Controller) *MockMachine

NewMockMachine creates a new mock instance.

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMachine) Id

func (m *MockMachine) Id() string

Id mocks base method.

func (*MockMachine) InstanceId

func (m *MockMachine) InstanceId(arg0 context.Context) (instance.Id, error)

InstanceId mocks base method.

func (*MockMachine) InstanceStatus

func (m *MockMachine) InstanceStatus(arg0 context.Context) (params.StatusResult, error)

InstanceStatus mocks base method.

func (*MockMachine) IsManual

func (m *MockMachine) IsManual(arg0 context.Context) (bool, error)

IsManual mocks base method.

func (*MockMachine) Life

func (m *MockMachine) Life() life.Value

Life mocks base method.

func (*MockMachine) Refresh

func (m *MockMachine) Refresh(arg0 context.Context) error

Refresh mocks base method.

func (*MockMachine) SetInstanceStatus

func (m *MockMachine) SetInstanceStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error

SetInstanceStatus mocks base method.

func (*MockMachine) SetProviderNetworkConfig

func (m *MockMachine) SetProviderNetworkConfig(arg0 context.Context, arg1 network.InterfaceInfos) (network.ProviderAddresses, bool, error)

SetProviderNetworkConfig mocks base method.

func (*MockMachine) Status

func (m *MockMachine) Status(arg0 context.Context) (params.StatusResult, error)

Status mocks base method.

func (*MockMachine) String

func (m *MockMachine) String() string

String mocks base method.

type MockMachineIdCall

type MockMachineIdCall struct {
	*gomock.Call
}

MockMachineIdCall wrap *gomock.Call

func (*MockMachineIdCall) Do

func (c *MockMachineIdCall) Do(f func() string) *MockMachineIdCall

Do rewrite *gomock.Call.Do

func (*MockMachineIdCall) DoAndReturn

func (c *MockMachineIdCall) DoAndReturn(f func() string) *MockMachineIdCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineIdCall) Return

func (c *MockMachineIdCall) Return(arg0 string) *MockMachineIdCall

Return rewrite *gomock.Call.Return

type MockMachineInstanceIdCall

type MockMachineInstanceIdCall struct {
	*gomock.Call
}

MockMachineInstanceIdCall wrap *gomock.Call

func (*MockMachineInstanceIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineInstanceIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineInstanceIdCall) Return

Return rewrite *gomock.Call.Return

type MockMachineInstanceStatusCall

type MockMachineInstanceStatusCall struct {
	*gomock.Call
}

MockMachineInstanceStatusCall wrap *gomock.Call

func (*MockMachineInstanceStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineInstanceStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineInstanceStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMachineIsManualCall

type MockMachineIsManualCall struct {
	*gomock.Call
}

MockMachineIsManualCall wrap *gomock.Call

func (*MockMachineIsManualCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineIsManualCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineIsManualCall) Return

Return rewrite *gomock.Call.Return

type MockMachineLifeCall

type MockMachineLifeCall struct {
	*gomock.Call
}

MockMachineLifeCall wrap *gomock.Call

func (*MockMachineLifeCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineLifeCall) DoAndReturn

func (c *MockMachineLifeCall) DoAndReturn(f func() life.Value) *MockMachineLifeCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineLifeCall) Return

Return rewrite *gomock.Call.Return

type MockMachineMockRecorder

type MockMachineMockRecorder struct {
	// contains filtered or unexported fields
}

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) InstanceId

InstanceId indicates an expected call of InstanceId.

func (*MockMachineMockRecorder) InstanceStatus

func (mr *MockMachineMockRecorder) InstanceStatus(arg0 any) *MockMachineInstanceStatusCall

InstanceStatus indicates an expected call of InstanceStatus.

func (*MockMachineMockRecorder) IsManual

IsManual indicates an expected call of IsManual.

func (*MockMachineMockRecorder) Life

Life indicates an expected call of Life.

func (*MockMachineMockRecorder) Refresh

Refresh indicates an expected call of Refresh.

func (*MockMachineMockRecorder) SetInstanceStatus

func (mr *MockMachineMockRecorder) SetInstanceStatus(arg0, arg1, arg2, arg3 any) *MockMachineSetInstanceStatusCall

SetInstanceStatus indicates an expected call of SetInstanceStatus.

func (*MockMachineMockRecorder) SetProviderNetworkConfig

func (mr *MockMachineMockRecorder) SetProviderNetworkConfig(arg0, arg1 any) *MockMachineSetProviderNetworkConfigCall

SetProviderNetworkConfig indicates an expected call of SetProviderNetworkConfig.

func (*MockMachineMockRecorder) Status

Status indicates an expected call of Status.

func (*MockMachineMockRecorder) String

String indicates an expected call of String.

type MockMachineRefreshCall

type MockMachineRefreshCall struct {
	*gomock.Call
}

MockMachineRefreshCall wrap *gomock.Call

func (*MockMachineRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockMachineSetInstanceStatusCall

type MockMachineSetInstanceStatusCall struct {
	*gomock.Call
}

MockMachineSetInstanceStatusCall wrap *gomock.Call

func (*MockMachineSetInstanceStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineSetInstanceStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineSetInstanceStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMachineSetProviderNetworkConfigCall

type MockMachineSetProviderNetworkConfigCall struct {
	*gomock.Call
}

MockMachineSetProviderNetworkConfigCall wrap *gomock.Call

func (*MockMachineSetProviderNetworkConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineSetProviderNetworkConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineSetProviderNetworkConfigCall) Return

Return rewrite *gomock.Call.Return

type MockMachineStatusCall

type MockMachineStatusCall struct {
	*gomock.Call
}

MockMachineStatusCall wrap *gomock.Call

func (*MockMachineStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineStatusCall) Return

Return rewrite *gomock.Call.Return

type MockMachineStringCall

type MockMachineStringCall struct {
	*gomock.Call
}

MockMachineStringCall wrap *gomock.Call

func (*MockMachineStringCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineStringCall) DoAndReturn

func (c *MockMachineStringCall) DoAndReturn(f func() string) *MockMachineStringCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineStringCall) Return

Return rewrite *gomock.Call.Return

type MockStringsWatcher

type MockStringsWatcher struct {
	// contains filtered or unexported fields
}

MockStringsWatcher is a mock of StringsWatcher interface.

func NewMockStringsWatcher

func NewMockStringsWatcher(ctrl *gomock.Controller) *MockStringsWatcher

NewMockStringsWatcher creates a new mock instance.

func (*MockStringsWatcher) Changes

func (m *MockStringsWatcher) Changes() <-chan []string

Changes mocks base method.

func (*MockStringsWatcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStringsWatcher) Kill

func (m *MockStringsWatcher) Kill()

Kill mocks base method.

func (*MockStringsWatcher) Wait

func (m *MockStringsWatcher) Wait() error

Wait mocks base method.

type MockStringsWatcherChangesCall

type MockStringsWatcherChangesCall struct {
	*gomock.Call
}

MockStringsWatcherChangesCall wrap *gomock.Call

func (*MockStringsWatcherChangesCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherChangesCall) DoAndReturn

func (c *MockStringsWatcherChangesCall) DoAndReturn(f func() <-chan []string) *MockStringsWatcherChangesCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherChangesCall) Return

Return rewrite *gomock.Call.Return

type MockStringsWatcherKillCall

type MockStringsWatcherKillCall struct {
	*gomock.Call
}

MockStringsWatcherKillCall wrap *gomock.Call

func (*MockStringsWatcherKillCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherKillCall) DoAndReturn

func (c *MockStringsWatcherKillCall) DoAndReturn(f func()) *MockStringsWatcherKillCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherKillCall) Return

Return rewrite *gomock.Call.Return

type MockStringsWatcherMockRecorder

type MockStringsWatcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockStringsWatcherMockRecorder is the mock recorder for MockStringsWatcher.

func (*MockStringsWatcherMockRecorder) Changes

Changes indicates an expected call of Changes.

func (*MockStringsWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockStringsWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

type MockStringsWatcherWaitCall

type MockStringsWatcherWaitCall struct {
	*gomock.Call
}

MockStringsWatcherWaitCall wrap *gomock.Call

func (*MockStringsWatcherWaitCall) Do

Do rewrite *gomock.Call.Do

func (*MockStringsWatcherWaitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStringsWatcherWaitCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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