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: 20 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 MockApplication

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

MockApplication is a mock of Application interface.

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

NewMockApplication creates a new mock instance.

func (*MockApplication) EXPECT

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

func (*MockApplication) ExposeInfo

func (m *MockApplication) ExposeInfo(arg0 context.Context) (bool, map[string]params.ExposedEndpoint, error)

ExposeInfo mocks base method.

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method.

func (*MockApplication) Tag

Tag mocks base method.

func (*MockApplication) Watch

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

Watch mocks base method.

type MockApplicationExposeInfoCall

type MockApplicationExposeInfoCall struct {
	*gomock.Call
}

MockApplicationExposeInfoCall wrap *gomock.Call

func (*MockApplicationExposeInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationExposeInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationExposeInfoCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) ExposeInfo

ExposeInfo indicates an expected call of ExposeInfo.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockApplicationMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockApplicationMockRecorder) Watch

Watch indicates an expected call of Watch.

type MockApplicationNameCall

type MockApplicationNameCall struct {
	*gomock.Call
}

MockApplicationNameCall wrap *gomock.Call

func (*MockApplicationNameCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationNameCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationNameCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationTagCall

type MockApplicationTagCall struct {
	*gomock.Call
}

MockApplicationTagCall wrap *gomock.Call

func (*MockApplicationTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationTagCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationTagCall) Return

Return rewrite *gomock.Call.Return

type MockApplicationWatchCall

type MockApplicationWatchCall struct {
	*gomock.Call
}

MockApplicationWatchCall wrap *gomock.Call

func (*MockApplicationWatchCall) Do

Do rewrite *gomock.Call.Do

func (*MockApplicationWatchCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockApplicationWatchCall) Return

func (c *MockApplicationWatchCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockApplicationWatchCall

Return rewrite *gomock.Call.Return

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 MockCrossModelFirewallerFacadeCloser

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

MockCrossModelFirewallerFacadeCloser is a mock of CrossModelFirewallerFacadeCloser interface.

func NewMockCrossModelFirewallerFacadeCloser

func NewMockCrossModelFirewallerFacadeCloser(ctrl *gomock.Controller) *MockCrossModelFirewallerFacadeCloser

NewMockCrossModelFirewallerFacadeCloser creates a new mock instance.

func (*MockCrossModelFirewallerFacadeCloser) Close

Close mocks base method.

func (*MockCrossModelFirewallerFacadeCloser) EXPECT

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

func (*MockCrossModelFirewallerFacadeCloser) PublishIngressNetworkChange

PublishIngressNetworkChange mocks base method.

func (*MockCrossModelFirewallerFacadeCloser) WatchEgressAddressesForRelation

func (m *MockCrossModelFirewallerFacadeCloser) WatchEgressAddressesForRelation(arg0 context.Context, arg1 params.RemoteEntityArg) (watcher.Watcher[[]string], error)

WatchEgressAddressesForRelation mocks base method.

type MockCrossModelFirewallerFacadeCloserCloseCall

type MockCrossModelFirewallerFacadeCloserCloseCall struct {
	*gomock.Call
}

MockCrossModelFirewallerFacadeCloserCloseCall wrap *gomock.Call

func (*MockCrossModelFirewallerFacadeCloserCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockCrossModelFirewallerFacadeCloserCloseCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCrossModelFirewallerFacadeCloserCloseCall) Return

Return rewrite *gomock.Call.Return

type MockCrossModelFirewallerFacadeCloserMockRecorder

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

MockCrossModelFirewallerFacadeCloserMockRecorder is the mock recorder for MockCrossModelFirewallerFacadeCloser.

func (*MockCrossModelFirewallerFacadeCloserMockRecorder) Close

Close indicates an expected call of Close.

func (*MockCrossModelFirewallerFacadeCloserMockRecorder) PublishIngressNetworkChange

PublishIngressNetworkChange indicates an expected call of PublishIngressNetworkChange.

func (*MockCrossModelFirewallerFacadeCloserMockRecorder) WatchEgressAddressesForRelation

WatchEgressAddressesForRelation indicates an expected call of WatchEgressAddressesForRelation.

type MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall

type MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall struct {
	*gomock.Call
}

MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall wrap *gomock.Call

func (*MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall) Do

Do rewrite *gomock.Call.Do

func (*MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCrossModelFirewallerFacadeCloserPublishIngressNetworkChangeCall) Return

Return rewrite *gomock.Call.Return

type MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall

type MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall struct {
	*gomock.Call
}

MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall wrap *gomock.Call

func (*MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCrossModelFirewallerFacadeCloserWatchEgressAddressesForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironFirewaller

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

MockEnvironFirewaller is a mock of EnvironFirewaller interface.

func NewMockEnvironFirewaller

func NewMockEnvironFirewaller(ctrl *gomock.Controller) *MockEnvironFirewaller

NewMockEnvironFirewaller creates a new mock instance.

func (*MockEnvironFirewaller) ClosePorts

ClosePorts mocks base method.

func (*MockEnvironFirewaller) EXPECT

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

func (*MockEnvironFirewaller) IngressRules

IngressRules mocks base method.

func (*MockEnvironFirewaller) OpenPorts

OpenPorts mocks base method.

type MockEnvironFirewallerClosePortsCall

type MockEnvironFirewallerClosePortsCall struct {
	*gomock.Call
}

MockEnvironFirewallerClosePortsCall wrap *gomock.Call

func (*MockEnvironFirewallerClosePortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironFirewallerClosePortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironFirewallerClosePortsCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironFirewallerIngressRulesCall

type MockEnvironFirewallerIngressRulesCall struct {
	*gomock.Call
}

MockEnvironFirewallerIngressRulesCall wrap *gomock.Call

func (*MockEnvironFirewallerIngressRulesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironFirewallerIngressRulesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironFirewallerIngressRulesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironFirewallerMockRecorder

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

MockEnvironFirewallerMockRecorder is the mock recorder for MockEnvironFirewaller.

func (*MockEnvironFirewallerMockRecorder) ClosePorts

ClosePorts indicates an expected call of ClosePorts.

func (*MockEnvironFirewallerMockRecorder) IngressRules

IngressRules indicates an expected call of IngressRules.

func (*MockEnvironFirewallerMockRecorder) OpenPorts

OpenPorts indicates an expected call of OpenPorts.

type MockEnvironFirewallerOpenPortsCall

type MockEnvironFirewallerOpenPortsCall struct {
	*gomock.Call
}

MockEnvironFirewallerOpenPortsCall wrap *gomock.Call

func (*MockEnvironFirewallerOpenPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironFirewallerOpenPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironFirewallerOpenPortsCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstance

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

MockEnvironInstance is a mock of EnvironInstance interface.

func NewMockEnvironInstance

func NewMockEnvironInstance(ctrl *gomock.Controller) *MockEnvironInstance

NewMockEnvironInstance creates a new mock instance.

func (*MockEnvironInstance) Addresses

Addresses mocks base method.

func (*MockEnvironInstance) ClosePorts

ClosePorts mocks base method.

func (*MockEnvironInstance) EXPECT

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

func (*MockEnvironInstance) Id

Id mocks base method.

func (*MockEnvironInstance) IngressRules

IngressRules mocks base method.

func (*MockEnvironInstance) OpenPorts

OpenPorts mocks base method.

func (*MockEnvironInstance) Status

Status mocks base method.

type MockEnvironInstanceAddressesCall

type MockEnvironInstanceAddressesCall struct {
	*gomock.Call
}

MockEnvironInstanceAddressesCall wrap *gomock.Call

func (*MockEnvironInstanceAddressesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceAddressesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceAddressesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstanceClosePortsCall

type MockEnvironInstanceClosePortsCall struct {
	*gomock.Call
}

MockEnvironInstanceClosePortsCall wrap *gomock.Call

func (*MockEnvironInstanceClosePortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceClosePortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceClosePortsCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstanceIdCall

type MockEnvironInstanceIdCall struct {
	*gomock.Call
}

MockEnvironInstanceIdCall wrap *gomock.Call

func (*MockEnvironInstanceIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceIdCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstanceIngressRulesCall

type MockEnvironInstanceIngressRulesCall struct {
	*gomock.Call
}

MockEnvironInstanceIngressRulesCall wrap *gomock.Call

func (*MockEnvironInstanceIngressRulesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceIngressRulesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceIngressRulesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstanceMockRecorder

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

MockEnvironInstanceMockRecorder is the mock recorder for MockEnvironInstance.

func (*MockEnvironInstanceMockRecorder) Addresses

Addresses indicates an expected call of Addresses.

func (*MockEnvironInstanceMockRecorder) ClosePorts

func (mr *MockEnvironInstanceMockRecorder) ClosePorts(arg0, arg1, arg2 any) *MockEnvironInstanceClosePortsCall

ClosePorts indicates an expected call of ClosePorts.

func (*MockEnvironInstanceMockRecorder) Id

Id indicates an expected call of Id.

func (*MockEnvironInstanceMockRecorder) IngressRules

IngressRules indicates an expected call of IngressRules.

func (*MockEnvironInstanceMockRecorder) OpenPorts

func (mr *MockEnvironInstanceMockRecorder) OpenPorts(arg0, arg1, arg2 any) *MockEnvironInstanceOpenPortsCall

OpenPorts indicates an expected call of OpenPorts.

func (*MockEnvironInstanceMockRecorder) Status

Status indicates an expected call of Status.

type MockEnvironInstanceOpenPortsCall

type MockEnvironInstanceOpenPortsCall struct {
	*gomock.Call
}

MockEnvironInstanceOpenPortsCall wrap *gomock.Call

func (*MockEnvironInstanceOpenPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceOpenPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceOpenPortsCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstanceStatusCall

type MockEnvironInstanceStatusCall struct {
	*gomock.Call
}

MockEnvironInstanceStatusCall wrap *gomock.Call

func (*MockEnvironInstanceStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstanceStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstanceStatusCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstances

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

MockEnvironInstances is a mock of EnvironInstances interface.

func NewMockEnvironInstances

func NewMockEnvironInstances(ctrl *gomock.Controller) *MockEnvironInstances

NewMockEnvironInstances creates a new mock instance.

func (*MockEnvironInstances) EXPECT

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

func (*MockEnvironInstances) Instances

Instances mocks base method.

type MockEnvironInstancesInstancesCall

type MockEnvironInstancesInstancesCall struct {
	*gomock.Call
}

MockEnvironInstancesInstancesCall wrap *gomock.Call

func (*MockEnvironInstancesInstancesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironInstancesInstancesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironInstancesInstancesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironInstancesMockRecorder

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

MockEnvironInstancesMockRecorder is the mock recorder for MockEnvironInstances.

func (*MockEnvironInstancesMockRecorder) Instances

Instances indicates an expected call of Instances.

type MockEnvironModelFirewaller

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

MockEnvironModelFirewaller is a mock of EnvironModelFirewaller interface.

func NewMockEnvironModelFirewaller

func NewMockEnvironModelFirewaller(ctrl *gomock.Controller) *MockEnvironModelFirewaller

NewMockEnvironModelFirewaller creates a new mock instance.

func (*MockEnvironModelFirewaller) CloseModelPorts

CloseModelPorts mocks base method.

func (*MockEnvironModelFirewaller) EXPECT

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

func (*MockEnvironModelFirewaller) ModelIngressRules

ModelIngressRules mocks base method.

func (*MockEnvironModelFirewaller) OpenModelPorts

OpenModelPorts mocks base method.

type MockEnvironModelFirewallerCloseModelPortsCall

type MockEnvironModelFirewallerCloseModelPortsCall struct {
	*gomock.Call
}

MockEnvironModelFirewallerCloseModelPortsCall wrap *gomock.Call

func (*MockEnvironModelFirewallerCloseModelPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironModelFirewallerCloseModelPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironModelFirewallerCloseModelPortsCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironModelFirewallerMockRecorder

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

MockEnvironModelFirewallerMockRecorder is the mock recorder for MockEnvironModelFirewaller.

func (*MockEnvironModelFirewallerMockRecorder) CloseModelPorts

CloseModelPorts indicates an expected call of CloseModelPorts.

func (*MockEnvironModelFirewallerMockRecorder) ModelIngressRules

ModelIngressRules indicates an expected call of ModelIngressRules.

func (*MockEnvironModelFirewallerMockRecorder) OpenModelPorts

OpenModelPorts indicates an expected call of OpenModelPorts.

type MockEnvironModelFirewallerModelIngressRulesCall

type MockEnvironModelFirewallerModelIngressRulesCall struct {
	*gomock.Call
}

MockEnvironModelFirewallerModelIngressRulesCall wrap *gomock.Call

func (*MockEnvironModelFirewallerModelIngressRulesCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironModelFirewallerModelIngressRulesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironModelFirewallerModelIngressRulesCall) Return

Return rewrite *gomock.Call.Return

type MockEnvironModelFirewallerOpenModelPortsCall

type MockEnvironModelFirewallerOpenModelPortsCall struct {
	*gomock.Call
}

MockEnvironModelFirewallerOpenModelPortsCall wrap *gomock.Call

func (*MockEnvironModelFirewallerOpenModelPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockEnvironModelFirewallerOpenModelPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEnvironModelFirewallerOpenModelPortsCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPI

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

MockFirewallerAPI is a mock of FirewallerAPI interface.

func NewMockFirewallerAPI

func NewMockFirewallerAPI(ctrl *gomock.Controller) *MockFirewallerAPI

NewMockFirewallerAPI creates a new mock instance.

func (*MockFirewallerAPI) AllSpaceInfos

func (m *MockFirewallerAPI) AllSpaceInfos(arg0 context.Context) (network.SpaceInfos, error)

AllSpaceInfos mocks base method.

func (*MockFirewallerAPI) ControllerAPIInfoForModel

func (m *MockFirewallerAPI) ControllerAPIInfoForModel(arg0 context.Context, arg1 string) (*api.Info, error)

ControllerAPIInfoForModel mocks base method.

func (*MockFirewallerAPI) EXPECT

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

func (*MockFirewallerAPI) MacaroonForRelation

func (m *MockFirewallerAPI) MacaroonForRelation(arg0 context.Context, arg1 string) (*macaroon.Macaroon, error)

MacaroonForRelation mocks base method.

func (*MockFirewallerAPI) Machine

Machine mocks base method.

func (*MockFirewallerAPI) ModelConfig

func (m *MockFirewallerAPI) ModelConfig(arg0 context.Context) (*config.Config, error)

ModelConfig mocks base method.

func (*MockFirewallerAPI) ModelFirewallRules

func (m *MockFirewallerAPI) ModelFirewallRules(arg0 context.Context) (firewall.IngressRules, error)

ModelFirewallRules mocks base method.

func (*MockFirewallerAPI) Relation

Relation mocks base method.

func (*MockFirewallerAPI) SetRelationStatus

func (m *MockFirewallerAPI) SetRelationStatus(arg0 context.Context, arg1 string, arg2 relation.Status, arg3 string) error

SetRelationStatus mocks base method.

func (*MockFirewallerAPI) Unit

Unit mocks base method.

func (*MockFirewallerAPI) WatchEgressAddressesForRelation

func (m *MockFirewallerAPI) WatchEgressAddressesForRelation(arg0 context.Context, arg1 names.RelationTag) (watcher.Watcher[[]string], error)

WatchEgressAddressesForRelation mocks base method.

func (*MockFirewallerAPI) WatchIngressAddressesForRelation

func (m *MockFirewallerAPI) WatchIngressAddressesForRelation(arg0 context.Context, arg1 names.RelationTag) (watcher.Watcher[[]string], error)

WatchIngressAddressesForRelation mocks base method.

func (*MockFirewallerAPI) WatchModelFirewallRules

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

WatchModelFirewallRules mocks base method.

func (*MockFirewallerAPI) WatchModelMachines

func (m *MockFirewallerAPI) WatchModelMachines(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchModelMachines mocks base method.

func (*MockFirewallerAPI) WatchSubnets

func (m *MockFirewallerAPI) WatchSubnets(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchSubnets mocks base method.

type MockFirewallerAPIAllSpaceInfosCall

type MockFirewallerAPIAllSpaceInfosCall struct {
	*gomock.Call
}

MockFirewallerAPIAllSpaceInfosCall wrap *gomock.Call

func (*MockFirewallerAPIAllSpaceInfosCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIAllSpaceInfosCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIAllSpaceInfosCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIControllerAPIInfoForModelCall

type MockFirewallerAPIControllerAPIInfoForModelCall struct {
	*gomock.Call
}

MockFirewallerAPIControllerAPIInfoForModelCall wrap *gomock.Call

func (*MockFirewallerAPIControllerAPIInfoForModelCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIControllerAPIInfoForModelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIControllerAPIInfoForModelCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIMacaroonForRelationCall

type MockFirewallerAPIMacaroonForRelationCall struct {
	*gomock.Call
}

MockFirewallerAPIMacaroonForRelationCall wrap *gomock.Call

func (*MockFirewallerAPIMacaroonForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIMacaroonForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIMacaroonForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIMachineCall

type MockFirewallerAPIMachineCall struct {
	*gomock.Call
}

MockFirewallerAPIMachineCall wrap *gomock.Call

func (*MockFirewallerAPIMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIMachineCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIMockRecorder

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

MockFirewallerAPIMockRecorder is the mock recorder for MockFirewallerAPI.

func (*MockFirewallerAPIMockRecorder) AllSpaceInfos

AllSpaceInfos indicates an expected call of AllSpaceInfos.

func (*MockFirewallerAPIMockRecorder) ControllerAPIInfoForModel

func (mr *MockFirewallerAPIMockRecorder) ControllerAPIInfoForModel(arg0, arg1 any) *MockFirewallerAPIControllerAPIInfoForModelCall

ControllerAPIInfoForModel indicates an expected call of ControllerAPIInfoForModel.

func (*MockFirewallerAPIMockRecorder) MacaroonForRelation

func (mr *MockFirewallerAPIMockRecorder) MacaroonForRelation(arg0, arg1 any) *MockFirewallerAPIMacaroonForRelationCall

MacaroonForRelation indicates an expected call of MacaroonForRelation.

func (*MockFirewallerAPIMockRecorder) Machine

Machine indicates an expected call of Machine.

func (*MockFirewallerAPIMockRecorder) ModelConfig

ModelConfig indicates an expected call of ModelConfig.

func (*MockFirewallerAPIMockRecorder) ModelFirewallRules

ModelFirewallRules indicates an expected call of ModelFirewallRules.

func (*MockFirewallerAPIMockRecorder) Relation

Relation indicates an expected call of Relation.

func (*MockFirewallerAPIMockRecorder) SetRelationStatus

func (mr *MockFirewallerAPIMockRecorder) SetRelationStatus(arg0, arg1, arg2, arg3 any) *MockFirewallerAPISetRelationStatusCall

SetRelationStatus indicates an expected call of SetRelationStatus.

func (*MockFirewallerAPIMockRecorder) Unit

Unit indicates an expected call of Unit.

func (*MockFirewallerAPIMockRecorder) WatchEgressAddressesForRelation

func (mr *MockFirewallerAPIMockRecorder) WatchEgressAddressesForRelation(arg0, arg1 any) *MockFirewallerAPIWatchEgressAddressesForRelationCall

WatchEgressAddressesForRelation indicates an expected call of WatchEgressAddressesForRelation.

func (*MockFirewallerAPIMockRecorder) WatchIngressAddressesForRelation

func (mr *MockFirewallerAPIMockRecorder) WatchIngressAddressesForRelation(arg0, arg1 any) *MockFirewallerAPIWatchIngressAddressesForRelationCall

WatchIngressAddressesForRelation indicates an expected call of WatchIngressAddressesForRelation.

func (*MockFirewallerAPIMockRecorder) WatchModelFirewallRules

WatchModelFirewallRules indicates an expected call of WatchModelFirewallRules.

func (*MockFirewallerAPIMockRecorder) WatchModelMachines

WatchModelMachines indicates an expected call of WatchModelMachines.

func (*MockFirewallerAPIMockRecorder) WatchSubnets

WatchSubnets indicates an expected call of WatchSubnets.

type MockFirewallerAPIModelConfigCall

type MockFirewallerAPIModelConfigCall struct {
	*gomock.Call
}

MockFirewallerAPIModelConfigCall wrap *gomock.Call

func (*MockFirewallerAPIModelConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIModelConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIModelConfigCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIModelFirewallRulesCall

type MockFirewallerAPIModelFirewallRulesCall struct {
	*gomock.Call
}

MockFirewallerAPIModelFirewallRulesCall wrap *gomock.Call

func (*MockFirewallerAPIModelFirewallRulesCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIModelFirewallRulesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIModelFirewallRulesCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIRelationCall

type MockFirewallerAPIRelationCall struct {
	*gomock.Call
}

MockFirewallerAPIRelationCall wrap *gomock.Call

func (*MockFirewallerAPIRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIRelationCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPISetRelationStatusCall

type MockFirewallerAPISetRelationStatusCall struct {
	*gomock.Call
}

MockFirewallerAPISetRelationStatusCall wrap *gomock.Call

func (*MockFirewallerAPISetRelationStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPISetRelationStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPISetRelationStatusCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIUnitCall

type MockFirewallerAPIUnitCall struct {
	*gomock.Call
}

MockFirewallerAPIUnitCall wrap *gomock.Call

func (*MockFirewallerAPIUnitCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIUnitCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIUnitCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIWatchEgressAddressesForRelationCall

type MockFirewallerAPIWatchEgressAddressesForRelationCall struct {
	*gomock.Call
}

MockFirewallerAPIWatchEgressAddressesForRelationCall wrap *gomock.Call

func (*MockFirewallerAPIWatchEgressAddressesForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIWatchEgressAddressesForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIWatchEgressAddressesForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIWatchIngressAddressesForRelationCall

type MockFirewallerAPIWatchIngressAddressesForRelationCall struct {
	*gomock.Call
}

MockFirewallerAPIWatchIngressAddressesForRelationCall wrap *gomock.Call

func (*MockFirewallerAPIWatchIngressAddressesForRelationCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIWatchIngressAddressesForRelationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIWatchIngressAddressesForRelationCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIWatchModelFirewallRulesCall

type MockFirewallerAPIWatchModelFirewallRulesCall struct {
	*gomock.Call
}

MockFirewallerAPIWatchModelFirewallRulesCall wrap *gomock.Call

func (*MockFirewallerAPIWatchModelFirewallRulesCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIWatchModelFirewallRulesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIWatchModelFirewallRulesCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIWatchModelMachinesCall

type MockFirewallerAPIWatchModelMachinesCall struct {
	*gomock.Call
}

MockFirewallerAPIWatchModelMachinesCall wrap *gomock.Call

func (*MockFirewallerAPIWatchModelMachinesCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIWatchModelMachinesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockFirewallerAPIWatchModelMachinesCall) Return

Return rewrite *gomock.Call.Return

type MockFirewallerAPIWatchSubnetsCall

type MockFirewallerAPIWatchSubnetsCall struct {
	*gomock.Call
}

MockFirewallerAPIWatchSubnetsCall wrap *gomock.Call

func (*MockFirewallerAPIWatchSubnetsCall) Do

Do rewrite *gomock.Call.Do

func (*MockFirewallerAPIWatchSubnetsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

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

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

InstanceId 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) Tag

func (m *MockMachine) Tag() names.MachineTag

Tag mocks base method.

func (*MockMachine) WatchUnits

func (m *MockMachine) WatchUnits(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchUnits mocks base method.

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 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) InstanceId

InstanceId indicates an expected call of InstanceId.

func (*MockMachineMockRecorder) IsManual

IsManual indicates an expected call of IsManual.

func (*MockMachineMockRecorder) Life

Life indicates an expected call of Life.

func (*MockMachineMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockMachineMockRecorder) WatchUnits

WatchUnits indicates an expected call of WatchUnits.

type MockMachineService

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

MockMachineService is a mock of MachineService interface.

func NewMockMachineService

func NewMockMachineService(ctrl *gomock.Controller) *MockMachineService

NewMockMachineService creates a new mock instance.

func (*MockMachineService) EXPECT

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

func (*MockMachineService) GetMachineUUID

func (m *MockMachineService) GetMachineUUID(arg0 context.Context, arg1 machine.Name) (string, error)

GetMachineUUID mocks base method.

type MockMachineServiceGetMachineUUIDCall

type MockMachineServiceGetMachineUUIDCall struct {
	*gomock.Call
}

MockMachineServiceGetMachineUUIDCall wrap *gomock.Call

func (*MockMachineServiceGetMachineUUIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineServiceGetMachineUUIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineServiceGetMachineUUIDCall) Return

Return rewrite *gomock.Call.Return

type MockMachineServiceMockRecorder

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

MockMachineServiceMockRecorder is the mock recorder for MockMachineService.

func (*MockMachineServiceMockRecorder) GetMachineUUID

GetMachineUUID indicates an expected call of GetMachineUUID.

type MockMachineTagCall

type MockMachineTagCall struct {
	*gomock.Call
}

MockMachineTagCall wrap *gomock.Call

func (*MockMachineTagCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineTagCall) DoAndReturn

func (c *MockMachineTagCall) DoAndReturn(f func() names.MachineTag) *MockMachineTagCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineTagCall) Return

Return rewrite *gomock.Call.Return

type MockMachineWatchUnitsCall

type MockMachineWatchUnitsCall struct {
	*gomock.Call
}

MockMachineWatchUnitsCall wrap *gomock.Call

func (*MockMachineWatchUnitsCall) Do

Do rewrite *gomock.Call.Do

func (*MockMachineWatchUnitsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockMachineWatchUnitsCall) Return

Return rewrite *gomock.Call.Return

type MockPortService

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

MockPortService is a mock of PortService interface.

func NewMockPortService

func NewMockPortService(ctrl *gomock.Controller) *MockPortService

NewMockPortService creates a new mock instance.

func (*MockPortService) EXPECT

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

func (*MockPortService) GetMachineOpenedPorts

func (m *MockPortService) GetMachineOpenedPorts(arg0 context.Context, arg1 string) (map[unit.Name]network.GroupedPortRanges, error)

GetMachineOpenedPorts mocks base method.

func (*MockPortService) WatchMachineOpenedPorts

func (m *MockPortService) WatchMachineOpenedPorts(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchMachineOpenedPorts mocks base method.

type MockPortServiceGetMachineOpenedPortsCall

type MockPortServiceGetMachineOpenedPortsCall struct {
	*gomock.Call
}

MockPortServiceGetMachineOpenedPortsCall wrap *gomock.Call

func (*MockPortServiceGetMachineOpenedPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockPortServiceGetMachineOpenedPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPortServiceGetMachineOpenedPortsCall) Return

Return rewrite *gomock.Call.Return

type MockPortServiceMockRecorder

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

MockPortServiceMockRecorder is the mock recorder for MockPortService.

func (*MockPortServiceMockRecorder) GetMachineOpenedPorts

func (mr *MockPortServiceMockRecorder) GetMachineOpenedPorts(arg0, arg1 any) *MockPortServiceGetMachineOpenedPortsCall

GetMachineOpenedPorts indicates an expected call of GetMachineOpenedPorts.

func (*MockPortServiceMockRecorder) WatchMachineOpenedPorts

WatchMachineOpenedPorts indicates an expected call of WatchMachineOpenedPorts.

type MockPortServiceWatchMachineOpenedPortsCall

type MockPortServiceWatchMachineOpenedPortsCall struct {
	*gomock.Call
}

MockPortServiceWatchMachineOpenedPortsCall wrap *gomock.Call

func (*MockPortServiceWatchMachineOpenedPortsCall) Do

Do rewrite *gomock.Call.Do

func (*MockPortServiceWatchMachineOpenedPortsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPortServiceWatchMachineOpenedPortsCall) Return

Return rewrite *gomock.Call.Return

type MockRemoteRelationsAPI

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

MockRemoteRelationsAPI is a mock of RemoteRelationsAPI interface.

func NewMockRemoteRelationsAPI

func NewMockRemoteRelationsAPI(ctrl *gomock.Controller) *MockRemoteRelationsAPI

NewMockRemoteRelationsAPI creates a new mock instance.

func (*MockRemoteRelationsAPI) EXPECT

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

func (*MockRemoteRelationsAPI) GetToken

func (m *MockRemoteRelationsAPI) GetToken(arg0 context.Context, arg1 names.Tag) (string, error)

GetToken mocks base method.

func (*MockRemoteRelationsAPI) Relations

Relations mocks base method.

func (*MockRemoteRelationsAPI) RemoteApplications

func (m *MockRemoteRelationsAPI) RemoteApplications(arg0 context.Context, arg1 []string) ([]params.RemoteApplicationResult, error)

RemoteApplications mocks base method.

func (*MockRemoteRelationsAPI) WatchRemoteRelations

func (m *MockRemoteRelationsAPI) WatchRemoteRelations(arg0 context.Context) (watcher.Watcher[[]string], error)

WatchRemoteRelations mocks base method.

type MockRemoteRelationsAPIGetTokenCall

type MockRemoteRelationsAPIGetTokenCall struct {
	*gomock.Call
}

MockRemoteRelationsAPIGetTokenCall wrap *gomock.Call

func (*MockRemoteRelationsAPIGetTokenCall) Do

Do rewrite *gomock.Call.Do

func (*MockRemoteRelationsAPIGetTokenCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRemoteRelationsAPIGetTokenCall) Return

Return rewrite *gomock.Call.Return

type MockRemoteRelationsAPIMockRecorder

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

MockRemoteRelationsAPIMockRecorder is the mock recorder for MockRemoteRelationsAPI.

func (*MockRemoteRelationsAPIMockRecorder) GetToken

GetToken indicates an expected call of GetToken.

func (*MockRemoteRelationsAPIMockRecorder) Relations

Relations indicates an expected call of Relations.

func (*MockRemoteRelationsAPIMockRecorder) RemoteApplications

RemoteApplications indicates an expected call of RemoteApplications.

func (*MockRemoteRelationsAPIMockRecorder) WatchRemoteRelations

WatchRemoteRelations indicates an expected call of WatchRemoteRelations.

type MockRemoteRelationsAPIRelationsCall

type MockRemoteRelationsAPIRelationsCall struct {
	*gomock.Call
}

MockRemoteRelationsAPIRelationsCall wrap *gomock.Call

func (*MockRemoteRelationsAPIRelationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRemoteRelationsAPIRelationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRemoteRelationsAPIRelationsCall) Return

Return rewrite *gomock.Call.Return

type MockRemoteRelationsAPIRemoteApplicationsCall

type MockRemoteRelationsAPIRemoteApplicationsCall struct {
	*gomock.Call
}

MockRemoteRelationsAPIRemoteApplicationsCall wrap *gomock.Call

func (*MockRemoteRelationsAPIRemoteApplicationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRemoteRelationsAPIRemoteApplicationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRemoteRelationsAPIRemoteApplicationsCall) Return

Return rewrite *gomock.Call.Return

type MockRemoteRelationsAPIWatchRemoteRelationsCall

type MockRemoteRelationsAPIWatchRemoteRelationsCall struct {
	*gomock.Call
}

MockRemoteRelationsAPIWatchRemoteRelationsCall wrap *gomock.Call

func (*MockRemoteRelationsAPIWatchRemoteRelationsCall) Do

Do rewrite *gomock.Call.Do

func (*MockRemoteRelationsAPIWatchRemoteRelationsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRemoteRelationsAPIWatchRemoteRelationsCall) Return

Return rewrite *gomock.Call.Return

type MockUnit

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

MockUnit is a mock of Unit interface.

func NewMockUnit

func NewMockUnit(ctrl *gomock.Controller) *MockUnit

NewMockUnit creates a new mock instance.

func (*MockUnit) Application

func (m *MockUnit) Application() (firewaller.Application, error)

Application mocks base method.

func (*MockUnit) AssignedMachine

func (m *MockUnit) AssignedMachine(arg0 context.Context) (names.MachineTag, error)

AssignedMachine mocks base method.

func (*MockUnit) EXPECT

func (m *MockUnit) EXPECT() *MockUnitMockRecorder

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

func (*MockUnit) Life

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

Life mocks base method.

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) Refresh

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

Refresh mocks base method.

type MockUnitApplicationCall

type MockUnitApplicationCall struct {
	*gomock.Call
}

MockUnitApplicationCall wrap *gomock.Call

func (*MockUnitApplicationCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitApplicationCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitApplicationCall) Return

Return rewrite *gomock.Call.Return

type MockUnitAssignedMachineCall

type MockUnitAssignedMachineCall struct {
	*gomock.Call
}

MockUnitAssignedMachineCall wrap *gomock.Call

func (*MockUnitAssignedMachineCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitAssignedMachineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitAssignedMachineCall) Return

Return rewrite *gomock.Call.Return

type MockUnitLifeCall

type MockUnitLifeCall struct {
	*gomock.Call
}

MockUnitLifeCall wrap *gomock.Call

func (*MockUnitLifeCall) Do

func (c *MockUnitLifeCall) Do(f func() life.Value) *MockUnitLifeCall

Do rewrite *gomock.Call.Do

func (*MockUnitLifeCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitLifeCall) Return

func (c *MockUnitLifeCall) Return(arg0 life.Value) *MockUnitLifeCall

Return rewrite *gomock.Call.Return

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) Application

func (mr *MockUnitMockRecorder) Application() *MockUnitApplicationCall

Application indicates an expected call of Application.

func (*MockUnitMockRecorder) AssignedMachine

func (mr *MockUnitMockRecorder) AssignedMachine(arg0 any) *MockUnitAssignedMachineCall

AssignedMachine indicates an expected call of AssignedMachine.

func (*MockUnitMockRecorder) Life

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) Name

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) Refresh

func (mr *MockUnitMockRecorder) Refresh(arg0 any) *MockUnitRefreshCall

Refresh indicates an expected call of Refresh.

type MockUnitNameCall

type MockUnitNameCall struct {
	*gomock.Call
}

MockUnitNameCall wrap *gomock.Call

func (*MockUnitNameCall) Do

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

Do rewrite *gomock.Call.Do

func (*MockUnitNameCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitNameCall) Return

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

Return rewrite *gomock.Call.Return

type MockUnitRefreshCall

type MockUnitRefreshCall struct {
	*gomock.Call
}

MockUnitRefreshCall wrap *gomock.Call

func (*MockUnitRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockUnitRefreshCall) DoAndReturn

func (c *MockUnitRefreshCall) DoAndReturn(f func(context.Context) error) *MockUnitRefreshCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockUnitRefreshCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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