mocks

package
v0.0.0-...-2f78cd6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 27 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.

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

AddUnit mocks base method.

func (*MockApplication) AgentTools

func (m *MockApplication) AgentTools() (*tools.Tools, error)

AgentTools mocks base method.

func (*MockApplication) AllUnits

func (m *MockApplication) AllUnits() ([]application.Unit, error)

AllUnits mocks base method.

func (*MockApplication) ApplicationConfig

func (m *MockApplication) ApplicationConfig() (config.ConfigAttributes, error)

ApplicationConfig mocks base method.

func (*MockApplication) ApplicationTag

func (m *MockApplication) ApplicationTag() names.ApplicationTag

ApplicationTag mocks base method.

func (*MockApplication) ChangeScale

func (m *MockApplication) ChangeScale(arg0 int) (int, error)

ChangeScale mocks base method.

func (*MockApplication) Charm

func (m *MockApplication) Charm() (application.Charm, bool, error)

Charm mocks base method.

func (*MockApplication) CharmConfig

func (m *MockApplication) CharmConfig(arg0 string) (charm.Settings, error)

CharmConfig mocks base method.

func (*MockApplication) CharmOrigin

func (m *MockApplication) CharmOrigin() *state.CharmOrigin

CharmOrigin mocks base method.

func (*MockApplication) CharmURL

func (m *MockApplication) CharmURL() (*string, bool)

CharmURL mocks base method.

func (*MockApplication) ClearExposed

func (m *MockApplication) ClearExposed() error

ClearExposed mocks base method.

func (*MockApplication) Constraints

func (m *MockApplication) Constraints() (constraints.Value, error)

Constraints mocks base method.

func (*MockApplication) Destroy

func (m *MockApplication) Destroy() error

Destroy mocks base method.

func (*MockApplication) DestroyOperation

func (m *MockApplication) DestroyOperation() *state.DestroyApplicationOperation

DestroyOperation mocks base method.

func (*MockApplication) EXPECT

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

func (*MockApplication) EndpointBindings

func (m *MockApplication) EndpointBindings() (application.Bindings, error)

EndpointBindings mocks base method.

func (*MockApplication) Endpoints

func (m *MockApplication) Endpoints() ([]state.Endpoint, error)

Endpoints mocks base method.

func (*MockApplication) ExposedEndpoints

func (m *MockApplication) ExposedEndpoints() map[string]state.ExposedEndpoint

ExposedEndpoints mocks base method.

func (*MockApplication) IsExposed

func (m *MockApplication) IsExposed() bool

IsExposed mocks base method.

func (*MockApplication) IsPrincipal

func (m *MockApplication) IsPrincipal() bool

IsPrincipal mocks base method.

func (*MockApplication) IsRemote

func (m *MockApplication) IsRemote() bool

IsRemote mocks base method.

func (*MockApplication) Life

func (m *MockApplication) Life() state.Life

Life mocks base method.

func (*MockApplication) MergeBindings

func (m *MockApplication) MergeBindings(arg0 *state.Bindings, arg1 bool) error

MergeBindings mocks base method.

func (*MockApplication) MergeExposeSettings

func (m *MockApplication) MergeExposeSettings(arg0 map[string]state.ExposedEndpoint) error

MergeExposeSettings mocks base method.

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method.

func (*MockApplication) Relations

func (m *MockApplication) Relations() ([]application.Relation, error)

Relations mocks base method.

func (*MockApplication) SetCharm

func (m *MockApplication) SetCharm(arg0 state.SetCharmConfig) error

SetCharm mocks base method.

func (*MockApplication) SetConstraints

func (m *MockApplication) SetConstraints(arg0 constraints.Value) error

SetConstraints mocks base method.

func (*MockApplication) SetMetricCredentials

func (m *MockApplication) SetMetricCredentials(arg0 []byte) error

SetMetricCredentials mocks base method.

func (*MockApplication) SetMinUnits

func (m *MockApplication) SetMinUnits(arg0 int) error

SetMinUnits mocks base method.

func (*MockApplication) SetScale

func (m *MockApplication) SetScale(arg0 int, arg1 int64, arg2 bool) error

SetScale mocks base method.

func (*MockApplication) UnsetExposeSettings

func (m *MockApplication) UnsetExposeSettings(arg0 []string) error

UnsetExposeSettings mocks base method.

func (*MockApplication) UpdateApplicationBase

func (m *MockApplication) UpdateApplicationBase(arg0 state.Base, arg1 bool) error

UpdateApplicationBase mocks base method.

func (*MockApplication) UpdateApplicationConfig

func (m *MockApplication) UpdateApplicationConfig(arg0 config.ConfigAttributes, arg1 []string, arg2 environschema.Fields, arg3 schema.Defaults) error

UpdateApplicationConfig mocks base method.

func (*MockApplication) UpdateCharmConfig

func (m *MockApplication) UpdateCharmConfig(arg0 string, arg1 charm.Settings) error

UpdateCharmConfig mocks base method.

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) AddUnit

func (mr *MockApplicationMockRecorder) AddUnit(arg0 any) *gomock.Call

AddUnit indicates an expected call of AddUnit.

func (*MockApplicationMockRecorder) AgentTools

func (mr *MockApplicationMockRecorder) AgentTools() *gomock.Call

AgentTools indicates an expected call of AgentTools.

func (*MockApplicationMockRecorder) AllUnits

func (mr *MockApplicationMockRecorder) AllUnits() *gomock.Call

AllUnits indicates an expected call of AllUnits.

func (*MockApplicationMockRecorder) ApplicationConfig

func (mr *MockApplicationMockRecorder) ApplicationConfig() *gomock.Call

ApplicationConfig indicates an expected call of ApplicationConfig.

func (*MockApplicationMockRecorder) ApplicationTag

func (mr *MockApplicationMockRecorder) ApplicationTag() *gomock.Call

ApplicationTag indicates an expected call of ApplicationTag.

func (*MockApplicationMockRecorder) ChangeScale

func (mr *MockApplicationMockRecorder) ChangeScale(arg0 any) *gomock.Call

ChangeScale indicates an expected call of ChangeScale.

func (*MockApplicationMockRecorder) Charm

Charm indicates an expected call of Charm.

func (*MockApplicationMockRecorder) CharmConfig

func (mr *MockApplicationMockRecorder) CharmConfig(arg0 any) *gomock.Call

CharmConfig indicates an expected call of CharmConfig.

func (*MockApplicationMockRecorder) CharmOrigin

func (mr *MockApplicationMockRecorder) CharmOrigin() *gomock.Call

CharmOrigin indicates an expected call of CharmOrigin.

func (*MockApplicationMockRecorder) CharmURL

func (mr *MockApplicationMockRecorder) CharmURL() *gomock.Call

CharmURL indicates an expected call of CharmURL.

func (*MockApplicationMockRecorder) ClearExposed

func (mr *MockApplicationMockRecorder) ClearExposed() *gomock.Call

ClearExposed indicates an expected call of ClearExposed.

func (*MockApplicationMockRecorder) Constraints

func (mr *MockApplicationMockRecorder) Constraints() *gomock.Call

Constraints indicates an expected call of Constraints.

func (*MockApplicationMockRecorder) Destroy

func (mr *MockApplicationMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockApplicationMockRecorder) DestroyOperation

func (mr *MockApplicationMockRecorder) DestroyOperation() *gomock.Call

DestroyOperation indicates an expected call of DestroyOperation.

func (*MockApplicationMockRecorder) EndpointBindings

func (mr *MockApplicationMockRecorder) EndpointBindings() *gomock.Call

EndpointBindings indicates an expected call of EndpointBindings.

func (*MockApplicationMockRecorder) Endpoints

func (mr *MockApplicationMockRecorder) Endpoints() *gomock.Call

Endpoints indicates an expected call of Endpoints.

func (*MockApplicationMockRecorder) ExposedEndpoints

func (mr *MockApplicationMockRecorder) ExposedEndpoints() *gomock.Call

ExposedEndpoints indicates an expected call of ExposedEndpoints.

func (*MockApplicationMockRecorder) IsExposed

func (mr *MockApplicationMockRecorder) IsExposed() *gomock.Call

IsExposed indicates an expected call of IsExposed.

func (*MockApplicationMockRecorder) IsPrincipal

func (mr *MockApplicationMockRecorder) IsPrincipal() *gomock.Call

IsPrincipal indicates an expected call of IsPrincipal.

func (*MockApplicationMockRecorder) IsRemote

func (mr *MockApplicationMockRecorder) IsRemote() *gomock.Call

IsRemote indicates an expected call of IsRemote.

func (*MockApplicationMockRecorder) Life

Life indicates an expected call of Life.

func (*MockApplicationMockRecorder) MergeBindings

func (mr *MockApplicationMockRecorder) MergeBindings(arg0, arg1 any) *gomock.Call

MergeBindings indicates an expected call of MergeBindings.

func (*MockApplicationMockRecorder) MergeExposeSettings

func (mr *MockApplicationMockRecorder) MergeExposeSettings(arg0 any) *gomock.Call

MergeExposeSettings indicates an expected call of MergeExposeSettings.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockApplicationMockRecorder) Relations

func (mr *MockApplicationMockRecorder) Relations() *gomock.Call

Relations indicates an expected call of Relations.

func (*MockApplicationMockRecorder) SetCharm

func (mr *MockApplicationMockRecorder) SetCharm(arg0 any) *gomock.Call

SetCharm indicates an expected call of SetCharm.

func (*MockApplicationMockRecorder) SetConstraints

func (mr *MockApplicationMockRecorder) SetConstraints(arg0 any) *gomock.Call

SetConstraints indicates an expected call of SetConstraints.

func (*MockApplicationMockRecorder) SetMetricCredentials

func (mr *MockApplicationMockRecorder) SetMetricCredentials(arg0 any) *gomock.Call

SetMetricCredentials indicates an expected call of SetMetricCredentials.

func (*MockApplicationMockRecorder) SetMinUnits

func (mr *MockApplicationMockRecorder) SetMinUnits(arg0 any) *gomock.Call

SetMinUnits indicates an expected call of SetMinUnits.

func (*MockApplicationMockRecorder) SetScale

func (mr *MockApplicationMockRecorder) SetScale(arg0, arg1, arg2 any) *gomock.Call

SetScale indicates an expected call of SetScale.

func (*MockApplicationMockRecorder) UnsetExposeSettings

func (mr *MockApplicationMockRecorder) UnsetExposeSettings(arg0 any) *gomock.Call

UnsetExposeSettings indicates an expected call of UnsetExposeSettings.

func (*MockApplicationMockRecorder) UpdateApplicationBase

func (mr *MockApplicationMockRecorder) UpdateApplicationBase(arg0, arg1 any) *gomock.Call

UpdateApplicationBase indicates an expected call of UpdateApplicationBase.

func (*MockApplicationMockRecorder) UpdateApplicationConfig

func (mr *MockApplicationMockRecorder) UpdateApplicationConfig(arg0, arg1, arg2, arg3 any) *gomock.Call

UpdateApplicationConfig indicates an expected call of UpdateApplicationConfig.

func (*MockApplicationMockRecorder) UpdateCharmConfig

func (mr *MockApplicationMockRecorder) UpdateCharmConfig(arg0, arg1 any) *gomock.Call

UpdateCharmConfig indicates an expected call of UpdateCharmConfig.

type MockBackend

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

MockBackend is a mock of Backend interface.

func NewMockBackend

func NewMockBackend(ctrl *gomock.Controller) *MockBackend

NewMockBackend creates a new mock instance.

func (*MockBackend) AddApplication

func (m *MockBackend) AddApplication(arg0 state.AddApplicationArgs) (application.Application, error)

AddApplication mocks base method.

func (*MockBackend) AddCharmMetadata

func (m *MockBackend) AddCharmMetadata(arg0 state.CharmInfo) (application.Charm, error)

AddCharmMetadata mocks base method.

func (*MockBackend) AddPendingResource

func (m *MockBackend) AddPendingResource(arg0 string, arg1 resource.Resource) (string, error)

AddPendingResource mocks base method.

func (*MockBackend) AddRelation

func (m *MockBackend) AddRelation(arg0 ...state.Endpoint) (application.Relation, error)

AddRelation mocks base method.

func (*MockBackend) AddRemoteApplication

AddRemoteApplication mocks base method.

func (*MockBackend) AllModelUUIDs

func (m *MockBackend) AllModelUUIDs() ([]string, error)

AllModelUUIDs mocks base method.

func (*MockBackend) AllSpaceInfos

func (m *MockBackend) AllSpaceInfos() (network.SpaceInfos, error)

AllSpaceInfos mocks base method.

func (*MockBackend) Application

func (m *MockBackend) Application(arg0 string) (application.Application, error)

Application mocks base method.

func (*MockBackend) ApplicationOfferForUUID

func (m *MockBackend) ApplicationOfferForUUID(arg0 string) (*crossmodel.ApplicationOffer, error)

ApplicationOfferForUUID mocks base method.

func (*MockBackend) ApplyOperation

func (m *MockBackend) ApplyOperation(arg0 state.ModelOperation) error

ApplyOperation mocks base method.

func (*MockBackend) Branch

func (m *MockBackend) Branch(arg0 string) (application.Generation, error)

Branch mocks base method.

func (*MockBackend) Charm

func (m *MockBackend) Charm(arg0 string) (application.Charm, error)

Charm mocks base method.

func (*MockBackend) ControllerConfig

func (m *MockBackend) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method.

func (*MockBackend) ControllerTag

func (m *MockBackend) ControllerTag() names.ControllerTag

ControllerTag mocks base method.

func (*MockBackend) DefaultEndpointBindingSpace

func (m *MockBackend) DefaultEndpointBindingSpace() (string, error)

DefaultEndpointBindingSpace mocks base method.

func (*MockBackend) EXPECT

func (m *MockBackend) EXPECT() *MockBackendMockRecorder

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

func (*MockBackend) InferActiveRelation

func (m *MockBackend) InferActiveRelation(arg0 ...string) (application.Relation, error)

InferActiveRelation mocks base method.

func (*MockBackend) InferEndpoints

func (m *MockBackend) InferEndpoints(arg0 ...string) ([]state.Endpoint, error)

InferEndpoints mocks base method.

func (*MockBackend) Machine

func (m *MockBackend) Machine(arg0 string) (application.Machine, error)

Machine mocks base method.

func (*MockBackend) Model

func (m *MockBackend) Model() (application.Model, error)

Model mocks base method.

func (*MockBackend) ModelConstraints

func (m *MockBackend) ModelConstraints() (constraints.Value, error)

ModelConstraints mocks base method.

func (*MockBackend) ModelUUID

func (m *MockBackend) ModelUUID() string

ModelUUID mocks base method.

func (*MockBackend) OfferConnectionForRelation

func (m *MockBackend) OfferConnectionForRelation(arg0 string) (application.OfferConnection, error)

OfferConnectionForRelation mocks base method.

func (*MockBackend) PrepareCharmUpload

func (m *MockBackend) PrepareCharmUpload(arg0 string) (services.UploadedCharm, error)

PrepareCharmUpload mocks base method.

func (*MockBackend) Relation

func (m *MockBackend) Relation(arg0 int) (application.Relation, error)

Relation mocks base method.

func (*MockBackend) RemoteApplication

func (m *MockBackend) RemoteApplication(arg0 string) (application.RemoteApplication, error)

RemoteApplication mocks base method.

func (*MockBackend) RemovePendingResources

func (m *MockBackend) RemovePendingResources(arg0 string, arg1 map[string]string) error

RemovePendingResources mocks base method.

func (*MockBackend) Resources

func (m *MockBackend) Resources() application.Resources

Resources mocks base method.

func (*MockBackend) SaveController

SaveController mocks base method.

func (*MockBackend) SaveEgressNetworks

func (m *MockBackend) SaveEgressNetworks(arg0 string, arg1 []string) (state.RelationNetworks, error)

SaveEgressNetworks mocks base method.

func (*MockBackend) Space

func (m *MockBackend) Space(arg0 string) (*state.Space, error)

Space mocks base method.

func (*MockBackend) Unit

func (m *MockBackend) Unit(arg0 string) (application.Unit, error)

Unit mocks base method.

func (*MockBackend) UnitsInError

func (m *MockBackend) UnitsInError() ([]application.Unit, error)

UnitsInError mocks base method.

func (*MockBackend) UpdateUploadedCharm

func (m *MockBackend) UpdateUploadedCharm(arg0 state.CharmInfo) (services.UploadedCharm, error)

UpdateUploadedCharm mocks base method.

type MockBackendMockRecorder

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

MockBackendMockRecorder is the mock recorder for MockBackend.

func (*MockBackendMockRecorder) AddApplication

func (mr *MockBackendMockRecorder) AddApplication(arg0 any) *gomock.Call

AddApplication indicates an expected call of AddApplication.

func (*MockBackendMockRecorder) AddCharmMetadata

func (mr *MockBackendMockRecorder) AddCharmMetadata(arg0 any) *gomock.Call

AddCharmMetadata indicates an expected call of AddCharmMetadata.

func (*MockBackendMockRecorder) AddPendingResource

func (mr *MockBackendMockRecorder) AddPendingResource(arg0, arg1 any) *gomock.Call

AddPendingResource indicates an expected call of AddPendingResource.

func (*MockBackendMockRecorder) AddRelation

func (mr *MockBackendMockRecorder) AddRelation(arg0 ...any) *gomock.Call

AddRelation indicates an expected call of AddRelation.

func (*MockBackendMockRecorder) AddRemoteApplication

func (mr *MockBackendMockRecorder) AddRemoteApplication(arg0 any) *gomock.Call

AddRemoteApplication indicates an expected call of AddRemoteApplication.

func (*MockBackendMockRecorder) AllModelUUIDs

func (mr *MockBackendMockRecorder) AllModelUUIDs() *gomock.Call

AllModelUUIDs indicates an expected call of AllModelUUIDs.

func (*MockBackendMockRecorder) AllSpaceInfos

func (mr *MockBackendMockRecorder) AllSpaceInfos() *gomock.Call

AllSpaceInfos indicates an expected call of AllSpaceInfos.

func (*MockBackendMockRecorder) Application

func (mr *MockBackendMockRecorder) Application(arg0 any) *gomock.Call

Application indicates an expected call of Application.

func (*MockBackendMockRecorder) ApplicationOfferForUUID

func (mr *MockBackendMockRecorder) ApplicationOfferForUUID(arg0 any) *gomock.Call

ApplicationOfferForUUID indicates an expected call of ApplicationOfferForUUID.

func (*MockBackendMockRecorder) ApplyOperation

func (mr *MockBackendMockRecorder) ApplyOperation(arg0 any) *gomock.Call

ApplyOperation indicates an expected call of ApplyOperation.

func (*MockBackendMockRecorder) Branch

func (mr *MockBackendMockRecorder) Branch(arg0 any) *gomock.Call

Branch indicates an expected call of Branch.

func (*MockBackendMockRecorder) Charm

func (mr *MockBackendMockRecorder) Charm(arg0 any) *gomock.Call

Charm indicates an expected call of Charm.

func (*MockBackendMockRecorder) ControllerConfig

func (mr *MockBackendMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig.

func (*MockBackendMockRecorder) ControllerTag

func (mr *MockBackendMockRecorder) ControllerTag() *gomock.Call

ControllerTag indicates an expected call of ControllerTag.

func (*MockBackendMockRecorder) DefaultEndpointBindingSpace

func (mr *MockBackendMockRecorder) DefaultEndpointBindingSpace() *gomock.Call

DefaultEndpointBindingSpace indicates an expected call of DefaultEndpointBindingSpace.

func (*MockBackendMockRecorder) InferActiveRelation

func (mr *MockBackendMockRecorder) InferActiveRelation(arg0 ...any) *gomock.Call

InferActiveRelation indicates an expected call of InferActiveRelation.

func (*MockBackendMockRecorder) InferEndpoints

func (mr *MockBackendMockRecorder) InferEndpoints(arg0 ...any) *gomock.Call

InferEndpoints indicates an expected call of InferEndpoints.

func (*MockBackendMockRecorder) Machine

func (mr *MockBackendMockRecorder) Machine(arg0 any) *gomock.Call

Machine indicates an expected call of Machine.

func (*MockBackendMockRecorder) Model

func (mr *MockBackendMockRecorder) Model() *gomock.Call

Model indicates an expected call of Model.

func (*MockBackendMockRecorder) ModelConstraints

func (mr *MockBackendMockRecorder) ModelConstraints() *gomock.Call

ModelConstraints indicates an expected call of ModelConstraints.

func (*MockBackendMockRecorder) ModelUUID

func (mr *MockBackendMockRecorder) ModelUUID() *gomock.Call

ModelUUID indicates an expected call of ModelUUID.

func (*MockBackendMockRecorder) OfferConnectionForRelation

func (mr *MockBackendMockRecorder) OfferConnectionForRelation(arg0 any) *gomock.Call

OfferConnectionForRelation indicates an expected call of OfferConnectionForRelation.

func (*MockBackendMockRecorder) PrepareCharmUpload

func (mr *MockBackendMockRecorder) PrepareCharmUpload(arg0 any) *gomock.Call

PrepareCharmUpload indicates an expected call of PrepareCharmUpload.

func (*MockBackendMockRecorder) Relation

func (mr *MockBackendMockRecorder) Relation(arg0 any) *gomock.Call

Relation indicates an expected call of Relation.

func (*MockBackendMockRecorder) RemoteApplication

func (mr *MockBackendMockRecorder) RemoteApplication(arg0 any) *gomock.Call

RemoteApplication indicates an expected call of RemoteApplication.

func (*MockBackendMockRecorder) RemovePendingResources

func (mr *MockBackendMockRecorder) RemovePendingResources(arg0, arg1 any) *gomock.Call

RemovePendingResources indicates an expected call of RemovePendingResources.

func (*MockBackendMockRecorder) Resources

func (mr *MockBackendMockRecorder) Resources() *gomock.Call

Resources indicates an expected call of Resources.

func (*MockBackendMockRecorder) SaveController

func (mr *MockBackendMockRecorder) SaveController(arg0, arg1 any) *gomock.Call

SaveController indicates an expected call of SaveController.

func (*MockBackendMockRecorder) SaveEgressNetworks

func (mr *MockBackendMockRecorder) SaveEgressNetworks(arg0, arg1 any) *gomock.Call

SaveEgressNetworks indicates an expected call of SaveEgressNetworks.

func (*MockBackendMockRecorder) Space

func (mr *MockBackendMockRecorder) Space(arg0 any) *gomock.Call

Space indicates an expected call of Space.

func (*MockBackendMockRecorder) Unit

func (mr *MockBackendMockRecorder) Unit(arg0 any) *gomock.Call

Unit indicates an expected call of Unit.

func (*MockBackendMockRecorder) UnitsInError

func (mr *MockBackendMockRecorder) UnitsInError() *gomock.Call

UnitsInError indicates an expected call of UnitsInError.

func (*MockBackendMockRecorder) UpdateUploadedCharm

func (mr *MockBackendMockRecorder) UpdateUploadedCharm(arg0 any) *gomock.Call

UpdateUploadedCharm indicates an expected call of UpdateUploadedCharm.

type MockBindings

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

MockBindings is a mock of Bindings interface.

func NewMockBindings

func NewMockBindings(ctrl *gomock.Controller) *MockBindings

NewMockBindings creates a new mock instance.

func (*MockBindings) EXPECT

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

func (*MockBindings) Map

func (m *MockBindings) Map() map[string]string

Map mocks base method.

func (*MockBindings) MapWithSpaceNames

func (m *MockBindings) MapWithSpaceNames(arg0 network.SpaceInfos) (map[string]string, error)

MapWithSpaceNames mocks base method.

type MockBindingsMockRecorder

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

MockBindingsMockRecorder is the mock recorder for MockBindings.

func (*MockBindingsMockRecorder) Map

Map indicates an expected call of Map.

func (*MockBindingsMockRecorder) MapWithSpaceNames

func (mr *MockBindingsMockRecorder) MapWithSpaceNames(arg0 any) *gomock.Call

MapWithSpaceNames indicates an expected call of MapWithSpaceNames.

type MockBlockChecker

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

MockBlockChecker is a mock of BlockChecker interface.

func NewMockBlockChecker

func NewMockBlockChecker(ctrl *gomock.Controller) *MockBlockChecker

NewMockBlockChecker creates a new mock instance.

func (*MockBlockChecker) ChangeAllowed

func (m *MockBlockChecker) ChangeAllowed() error

ChangeAllowed mocks base method.

func (*MockBlockChecker) EXPECT

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

func (*MockBlockChecker) RemoveAllowed

func (m *MockBlockChecker) RemoveAllowed() error

RemoveAllowed mocks base method.

type MockBlockCheckerMockRecorder

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

MockBlockCheckerMockRecorder is the mock recorder for MockBlockChecker.

func (*MockBlockCheckerMockRecorder) ChangeAllowed

func (mr *MockBlockCheckerMockRecorder) ChangeAllowed() *gomock.Call

ChangeAllowed indicates an expected call of ChangeAllowed.

func (*MockBlockCheckerMockRecorder) RemoveAllowed

func (mr *MockBlockCheckerMockRecorder) RemoveAllowed() *gomock.Call

RemoveAllowed indicates an expected call of RemoveAllowed.

type MockCaasBrokerInterface

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

MockCaasBrokerInterface is a mock of CaasBrokerInterface interface.

func NewMockCaasBrokerInterface

func NewMockCaasBrokerInterface(ctrl *gomock.Controller) *MockCaasBrokerInterface

NewMockCaasBrokerInterface creates a new mock instance.

func (*MockCaasBrokerInterface) EXPECT

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

func (*MockCaasBrokerInterface) ValidateStorageClass

func (m *MockCaasBrokerInterface) ValidateStorageClass(arg0 map[string]any) error

ValidateStorageClass mocks base method.

func (*MockCaasBrokerInterface) Version

func (m *MockCaasBrokerInterface) Version() (*version.Number, error)

Version mocks base method.

type MockCaasBrokerInterfaceMockRecorder

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

MockCaasBrokerInterfaceMockRecorder is the mock recorder for MockCaasBrokerInterface.

func (*MockCaasBrokerInterfaceMockRecorder) ValidateStorageClass

func (mr *MockCaasBrokerInterfaceMockRecorder) ValidateStorageClass(arg0 any) *gomock.Call

ValidateStorageClass indicates an expected call of ValidateStorageClass.

func (*MockCaasBrokerInterfaceMockRecorder) Version

Version indicates an expected call of Version.

type MockCharm

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

MockCharm is a mock of Charm interface.

func NewMockCharm

func NewMockCharm(ctrl *gomock.Controller) *MockCharm

NewMockCharm creates a new mock instance.

func (*MockCharm) Actions

func (m *MockCharm) Actions() *charm.Actions

Actions mocks base method.

func (*MockCharm) Config

func (m *MockCharm) Config() *charm.Config

Config mocks base method.

func (*MockCharm) EXPECT

func (m *MockCharm) EXPECT() *MockCharmMockRecorder

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

func (*MockCharm) IsUploaded

func (m *MockCharm) IsUploaded() bool

IsUploaded mocks base method.

func (*MockCharm) Manifest

func (m *MockCharm) Manifest() *charm.Manifest

Manifest mocks base method.

func (*MockCharm) Meta

func (m *MockCharm) Meta() *charm.Meta

Meta mocks base method.

func (*MockCharm) Metrics

func (m *MockCharm) Metrics() *charm.Metrics

Metrics mocks base method.

func (*MockCharm) Revision

func (m *MockCharm) Revision() int

Revision mocks base method.

type MockCharmMockRecorder

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

MockCharmMockRecorder is the mock recorder for MockCharm.

func (*MockCharmMockRecorder) Actions

func (mr *MockCharmMockRecorder) Actions() *gomock.Call

Actions indicates an expected call of Actions.

func (*MockCharmMockRecorder) Config

func (mr *MockCharmMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockCharmMockRecorder) IsUploaded

func (mr *MockCharmMockRecorder) IsUploaded() *gomock.Call

IsUploaded indicates an expected call of IsUploaded.

func (*MockCharmMockRecorder) Manifest

func (mr *MockCharmMockRecorder) Manifest() *gomock.Call

Manifest indicates an expected call of Manifest.

func (*MockCharmMockRecorder) Meta

func (mr *MockCharmMockRecorder) Meta() *gomock.Call

Meta indicates an expected call of Meta.

func (*MockCharmMockRecorder) Metrics

func (mr *MockCharmMockRecorder) Metrics() *gomock.Call

Metrics indicates an expected call of Metrics.

func (*MockCharmMockRecorder) Revision

func (mr *MockCharmMockRecorder) Revision() *gomock.Call

Revision indicates an expected call of Revision.

type MockCloudContainer

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

MockCloudContainer is a mock of CloudContainer interface.

func NewMockCloudContainer

func NewMockCloudContainer(ctrl *gomock.Controller) *MockCloudContainer

NewMockCloudContainer creates a new mock instance.

func (*MockCloudContainer) Address

func (m *MockCloudContainer) Address() *network.SpaceAddress

Address mocks base method.

func (*MockCloudContainer) EXPECT

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

func (*MockCloudContainer) Ports

func (m *MockCloudContainer) Ports() []string

Ports mocks base method.

func (*MockCloudContainer) ProviderId

func (m *MockCloudContainer) ProviderId() string

ProviderId mocks base method.

func (*MockCloudContainer) Unit

func (m *MockCloudContainer) Unit() string

Unit mocks base method.

type MockCloudContainerMockRecorder

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

MockCloudContainerMockRecorder is the mock recorder for MockCloudContainer.

func (*MockCloudContainerMockRecorder) Address

Address indicates an expected call of Address.

func (*MockCloudContainerMockRecorder) Ports

Ports indicates an expected call of Ports.

func (*MockCloudContainerMockRecorder) ProviderId

func (mr *MockCloudContainerMockRecorder) ProviderId() *gomock.Call

ProviderId indicates an expected call of ProviderId.

func (*MockCloudContainerMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockGeneration

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

MockGeneration is a mock of Generation interface.

func NewMockGeneration

func NewMockGeneration(ctrl *gomock.Controller) *MockGeneration

NewMockGeneration creates a new mock instance.

func (*MockGeneration) AssignApplication

func (m *MockGeneration) AssignApplication(arg0 string) error

AssignApplication mocks base method.

func (*MockGeneration) EXPECT

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

type MockGenerationMockRecorder

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

MockGenerationMockRecorder is the mock recorder for MockGeneration.

func (*MockGenerationMockRecorder) AssignApplication

func (mr *MockGenerationMockRecorder) AssignApplication(arg0 any) *gomock.Call

AssignApplication indicates an expected call of AssignApplication.

type MockLXDProfiler

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

MockLXDProfiler is a mock of LXDProfiler interface.

func NewMockLXDProfiler

func NewMockLXDProfiler(ctrl *gomock.Controller) *MockLXDProfiler

NewMockLXDProfiler creates a new mock instance.

func (*MockLXDProfiler) EXPECT

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

func (*MockLXDProfiler) LXDProfile

func (m *MockLXDProfiler) LXDProfile() *charm.LXDProfile

LXDProfile mocks base method.

type MockLXDProfilerMockRecorder

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

MockLXDProfilerMockRecorder is the mock recorder for MockLXDProfiler.

func (*MockLXDProfilerMockRecorder) LXDProfile

func (mr *MockLXDProfilerMockRecorder) LXDProfile() *gomock.Call

LXDProfile indicates an expected call of LXDProfile.

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

func (m *MockMachine) Base() state.Base

Base mocks base method.

func (*MockMachine) EXPECT

func (m *MockMachine) EXPECT() *MockMachineMockRecorder

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

func (*MockMachine) HardwareCharacteristics

func (m *MockMachine) HardwareCharacteristics() (*instance.HardwareCharacteristics, error)

HardwareCharacteristics mocks base method.

func (*MockMachine) Id

func (m *MockMachine) Id() string

Id mocks base method.

func (*MockMachine) IsLockedForSeriesUpgrade

func (m *MockMachine) IsLockedForSeriesUpgrade() (bool, error)

IsLockedForSeriesUpgrade mocks base method.

func (*MockMachine) IsParentLockedForSeriesUpgrade

func (m *MockMachine) IsParentLockedForSeriesUpgrade() (bool, error)

IsParentLockedForSeriesUpgrade mocks base method.

func (*MockMachine) PublicAddress

func (m *MockMachine) PublicAddress() (network.SpaceAddress, error)

PublicAddress mocks base method.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) Base

func (mr *MockMachineMockRecorder) Base() *gomock.Call

Base indicates an expected call of Base.

func (*MockMachineMockRecorder) HardwareCharacteristics

func (mr *MockMachineMockRecorder) HardwareCharacteristics() *gomock.Call

HardwareCharacteristics indicates an expected call of HardwareCharacteristics.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) IsLockedForSeriesUpgrade

func (mr *MockMachineMockRecorder) IsLockedForSeriesUpgrade() *gomock.Call

IsLockedForSeriesUpgrade indicates an expected call of IsLockedForSeriesUpgrade.

func (*MockMachineMockRecorder) IsParentLockedForSeriesUpgrade

func (mr *MockMachineMockRecorder) IsParentLockedForSeriesUpgrade() *gomock.Call

IsParentLockedForSeriesUpgrade indicates an expected call of IsParentLockedForSeriesUpgrade.

func (*MockMachineMockRecorder) PublicAddress

func (mr *MockMachineMockRecorder) PublicAddress() *gomock.Call

PublicAddress indicates an expected call of PublicAddress.

type MockMachinePortRanges

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

MockMachinePortRanges is a mock of MachinePortRanges interface.

func NewMockMachinePortRanges

func NewMockMachinePortRanges(ctrl *gomock.Controller) *MockMachinePortRanges

NewMockMachinePortRanges creates a new mock instance.

func (*MockMachinePortRanges) ByUnit

ByUnit mocks base method.

func (*MockMachinePortRanges) Changes

Changes mocks base method.

func (*MockMachinePortRanges) EXPECT

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

func (*MockMachinePortRanges) ForUnit

ForUnit mocks base method.

func (*MockMachinePortRanges) MachineID

func (m *MockMachinePortRanges) MachineID() string

MachineID mocks base method.

func (*MockMachinePortRanges) UniquePortRanges

func (m *MockMachinePortRanges) UniquePortRanges() []network.PortRange

UniquePortRanges mocks base method.

type MockMachinePortRangesMockRecorder

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

MockMachinePortRangesMockRecorder is the mock recorder for MockMachinePortRanges.

func (*MockMachinePortRangesMockRecorder) ByUnit

ByUnit indicates an expected call of ByUnit.

func (*MockMachinePortRangesMockRecorder) Changes

Changes indicates an expected call of Changes.

func (*MockMachinePortRangesMockRecorder) ForUnit

func (mr *MockMachinePortRangesMockRecorder) ForUnit(arg0 any) *gomock.Call

ForUnit indicates an expected call of ForUnit.

func (*MockMachinePortRangesMockRecorder) MachineID

MachineID indicates an expected call of MachineID.

func (*MockMachinePortRangesMockRecorder) UniquePortRanges

func (mr *MockMachinePortRangesMockRecorder) UniquePortRanges() *gomock.Call

UniquePortRanges indicates an expected call of UniquePortRanges.

type MockModel

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

MockModel is a mock of Model interface.

func NewMockModel

func NewMockModel(ctrl *gomock.Controller) *MockModel

NewMockModel creates a new mock instance.

func (*MockModel) AgentVersion

func (m *MockModel) AgentVersion() (version.Number, error)

AgentVersion mocks base method.

func (*MockModel) Cloud

func (m *MockModel) Cloud() (cloud.Cloud, error)

Cloud mocks base method.

func (*MockModel) CloudCredential

func (m *MockModel) CloudCredential() (state.Credential, bool, error)

CloudCredential mocks base method.

func (*MockModel) CloudName

func (m *MockModel) CloudName() string

CloudName mocks base method.

func (*MockModel) CloudRegion

func (m *MockModel) CloudRegion() string

CloudRegion mocks base method.

func (*MockModel) Config

func (m *MockModel) Config() (*config0.Config, error)

Config mocks base method.

func (*MockModel) ControllerUUID

func (m *MockModel) ControllerUUID() string

ControllerUUID mocks base method.

func (*MockModel) EXPECT

func (m *MockModel) EXPECT() *MockModelMockRecorder

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

func (*MockModel) ModelConfig

func (m *MockModel) ModelConfig() (*config0.Config, error)

ModelConfig mocks base method.

func (*MockModel) ModelTag

func (m *MockModel) ModelTag() names.ModelTag

ModelTag mocks base method.

func (*MockModel) Name

func (m *MockModel) Name() string

Name mocks base method.

func (*MockModel) OpenedPortRangesForMachine

func (m *MockModel) OpenedPortRangesForMachine(arg0 string) (state.MachinePortRanges, error)

OpenedPortRangesForMachine mocks base method.

func (*MockModel) Owner

func (m *MockModel) Owner() names.UserTag

Owner mocks base method.

func (*MockModel) Tag

func (m *MockModel) Tag() names.Tag

Tag mocks base method.

func (*MockModel) Type

func (m *MockModel) Type() state.ModelType

Type mocks base method.

func (*MockModel) UUID

func (m *MockModel) UUID() string

UUID mocks base method.

type MockModelMockRecorder

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

MockModelMockRecorder is the mock recorder for MockModel.

func (*MockModelMockRecorder) AgentVersion

func (mr *MockModelMockRecorder) AgentVersion() *gomock.Call

AgentVersion indicates an expected call of AgentVersion.

func (*MockModelMockRecorder) Cloud

func (mr *MockModelMockRecorder) Cloud() *gomock.Call

Cloud indicates an expected call of Cloud.

func (*MockModelMockRecorder) CloudCredential

func (mr *MockModelMockRecorder) CloudCredential() *gomock.Call

CloudCredential indicates an expected call of CloudCredential.

func (*MockModelMockRecorder) CloudName

func (mr *MockModelMockRecorder) CloudName() *gomock.Call

CloudName indicates an expected call of CloudName.

func (*MockModelMockRecorder) CloudRegion

func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call

CloudRegion indicates an expected call of CloudRegion.

func (*MockModelMockRecorder) Config

func (mr *MockModelMockRecorder) Config() *gomock.Call

Config indicates an expected call of Config.

func (*MockModelMockRecorder) ControllerUUID

func (mr *MockModelMockRecorder) ControllerUUID() *gomock.Call

ControllerUUID indicates an expected call of ControllerUUID.

func (*MockModelMockRecorder) ModelConfig

func (mr *MockModelMockRecorder) ModelConfig() *gomock.Call

ModelConfig indicates an expected call of ModelConfig.

func (*MockModelMockRecorder) ModelTag

func (mr *MockModelMockRecorder) ModelTag() *gomock.Call

ModelTag indicates an expected call of ModelTag.

func (*MockModelMockRecorder) Name

func (mr *MockModelMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockModelMockRecorder) OpenedPortRangesForMachine

func (mr *MockModelMockRecorder) OpenedPortRangesForMachine(arg0 any) *gomock.Call

OpenedPortRangesForMachine indicates an expected call of OpenedPortRangesForMachine.

func (*MockModelMockRecorder) Owner

func (mr *MockModelMockRecorder) Owner() *gomock.Call

Owner indicates an expected call of Owner.

func (*MockModelMockRecorder) Tag

func (mr *MockModelMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag.

func (*MockModelMockRecorder) Type

func (mr *MockModelMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

func (*MockModelMockRecorder) UUID

func (mr *MockModelMockRecorder) UUID() *gomock.Call

UUID indicates an expected call of UUID.

type MockOfferConnection

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

MockOfferConnection is a mock of OfferConnection interface.

func NewMockOfferConnection

func NewMockOfferConnection(ctrl *gomock.Controller) *MockOfferConnection

NewMockOfferConnection creates a new mock instance.

func (*MockOfferConnection) EXPECT

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

func (*MockOfferConnection) OfferUUID

func (m *MockOfferConnection) OfferUUID() string

OfferUUID mocks base method.

func (*MockOfferConnection) UserName

func (m *MockOfferConnection) UserName() string

UserName mocks base method.

type MockOfferConnectionMockRecorder

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

MockOfferConnectionMockRecorder is the mock recorder for MockOfferConnection.

func (*MockOfferConnectionMockRecorder) OfferUUID

func (mr *MockOfferConnectionMockRecorder) OfferUUID() *gomock.Call

OfferUUID indicates an expected call of OfferUUID.

func (*MockOfferConnectionMockRecorder) UserName

UserName indicates an expected call of UserName.

type MockPoolManager

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

MockPoolManager is a mock of PoolManager interface.

func NewMockPoolManager

func NewMockPoolManager(ctrl *gomock.Controller) *MockPoolManager

NewMockPoolManager creates a new mock instance.

func (*MockPoolManager) Create

func (m *MockPoolManager) Create(arg0 string, arg1 storage.ProviderType, arg2 map[string]any) (*storage.Config, error)

Create mocks base method.

func (*MockPoolManager) Delete

func (m *MockPoolManager) Delete(arg0 string) error

Delete mocks base method.

func (*MockPoolManager) EXPECT

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

func (*MockPoolManager) Get

func (m *MockPoolManager) Get(arg0 string) (*storage.Config, error)

Get mocks base method.

func (*MockPoolManager) List

func (m *MockPoolManager) List() ([]*storage.Config, error)

List mocks base method.

func (*MockPoolManager) Replace

func (m *MockPoolManager) Replace(arg0, arg1 string, arg2 map[string]any) error

Replace mocks base method.

type MockPoolManagerMockRecorder

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

MockPoolManagerMockRecorder is the mock recorder for MockPoolManager.

func (*MockPoolManagerMockRecorder) Create

func (mr *MockPoolManagerMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call

Create indicates an expected call of Create.

func (*MockPoolManagerMockRecorder) Delete

func (mr *MockPoolManagerMockRecorder) Delete(arg0 any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockPoolManagerMockRecorder) Get

func (mr *MockPoolManagerMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockPoolManagerMockRecorder) List

List indicates an expected call of List.

func (*MockPoolManagerMockRecorder) Replace

func (mr *MockPoolManagerMockRecorder) Replace(arg0, arg1, arg2 any) *gomock.Call

Replace indicates an expected call of Replace.

type MockProviderRegistry

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

MockProviderRegistry is a mock of ProviderRegistry interface.

func NewMockProviderRegistry

func NewMockProviderRegistry(ctrl *gomock.Controller) *MockProviderRegistry

NewMockProviderRegistry creates a new mock instance.

func (*MockProviderRegistry) EXPECT

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

func (*MockProviderRegistry) StorageProvider

func (m *MockProviderRegistry) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)

StorageProvider mocks base method.

func (*MockProviderRegistry) StorageProviderTypes

func (m *MockProviderRegistry) StorageProviderTypes() ([]storage.ProviderType, error)

StorageProviderTypes mocks base method.

type MockProviderRegistryMockRecorder

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

MockProviderRegistryMockRecorder is the mock recorder for MockProviderRegistry.

func (*MockProviderRegistryMockRecorder) StorageProvider

func (mr *MockProviderRegistryMockRecorder) StorageProvider(arg0 any) *gomock.Call

StorageProvider indicates an expected call of StorageProvider.

func (*MockProviderRegistryMockRecorder) StorageProviderTypes

func (mr *MockProviderRegistryMockRecorder) StorageProviderTypes() *gomock.Call

StorageProviderTypes indicates an expected call of StorageProviderTypes.

type MockReader

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

MockReader is a mock of Reader interface.

func NewMockReader

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT

func (m *MockReader) EXPECT() *MockReaderMockRecorder

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

func (*MockReader) Leaders

func (m *MockReader) Leaders() (map[string]string, error)

Leaders mocks base method.

type MockReaderMockRecorder

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

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) Leaders

func (mr *MockReaderMockRecorder) Leaders() *gomock.Call

Leaders indicates an expected call of Leaders.

type MockRelation

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

MockRelation is a mock of Relation interface.

func NewMockRelation

func NewMockRelation(ctrl *gomock.Controller) *MockRelation

NewMockRelation creates a new mock instance.

func (*MockRelation) AllRemoteUnits

func (m *MockRelation) AllRemoteUnits(arg0 string) ([]application.RelationUnit, error)

AllRemoteUnits mocks base method.

func (*MockRelation) ApplicationSettings

func (m *MockRelation) ApplicationSettings(arg0 string) (map[string]any, error)

ApplicationSettings mocks base method.

func (*MockRelation) Destroy

func (m *MockRelation) Destroy() error

Destroy mocks base method.

func (*MockRelation) DestroyWithForce

func (m *MockRelation) DestroyWithForce(arg0 bool, arg1 time.Duration) ([]error, error)

DestroyWithForce mocks base method.

func (*MockRelation) EXPECT

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

func (*MockRelation) Endpoint

func (m *MockRelation) Endpoint(arg0 string) (state.Endpoint, error)

Endpoint mocks base method.

func (*MockRelation) Endpoints

func (m *MockRelation) Endpoints() []state.Endpoint

Endpoints mocks base method.

func (*MockRelation) Id

func (m *MockRelation) Id() int

Id mocks base method.

func (*MockRelation) RelatedEndpoints

func (m *MockRelation) RelatedEndpoints(arg0 string) ([]state.Endpoint, error)

RelatedEndpoints mocks base method.

func (*MockRelation) SetStatus

func (m *MockRelation) SetStatus(arg0 status.StatusInfo) error

SetStatus mocks base method.

func (*MockRelation) SetSuspended

func (m *MockRelation) SetSuspended(arg0 bool, arg1 string) error

SetSuspended mocks base method.

func (*MockRelation) Suspended

func (m *MockRelation) Suspended() bool

Suspended mocks base method.

func (*MockRelation) SuspendedReason

func (m *MockRelation) SuspendedReason() string

SuspendedReason mocks base method.

func (*MockRelation) Tag

func (m *MockRelation) Tag() names.Tag

Tag mocks base method.

func (*MockRelation) Unit

Unit mocks base method.

type MockRelationMockRecorder

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

MockRelationMockRecorder is the mock recorder for MockRelation.

func (*MockRelationMockRecorder) AllRemoteUnits

func (mr *MockRelationMockRecorder) AllRemoteUnits(arg0 any) *gomock.Call

AllRemoteUnits indicates an expected call of AllRemoteUnits.

func (*MockRelationMockRecorder) ApplicationSettings

func (mr *MockRelationMockRecorder) ApplicationSettings(arg0 any) *gomock.Call

ApplicationSettings indicates an expected call of ApplicationSettings.

func (*MockRelationMockRecorder) Destroy

func (mr *MockRelationMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockRelationMockRecorder) DestroyWithForce

func (mr *MockRelationMockRecorder) DestroyWithForce(arg0, arg1 any) *gomock.Call

DestroyWithForce indicates an expected call of DestroyWithForce.

func (*MockRelationMockRecorder) Endpoint

func (mr *MockRelationMockRecorder) Endpoint(arg0 any) *gomock.Call

Endpoint indicates an expected call of Endpoint.

func (*MockRelationMockRecorder) Endpoints

func (mr *MockRelationMockRecorder) Endpoints() *gomock.Call

Endpoints indicates an expected call of Endpoints.

func (*MockRelationMockRecorder) Id

Id indicates an expected call of Id.

func (*MockRelationMockRecorder) RelatedEndpoints

func (mr *MockRelationMockRecorder) RelatedEndpoints(arg0 any) *gomock.Call

RelatedEndpoints indicates an expected call of RelatedEndpoints.

func (*MockRelationMockRecorder) SetStatus

func (mr *MockRelationMockRecorder) SetStatus(arg0 any) *gomock.Call

SetStatus indicates an expected call of SetStatus.

func (*MockRelationMockRecorder) SetSuspended

func (mr *MockRelationMockRecorder) SetSuspended(arg0, arg1 any) *gomock.Call

SetSuspended indicates an expected call of SetSuspended.

func (*MockRelationMockRecorder) Suspended

func (mr *MockRelationMockRecorder) Suspended() *gomock.Call

Suspended indicates an expected call of Suspended.

func (*MockRelationMockRecorder) SuspendedReason

func (mr *MockRelationMockRecorder) SuspendedReason() *gomock.Call

SuspendedReason indicates an expected call of SuspendedReason.

func (*MockRelationMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockRelationMockRecorder) Unit

func (mr *MockRelationMockRecorder) Unit(arg0 any) *gomock.Call

Unit indicates an expected call of Unit.

type MockRelationUnit

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

MockRelationUnit is a mock of RelationUnit interface.

func NewMockRelationUnit

func NewMockRelationUnit(ctrl *gomock.Controller) *MockRelationUnit

NewMockRelationUnit creates a new mock instance.

func (*MockRelationUnit) EXPECT

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

func (*MockRelationUnit) InScope

func (m *MockRelationUnit) InScope() (bool, error)

InScope mocks base method.

func (*MockRelationUnit) Settings

func (m *MockRelationUnit) Settings() (map[string]any, error)

Settings mocks base method.

func (*MockRelationUnit) UnitName

func (m *MockRelationUnit) UnitName() string

UnitName mocks base method.

type MockRelationUnitMockRecorder

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

MockRelationUnitMockRecorder is the mock recorder for MockRelationUnit.

func (*MockRelationUnitMockRecorder) InScope

func (mr *MockRelationUnitMockRecorder) InScope() *gomock.Call

InScope indicates an expected call of InScope.

func (*MockRelationUnitMockRecorder) Settings

func (mr *MockRelationUnitMockRecorder) Settings() *gomock.Call

Settings indicates an expected call of Settings.

func (*MockRelationUnitMockRecorder) UnitName

func (mr *MockRelationUnitMockRecorder) UnitName() *gomock.Call

UnitName indicates an expected call of UnitName.

type MockRemoteApplication

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

MockRemoteApplication is a mock of RemoteApplication interface.

func NewMockRemoteApplication

func NewMockRemoteApplication(ctrl *gomock.Controller) *MockRemoteApplication

NewMockRemoteApplication creates a new mock instance.

func (*MockRemoteApplication) AddEndpoints

func (m *MockRemoteApplication) AddEndpoints(arg0 []charm.Relation) error

AddEndpoints mocks base method.

func (*MockRemoteApplication) Bindings

func (m *MockRemoteApplication) Bindings() map[string]string

Bindings mocks base method.

func (*MockRemoteApplication) Destroy

func (m *MockRemoteApplication) Destroy() error

Destroy mocks base method.

func (*MockRemoteApplication) DestroyOperation

DestroyOperation mocks base method.

func (*MockRemoteApplication) EXPECT

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

func (*MockRemoteApplication) Endpoints

func (m *MockRemoteApplication) Endpoints() ([]state.Endpoint, error)

Endpoints mocks base method.

func (*MockRemoteApplication) Life

func (m *MockRemoteApplication) Life() state.Life

Life mocks base method.

func (*MockRemoteApplication) Name

func (m *MockRemoteApplication) Name() string

Name mocks base method.

func (*MockRemoteApplication) SourceModel

func (m *MockRemoteApplication) SourceModel() names.ModelTag

SourceModel mocks base method.

func (*MockRemoteApplication) Spaces

func (m *MockRemoteApplication) Spaces() []state.RemoteSpace

Spaces mocks base method.

func (*MockRemoteApplication) Status

Status mocks base method.

type MockRemoteApplicationMockRecorder

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

MockRemoteApplicationMockRecorder is the mock recorder for MockRemoteApplication.

func (*MockRemoteApplicationMockRecorder) AddEndpoints

func (mr *MockRemoteApplicationMockRecorder) AddEndpoints(arg0 any) *gomock.Call

AddEndpoints indicates an expected call of AddEndpoints.

func (*MockRemoteApplicationMockRecorder) Bindings

Bindings indicates an expected call of Bindings.

func (*MockRemoteApplicationMockRecorder) Destroy

Destroy indicates an expected call of Destroy.

func (*MockRemoteApplicationMockRecorder) DestroyOperation

func (mr *MockRemoteApplicationMockRecorder) DestroyOperation(arg0 any) *gomock.Call

DestroyOperation indicates an expected call of DestroyOperation.

func (*MockRemoteApplicationMockRecorder) Endpoints

Endpoints indicates an expected call of Endpoints.

func (*MockRemoteApplicationMockRecorder) Life

Life indicates an expected call of Life.

func (*MockRemoteApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockRemoteApplicationMockRecorder) SourceModel

func (mr *MockRemoteApplicationMockRecorder) SourceModel() *gomock.Call

SourceModel indicates an expected call of SourceModel.

func (*MockRemoteApplicationMockRecorder) Spaces

Spaces indicates an expected call of Spaces.

func (*MockRemoteApplicationMockRecorder) Status

Status indicates an expected call of Status.

type MockResources

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

MockResources is a mock of Resources interface.

func NewMockResources

func NewMockResources(ctrl *gomock.Controller) *MockResources

NewMockResources creates a new mock instance.

func (*MockResources) EXPECT

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

func (*MockResources) RemovePendingAppResources

func (m *MockResources) RemovePendingAppResources(arg0 string, arg1 map[string]string) error

RemovePendingAppResources mocks base method.

type MockResourcesMockRecorder

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

MockResourcesMockRecorder is the mock recorder for MockResources.

func (*MockResourcesMockRecorder) RemovePendingAppResources

func (mr *MockResourcesMockRecorder) RemovePendingAppResources(arg0, arg1 any) *gomock.Call

RemovePendingAppResources indicates an expected call of RemovePendingAppResources.

type MockSecretsStore

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

MockSecretsStore is a mock of SecretsStore interface.

func NewMockSecretsStore

func NewMockSecretsStore(ctrl *gomock.Controller) *MockSecretsStore

NewMockSecretsStore creates a new mock instance.

func (*MockSecretsStore) ChangeSecretBackend

func (m *MockSecretsStore) ChangeSecretBackend(arg0 state.ChangeSecretBackendParams) error

ChangeSecretBackend mocks base method.

func (*MockSecretsStore) CreateSecret

CreateSecret mocks base method.

func (*MockSecretsStore) DeleteSecret

func (m *MockSecretsStore) DeleteSecret(arg0 *secrets.URI, arg1 ...int) ([]secrets.ValueRef, error)

DeleteSecret mocks base method.

func (*MockSecretsStore) EXPECT

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

func (*MockSecretsStore) GetSecret

func (m *MockSecretsStore) GetSecret(arg0 *secrets.URI) (*secrets.SecretMetadata, error)

GetSecret mocks base method.

func (*MockSecretsStore) GetSecretRevision

func (m *MockSecretsStore) GetSecretRevision(arg0 *secrets.URI, arg1 int) (*secrets.SecretRevisionMetadata, error)

GetSecretRevision mocks base method.

func (*MockSecretsStore) GetSecretValue

func (m *MockSecretsStore) GetSecretValue(arg0 *secrets.URI, arg1 int) (secrets.SecretValue, *secrets.ValueRef, error)

GetSecretValue mocks base method.

func (*MockSecretsStore) ListModelSecrets

func (m *MockSecretsStore) ListModelSecrets(arg0 bool) (map[string]set.Strings, error)

ListModelSecrets mocks base method.

func (*MockSecretsStore) ListSecretRevisions

func (m *MockSecretsStore) ListSecretRevisions(arg0 *secrets.URI) ([]*secrets.SecretRevisionMetadata, error)

ListSecretRevisions mocks base method.

func (*MockSecretsStore) ListSecrets

func (m *MockSecretsStore) ListSecrets(arg0 state.SecretsFilter) ([]*secrets.SecretMetadata, error)

ListSecrets mocks base method.

func (*MockSecretsStore) ListUnusedSecretRevisions

func (m *MockSecretsStore) ListUnusedSecretRevisions(arg0 *secrets.URI) ([]int, error)

ListUnusedSecretRevisions mocks base method.

func (*MockSecretsStore) SecretGrants

func (m *MockSecretsStore) SecretGrants(arg0 *secrets.URI, arg1 secrets.SecretRole) ([]secrets.AccessInfo, error)

SecretGrants mocks base method.

func (*MockSecretsStore) UpdateSecret

UpdateSecret mocks base method.

func (*MockSecretsStore) WatchObsolete

func (m *MockSecretsStore) WatchObsolete(arg0 []names.Tag) (state.StringsWatcher, error)

WatchObsolete mocks base method.

func (*MockSecretsStore) WatchRevisionsToPrune

func (m *MockSecretsStore) WatchRevisionsToPrune(arg0 []names.Tag) (state.StringsWatcher, error)

WatchRevisionsToPrune mocks base method.

type MockSecretsStoreMockRecorder

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

MockSecretsStoreMockRecorder is the mock recorder for MockSecretsStore.

func (*MockSecretsStoreMockRecorder) ChangeSecretBackend

func (mr *MockSecretsStoreMockRecorder) ChangeSecretBackend(arg0 any) *gomock.Call

ChangeSecretBackend indicates an expected call of ChangeSecretBackend.

func (*MockSecretsStoreMockRecorder) CreateSecret

func (mr *MockSecretsStoreMockRecorder) CreateSecret(arg0, arg1 any) *gomock.Call

CreateSecret indicates an expected call of CreateSecret.

func (*MockSecretsStoreMockRecorder) DeleteSecret

func (mr *MockSecretsStoreMockRecorder) DeleteSecret(arg0 any, arg1 ...any) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret.

func (*MockSecretsStoreMockRecorder) GetSecret

func (mr *MockSecretsStoreMockRecorder) GetSecret(arg0 any) *gomock.Call

GetSecret indicates an expected call of GetSecret.

func (*MockSecretsStoreMockRecorder) GetSecretRevision

func (mr *MockSecretsStoreMockRecorder) GetSecretRevision(arg0, arg1 any) *gomock.Call

GetSecretRevision indicates an expected call of GetSecretRevision.

func (*MockSecretsStoreMockRecorder) GetSecretValue

func (mr *MockSecretsStoreMockRecorder) GetSecretValue(arg0, arg1 any) *gomock.Call

GetSecretValue indicates an expected call of GetSecretValue.

func (*MockSecretsStoreMockRecorder) ListModelSecrets

func (mr *MockSecretsStoreMockRecorder) ListModelSecrets(arg0 any) *gomock.Call

ListModelSecrets indicates an expected call of ListModelSecrets.

func (*MockSecretsStoreMockRecorder) ListSecretRevisions

func (mr *MockSecretsStoreMockRecorder) ListSecretRevisions(arg0 any) *gomock.Call

ListSecretRevisions indicates an expected call of ListSecretRevisions.

func (*MockSecretsStoreMockRecorder) ListSecrets

func (mr *MockSecretsStoreMockRecorder) ListSecrets(arg0 any) *gomock.Call

ListSecrets indicates an expected call of ListSecrets.

func (*MockSecretsStoreMockRecorder) ListUnusedSecretRevisions

func (mr *MockSecretsStoreMockRecorder) ListUnusedSecretRevisions(arg0 any) *gomock.Call

ListUnusedSecretRevisions indicates an expected call of ListUnusedSecretRevisions.

func (*MockSecretsStoreMockRecorder) SecretGrants

func (mr *MockSecretsStoreMockRecorder) SecretGrants(arg0, arg1 any) *gomock.Call

SecretGrants indicates an expected call of SecretGrants.

func (*MockSecretsStoreMockRecorder) UpdateSecret

func (mr *MockSecretsStoreMockRecorder) UpdateSecret(arg0, arg1 any) *gomock.Call

UpdateSecret indicates an expected call of UpdateSecret.

func (*MockSecretsStoreMockRecorder) WatchObsolete

func (mr *MockSecretsStoreMockRecorder) WatchObsolete(arg0 any) *gomock.Call

WatchObsolete indicates an expected call of WatchObsolete.

func (*MockSecretsStoreMockRecorder) WatchRevisionsToPrune

func (mr *MockSecretsStoreMockRecorder) WatchRevisionsToPrune(arg0 any) *gomock.Call

WatchRevisionsToPrune indicates an expected call of WatchRevisionsToPrune.

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) Get

func (m *MockStorage) Get(arg0 string) (io.ReadCloser, int64, error)

Get mocks base method.

func (*MockStorage) Put

func (m *MockStorage) Put(arg0 string, arg1 io.Reader, arg2 int64) error

Put mocks base method.

func (*MockStorage) PutAndCheckHash

func (m *MockStorage) PutAndCheckHash(arg0 string, arg1 io.Reader, arg2 int64, arg3 string) error

PutAndCheckHash mocks base method.

func (*MockStorage) Remove

func (m *MockStorage) Remove(arg0 string) error

Remove mocks base method.

type MockStorageAttachment

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

MockStorageAttachment is a mock of StorageAttachment interface.

func NewMockStorageAttachment

func NewMockStorageAttachment(ctrl *gomock.Controller) *MockStorageAttachment

NewMockStorageAttachment creates a new mock instance.

func (*MockStorageAttachment) EXPECT

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

func (*MockStorageAttachment) Life

func (m *MockStorageAttachment) Life() state.Life

Life mocks base method.

func (*MockStorageAttachment) StorageInstance

func (m *MockStorageAttachment) StorageInstance() names.StorageTag

StorageInstance mocks base method.

func (*MockStorageAttachment) Unit

Unit mocks base method.

type MockStorageAttachmentMockRecorder

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

MockStorageAttachmentMockRecorder is the mock recorder for MockStorageAttachment.

func (*MockStorageAttachmentMockRecorder) Life

Life indicates an expected call of Life.

func (*MockStorageAttachmentMockRecorder) StorageInstance

func (mr *MockStorageAttachmentMockRecorder) StorageInstance() *gomock.Call

StorageInstance indicates an expected call of StorageInstance.

func (*MockStorageAttachmentMockRecorder) Unit

Unit indicates an expected call of Unit.

type MockStorageInstance

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

MockStorageInstance is a mock of StorageInstance interface.

func NewMockStorageInstance

func NewMockStorageInstance(ctrl *gomock.Controller) *MockStorageInstance

NewMockStorageInstance creates a new mock instance.

func (*MockStorageInstance) EXPECT

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

func (*MockStorageInstance) Kind

Kind mocks base method.

func (*MockStorageInstance) Life

func (m *MockStorageInstance) Life() state.Life

Life mocks base method.

func (*MockStorageInstance) Owner

func (m *MockStorageInstance) Owner() (names.Tag, bool)

Owner mocks base method.

func (*MockStorageInstance) Pool

func (m *MockStorageInstance) Pool() string

Pool mocks base method.

func (*MockStorageInstance) StorageName

func (m *MockStorageInstance) StorageName() string

StorageName mocks base method.

func (*MockStorageInstance) StorageTag

func (m *MockStorageInstance) StorageTag() names.StorageTag

StorageTag mocks base method.

func (*MockStorageInstance) Tag

func (m *MockStorageInstance) Tag() names.Tag

Tag mocks base method.

type MockStorageInstanceMockRecorder

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

MockStorageInstanceMockRecorder is the mock recorder for MockStorageInstance.

func (*MockStorageInstanceMockRecorder) Kind

Kind indicates an expected call of Kind.

func (*MockStorageInstanceMockRecorder) Life

Life indicates an expected call of Life.

func (*MockStorageInstanceMockRecorder) Owner

Owner indicates an expected call of Owner.

func (*MockStorageInstanceMockRecorder) Pool

Pool indicates an expected call of Pool.

func (*MockStorageInstanceMockRecorder) StorageName

func (mr *MockStorageInstanceMockRecorder) StorageName() *gomock.Call

StorageName indicates an expected call of StorageName.

func (*MockStorageInstanceMockRecorder) StorageTag

func (mr *MockStorageInstanceMockRecorder) StorageTag() *gomock.Call

StorageTag indicates an expected call of StorageTag.

func (*MockStorageInstanceMockRecorder) Tag

Tag indicates an expected call of Tag.

type MockStorageInterface

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

MockStorageInterface is a mock of StorageInterface interface.

func NewMockStorageInterface

func NewMockStorageInterface(ctrl *gomock.Controller) *MockStorageInterface

NewMockStorageInterface creates a new mock instance.

func (*MockStorageInterface) EXPECT

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

func (*MockStorageInterface) FilesystemAccess

func (m *MockStorageInterface) FilesystemAccess() storagecommon.FilesystemAccess

FilesystemAccess mocks base method.

func (*MockStorageInterface) StorageInstance

func (m *MockStorageInterface) StorageInstance(arg0 names.StorageTag) (state.StorageInstance, error)

StorageInstance mocks base method.

func (*MockStorageInterface) UnitStorageAttachments

func (m *MockStorageInterface) UnitStorageAttachments(arg0 names.UnitTag) ([]state.StorageAttachment, error)

UnitStorageAttachments mocks base method.

func (*MockStorageInterface) VolumeAccess

VolumeAccess mocks base method.

type MockStorageInterfaceMockRecorder

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

MockStorageInterfaceMockRecorder is the mock recorder for MockStorageInterface.

func (*MockStorageInterfaceMockRecorder) FilesystemAccess

func (mr *MockStorageInterfaceMockRecorder) FilesystemAccess() *gomock.Call

FilesystemAccess indicates an expected call of FilesystemAccess.

func (*MockStorageInterfaceMockRecorder) StorageInstance

func (mr *MockStorageInterfaceMockRecorder) StorageInstance(arg0 any) *gomock.Call

StorageInstance indicates an expected call of StorageInstance.

func (*MockStorageInterfaceMockRecorder) UnitStorageAttachments

func (mr *MockStorageInterfaceMockRecorder) UnitStorageAttachments(arg0 any) *gomock.Call

UnitStorageAttachments indicates an expected call of UnitStorageAttachments.

func (*MockStorageInterfaceMockRecorder) VolumeAccess

func (mr *MockStorageInterfaceMockRecorder) VolumeAccess() *gomock.Call

VolumeAccess indicates an expected call of VolumeAccess.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) Get

func (mr *MockStorageMockRecorder) Get(arg0 any) *gomock.Call

Get indicates an expected call of Get.

func (*MockStorageMockRecorder) Put

func (mr *MockStorageMockRecorder) Put(arg0, arg1, arg2 any) *gomock.Call

Put indicates an expected call of Put.

func (*MockStorageMockRecorder) PutAndCheckHash

func (mr *MockStorageMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3 any) *gomock.Call

PutAndCheckHash indicates an expected call of PutAndCheckHash.

func (*MockStorageMockRecorder) Remove

func (mr *MockStorageMockRecorder) Remove(arg0 any) *gomock.Call

Remove indicates an expected call of Remove.

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

func (m *MockUnit) AgentTools() (*tools.Tools, error)

AgentTools mocks base method.

func (*MockUnit) ApplicationName

func (m *MockUnit) ApplicationName() string

ApplicationName mocks base method.

func (*MockUnit) AssignWithPlacement

func (m *MockUnit) AssignWithPlacement(arg0 *instance.Placement) error

AssignWithPlacement mocks base method.

func (*MockUnit) AssignWithPolicy

func (m *MockUnit) AssignWithPolicy(arg0 state.AssignmentPolicy) error

AssignWithPolicy mocks base method.

func (*MockUnit) AssignedMachineId

func (m *MockUnit) AssignedMachineId() (string, error)

AssignedMachineId mocks base method.

func (*MockUnit) ContainerInfo

func (m *MockUnit) ContainerInfo() (state.CloudContainer, error)

ContainerInfo mocks base method.

func (*MockUnit) Destroy

func (m *MockUnit) Destroy() error

Destroy mocks base method.

func (*MockUnit) DestroyOperation

func (m *MockUnit) DestroyOperation() *state.DestroyUnitOperation

DestroyOperation 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) IsPrincipal

func (m *MockUnit) IsPrincipal() bool

IsPrincipal mocks base method.

func (*MockUnit) Life

func (m *MockUnit) Life() state.Life

Life mocks base method.

func (*MockUnit) Name

func (m *MockUnit) Name() string

Name mocks base method.

func (*MockUnit) Resolve

func (m *MockUnit) Resolve(arg0 bool) error

Resolve mocks base method.

func (*MockUnit) Tag

func (m *MockUnit) Tag() names.Tag

Tag mocks base method.

func (*MockUnit) UnitTag

func (m *MockUnit) UnitTag() names.UnitTag

UnitTag mocks base method.

func (*MockUnit) WorkloadVersion

func (m *MockUnit) WorkloadVersion() (string, error)

WorkloadVersion mocks base method.

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) AgentTools

func (mr *MockUnitMockRecorder) AgentTools() *gomock.Call

AgentTools indicates an expected call of AgentTools.

func (*MockUnitMockRecorder) ApplicationName

func (mr *MockUnitMockRecorder) ApplicationName() *gomock.Call

ApplicationName indicates an expected call of ApplicationName.

func (*MockUnitMockRecorder) AssignWithPlacement

func (mr *MockUnitMockRecorder) AssignWithPlacement(arg0 any) *gomock.Call

AssignWithPlacement indicates an expected call of AssignWithPlacement.

func (*MockUnitMockRecorder) AssignWithPolicy

func (mr *MockUnitMockRecorder) AssignWithPolicy(arg0 any) *gomock.Call

AssignWithPolicy indicates an expected call of AssignWithPolicy.

func (*MockUnitMockRecorder) AssignedMachineId

func (mr *MockUnitMockRecorder) AssignedMachineId() *gomock.Call

AssignedMachineId indicates an expected call of AssignedMachineId.

func (*MockUnitMockRecorder) ContainerInfo

func (mr *MockUnitMockRecorder) ContainerInfo() *gomock.Call

ContainerInfo indicates an expected call of ContainerInfo.

func (*MockUnitMockRecorder) Destroy

func (mr *MockUnitMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockUnitMockRecorder) DestroyOperation

func (mr *MockUnitMockRecorder) DestroyOperation() *gomock.Call

DestroyOperation indicates an expected call of DestroyOperation.

func (*MockUnitMockRecorder) IsPrincipal

func (mr *MockUnitMockRecorder) IsPrincipal() *gomock.Call

IsPrincipal indicates an expected call of IsPrincipal.

func (*MockUnitMockRecorder) Life

func (mr *MockUnitMockRecorder) Life() *gomock.Call

Life indicates an expected call of Life.

func (*MockUnitMockRecorder) Name

func (mr *MockUnitMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockUnitMockRecorder) Resolve

func (mr *MockUnitMockRecorder) Resolve(arg0 any) *gomock.Call

Resolve indicates an expected call of Resolve.

func (*MockUnitMockRecorder) Tag

func (mr *MockUnitMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag.

func (*MockUnitMockRecorder) UnitTag

func (mr *MockUnitMockRecorder) UnitTag() *gomock.Call

UnitTag indicates an expected call of UnitTag.

func (*MockUnitMockRecorder) WorkloadVersion

func (mr *MockUnitMockRecorder) WorkloadVersion() *gomock.Call

WorkloadVersion indicates an expected call of WorkloadVersion.

type MockUnitPortRanges

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

MockUnitPortRanges is a mock of UnitPortRanges interface.

func NewMockUnitPortRanges

func NewMockUnitPortRanges(ctrl *gomock.Controller) *MockUnitPortRanges

NewMockUnitPortRanges creates a new mock instance.

func (*MockUnitPortRanges) ByEndpoint

ByEndpoint mocks base method.

func (*MockUnitPortRanges) Changes

Changes mocks base method.

func (*MockUnitPortRanges) Close

func (m *MockUnitPortRanges) Close(arg0 string, arg1 network.PortRange)

Close mocks base method.

func (*MockUnitPortRanges) EXPECT

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

func (*MockUnitPortRanges) ForEndpoint

func (m *MockUnitPortRanges) ForEndpoint(arg0 string) []network.PortRange

ForEndpoint mocks base method.

func (*MockUnitPortRanges) Open

func (m *MockUnitPortRanges) Open(arg0 string, arg1 network.PortRange)

Open mocks base method.

func (*MockUnitPortRanges) UniquePortRanges

func (m *MockUnitPortRanges) UniquePortRanges() []network.PortRange

UniquePortRanges mocks base method.

func (*MockUnitPortRanges) UnitName

func (m *MockUnitPortRanges) UnitName() string

UnitName mocks base method.

type MockUnitPortRangesMockRecorder

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

MockUnitPortRangesMockRecorder is the mock recorder for MockUnitPortRanges.

func (*MockUnitPortRangesMockRecorder) ByEndpoint

func (mr *MockUnitPortRangesMockRecorder) ByEndpoint() *gomock.Call

ByEndpoint indicates an expected call of ByEndpoint.

func (*MockUnitPortRangesMockRecorder) Changes

Changes indicates an expected call of Changes.

func (*MockUnitPortRangesMockRecorder) Close

func (mr *MockUnitPortRangesMockRecorder) Close(arg0, arg1 any) *gomock.Call

Close indicates an expected call of Close.

func (*MockUnitPortRangesMockRecorder) ForEndpoint

func (mr *MockUnitPortRangesMockRecorder) ForEndpoint(arg0 any) *gomock.Call

ForEndpoint indicates an expected call of ForEndpoint.

func (*MockUnitPortRangesMockRecorder) Open

func (mr *MockUnitPortRangesMockRecorder) Open(arg0, arg1 any) *gomock.Call

Open indicates an expected call of Open.

func (*MockUnitPortRangesMockRecorder) UniquePortRanges

func (mr *MockUnitPortRangesMockRecorder) UniquePortRanges() *gomock.Call

UniquePortRanges indicates an expected call of UniquePortRanges.

func (*MockUnitPortRangesMockRecorder) UnitName

func (mr *MockUnitPortRangesMockRecorder) UnitName() *gomock.Call

UnitName indicates an expected call of UnitName.

Jump to

Keyboard shortcuts

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