mocks

package
v0.0.0-...-a753888 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 16 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.

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

AddOffer mocks base method.

func (*MockApplication) AddOpenedPortRange

func (m *MockApplication) AddOpenedPortRange(arg0 description.OpenedPortRangeArgs)

AddOpenedPortRange mocks base method.

func (*MockApplication) AddResource

AddResource mocks base method.

func (*MockApplication) AddUnit

AddUnit mocks base method.

func (*MockApplication) Annotations

func (m *MockApplication) Annotations() map[string]string

Annotations mocks base method.

func (*MockApplication) ApplicationConfig

func (m *MockApplication) ApplicationConfig() map[string]any

ApplicationConfig mocks base method.

func (*MockApplication) Channel

func (m *MockApplication) Channel() string

Channel mocks base method.

func (*MockApplication) CharmConfig

func (m *MockApplication) CharmConfig() map[string]any

CharmConfig mocks base method.

func (*MockApplication) CharmModifiedVersion

func (m *MockApplication) CharmModifiedVersion() int

CharmModifiedVersion mocks base method.

func (*MockApplication) CharmOrigin

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

CharmOrigin mocks base method.

func (*MockApplication) CharmURL

func (m *MockApplication) CharmURL() string

CharmURL mocks base method.

func (*MockApplication) CloudService

func (m *MockApplication) CloudService() description.CloudService

CloudService mocks base method.

func (*MockApplication) Constraints

func (m *MockApplication) Constraints() description.Constraints

Constraints mocks base method.

func (*MockApplication) DesiredScale

func (m *MockApplication) DesiredScale() int

DesiredScale 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() map[string]string

EndpointBindings mocks base method.

func (*MockApplication) Exposed

func (m *MockApplication) Exposed() bool

Exposed mocks base method.

func (*MockApplication) ExposedEndpoints

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

ExposedEndpoints mocks base method.

func (*MockApplication) ForceCharm

func (m *MockApplication) ForceCharm() bool

ForceCharm mocks base method.

func (*MockApplication) HasResources

func (m *MockApplication) HasResources() bool

HasResources mocks base method.

func (*MockApplication) Leader

func (m *MockApplication) Leader() string

Leader mocks base method.

func (*MockApplication) LeadershipSettings

func (m *MockApplication) LeadershipSettings() map[string]any

LeadershipSettings mocks base method.

func (*MockApplication) MetricsCredentials

func (m *MockApplication) MetricsCredentials() []byte

MetricsCredentials mocks base method.

func (*MockApplication) MinUnits

func (m *MockApplication) MinUnits() int

MinUnits mocks base method.

func (*MockApplication) Name

func (m *MockApplication) Name() string

Name mocks base method.

func (*MockApplication) Offers

Offers mocks base method.

func (*MockApplication) OpenedPortRanges

func (m *MockApplication) OpenedPortRanges() description.PortRanges

OpenedPortRanges mocks base method.

func (*MockApplication) OperatorStatus

func (m *MockApplication) OperatorStatus() description.Status

OperatorStatus mocks base method.

func (*MockApplication) PasswordHash

func (m *MockApplication) PasswordHash() string

PasswordHash mocks base method.

func (*MockApplication) Placement

func (m *MockApplication) Placement() string

Placement mocks base method.

func (*MockApplication) PodSpec

func (m *MockApplication) PodSpec() string

PodSpec mocks base method.

func (*MockApplication) ProvisioningState

func (m *MockApplication) ProvisioningState() description.ProvisioningState

ProvisioningState mocks base method.

func (*MockApplication) Resources

func (m *MockApplication) Resources() []description.Resource

Resources mocks base method.

func (*MockApplication) SetAnnotations

func (m *MockApplication) SetAnnotations(arg0 map[string]string)

SetAnnotations mocks base method.

func (*MockApplication) SetCharmOrigin

func (m *MockApplication) SetCharmOrigin(arg0 description.CharmOriginArgs)

SetCharmOrigin mocks base method.

func (*MockApplication) SetCloudService

func (m *MockApplication) SetCloudService(arg0 description.CloudServiceArgs)

SetCloudService mocks base method.

func (*MockApplication) SetConstraints

func (m *MockApplication) SetConstraints(arg0 description.ConstraintsArgs)

SetConstraints mocks base method.

func (*MockApplication) SetOperatorStatus

func (m *MockApplication) SetOperatorStatus(arg0 description.StatusArgs)

SetOperatorStatus mocks base method.

func (*MockApplication) SetStatus

func (m *MockApplication) SetStatus(arg0 description.StatusArgs)

SetStatus mocks base method.

func (*MockApplication) SetStatusHistory

func (m *MockApplication) SetStatusHistory(arg0 []description.StatusArgs)

SetStatusHistory mocks base method.

func (*MockApplication) SetTools

func (m *MockApplication) SetTools(arg0 description.AgentToolsArgs)

SetTools mocks base method.

func (*MockApplication) Status

func (m *MockApplication) Status() description.Status

Status mocks base method.

func (*MockApplication) StatusHistory

func (m *MockApplication) StatusHistory() []description.Status

StatusHistory mocks base method.

func (*MockApplication) StorageDirectives

func (m *MockApplication) StorageDirectives() map[string]description.StorageDirective

StorageDirectives mocks base method.

func (*MockApplication) Subordinate

func (m *MockApplication) Subordinate() bool

Subordinate mocks base method.

func (*MockApplication) Tag

Tag mocks base method.

func (*MockApplication) Tools

Tools mocks base method.

func (*MockApplication) Type

func (m *MockApplication) Type() string

Type mocks base method.

func (*MockApplication) Units

func (m *MockApplication) Units() []description.Unit

Units mocks base method.

func (*MockApplication) Validate

func (m *MockApplication) Validate() error

Validate mocks base method.

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) AddOffer

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

AddOffer indicates an expected call of AddOffer.

func (*MockApplicationMockRecorder) AddOpenedPortRange

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

AddOpenedPortRange indicates an expected call of AddOpenedPortRange.

func (*MockApplicationMockRecorder) AddResource

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

AddResource indicates an expected call of AddResource.

func (*MockApplicationMockRecorder) AddUnit

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

AddUnit indicates an expected call of AddUnit.

func (*MockApplicationMockRecorder) Annotations

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

Annotations indicates an expected call of Annotations.

func (*MockApplicationMockRecorder) ApplicationConfig

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

ApplicationConfig indicates an expected call of ApplicationConfig.

func (*MockApplicationMockRecorder) Channel

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

Channel indicates an expected call of Channel.

func (*MockApplicationMockRecorder) CharmConfig

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

CharmConfig indicates an expected call of CharmConfig.

func (*MockApplicationMockRecorder) CharmModifiedVersion

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

CharmModifiedVersion indicates an expected call of CharmModifiedVersion.

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

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

CloudService indicates an expected call of CloudService.

func (*MockApplicationMockRecorder) Constraints

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

Constraints indicates an expected call of Constraints.

func (*MockApplicationMockRecorder) DesiredScale

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

DesiredScale indicates an expected call of DesiredScale.

func (*MockApplicationMockRecorder) EndpointBindings

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

EndpointBindings indicates an expected call of EndpointBindings.

func (*MockApplicationMockRecorder) Exposed

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

Exposed indicates an expected call of Exposed.

func (*MockApplicationMockRecorder) ExposedEndpoints

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

ExposedEndpoints indicates an expected call of ExposedEndpoints.

func (*MockApplicationMockRecorder) ForceCharm

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

ForceCharm indicates an expected call of ForceCharm.

func (*MockApplicationMockRecorder) HasResources

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

HasResources indicates an expected call of HasResources.

func (*MockApplicationMockRecorder) Leader

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

Leader indicates an expected call of Leader.

func (*MockApplicationMockRecorder) LeadershipSettings

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

LeadershipSettings indicates an expected call of LeadershipSettings.

func (*MockApplicationMockRecorder) MetricsCredentials

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

MetricsCredentials indicates an expected call of MetricsCredentials.

func (*MockApplicationMockRecorder) MinUnits

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

MinUnits indicates an expected call of MinUnits.

func (*MockApplicationMockRecorder) Name

Name indicates an expected call of Name.

func (*MockApplicationMockRecorder) Offers

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

Offers indicates an expected call of Offers.

func (*MockApplicationMockRecorder) OpenedPortRanges

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

OpenedPortRanges indicates an expected call of OpenedPortRanges.

func (*MockApplicationMockRecorder) OperatorStatus

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

OperatorStatus indicates an expected call of OperatorStatus.

func (*MockApplicationMockRecorder) PasswordHash

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

PasswordHash indicates an expected call of PasswordHash.

func (*MockApplicationMockRecorder) Placement

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

Placement indicates an expected call of Placement.

func (*MockApplicationMockRecorder) PodSpec

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

PodSpec indicates an expected call of PodSpec.

func (*MockApplicationMockRecorder) ProvisioningState

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

ProvisioningState indicates an expected call of ProvisioningState.

func (*MockApplicationMockRecorder) Resources

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

Resources indicates an expected call of Resources.

func (*MockApplicationMockRecorder) SetAnnotations

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

SetAnnotations indicates an expected call of SetAnnotations.

func (*MockApplicationMockRecorder) SetCharmOrigin

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

SetCharmOrigin indicates an expected call of SetCharmOrigin.

func (*MockApplicationMockRecorder) SetCloudService

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

SetCloudService indicates an expected call of SetCloudService.

func (*MockApplicationMockRecorder) SetConstraints

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

SetConstraints indicates an expected call of SetConstraints.

func (*MockApplicationMockRecorder) SetOperatorStatus

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

SetOperatorStatus indicates an expected call of SetOperatorStatus.

func (*MockApplicationMockRecorder) SetStatus

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

SetStatus indicates an expected call of SetStatus.

func (*MockApplicationMockRecorder) SetStatusHistory

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

SetStatusHistory indicates an expected call of SetStatusHistory.

func (*MockApplicationMockRecorder) SetTools

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

SetTools indicates an expected call of SetTools.

func (*MockApplicationMockRecorder) Status

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

Status indicates an expected call of Status.

func (*MockApplicationMockRecorder) StatusHistory

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

StatusHistory indicates an expected call of StatusHistory.

func (*MockApplicationMockRecorder) StorageDirectives

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

StorageDirectives indicates an expected call of StorageDirectives.

func (*MockApplicationMockRecorder) Subordinate

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

Subordinate indicates an expected call of Subordinate.

func (*MockApplicationMockRecorder) Tag

Tag indicates an expected call of Tag.

func (*MockApplicationMockRecorder) Tools

Tools indicates an expected call of Tools.

func (*MockApplicationMockRecorder) Type

Type indicates an expected call of Type.

func (*MockApplicationMockRecorder) Units

Units indicates an expected call of Units.

func (*MockApplicationMockRecorder) Validate

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

Validate indicates an expected call of Validate.

type MockApplicationPortRanges

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

MockApplicationPortRanges is a mock of ApplicationPortRanges interface.

func NewMockApplicationPortRanges

func NewMockApplicationPortRanges(ctrl *gomock.Controller) *MockApplicationPortRanges

NewMockApplicationPortRanges creates a new mock instance.

func (*MockApplicationPortRanges) ApplicationName

func (m *MockApplicationPortRanges) ApplicationName() string

ApplicationName mocks base method.

func (*MockApplicationPortRanges) ByEndpoint

ByEndpoint mocks base method.

func (*MockApplicationPortRanges) ByUnit

ByUnit mocks base method.

func (*MockApplicationPortRanges) Changes

Changes mocks base method.

func (*MockApplicationPortRanges) EXPECT

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

func (*MockApplicationPortRanges) ForUnit

ForUnit mocks base method.

func (*MockApplicationPortRanges) UniquePortRanges

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

UniquePortRanges mocks base method.

type MockApplicationPortRangesMockRecorder

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

MockApplicationPortRangesMockRecorder is the mock recorder for MockApplicationPortRanges.

func (*MockApplicationPortRangesMockRecorder) ApplicationName

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

ApplicationName indicates an expected call of ApplicationName.

func (*MockApplicationPortRangesMockRecorder) ByEndpoint

ByEndpoint indicates an expected call of ByEndpoint.

func (*MockApplicationPortRangesMockRecorder) ByUnit

ByUnit indicates an expected call of ByUnit.

func (*MockApplicationPortRangesMockRecorder) Changes

Changes indicates an expected call of Changes.

func (*MockApplicationPortRangesMockRecorder) ForUnit

ForUnit indicates an expected call of ForUnit.

func (*MockApplicationPortRangesMockRecorder) UniquePortRanges

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

UniquePortRanges indicates an expected call of UniquePortRanges.

type MockBaseWatcher

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

MockBaseWatcher is a mock of BaseWatcher interface.

func NewMockBaseWatcher

func NewMockBaseWatcher(ctrl *gomock.Controller) *MockBaseWatcher

NewMockBaseWatcher creates a new mock instance.

func (*MockBaseWatcher) Dead

func (m *MockBaseWatcher) Dead() <-chan struct{}

Dead mocks base method.

func (*MockBaseWatcher) EXPECT

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

func (*MockBaseWatcher) Err

func (m *MockBaseWatcher) Err() error

Err mocks base method.

func (*MockBaseWatcher) Kill

func (m *MockBaseWatcher) Kill()

Kill mocks base method.

func (*MockBaseWatcher) Unwatch

func (m *MockBaseWatcher) Unwatch(arg0 string, arg1 any, arg2 chan<- watcher.Change)

Unwatch mocks base method.

func (*MockBaseWatcher) UnwatchCollection

func (m *MockBaseWatcher) UnwatchCollection(arg0 string, arg1 chan<- watcher.Change)

UnwatchCollection mocks base method.

func (*MockBaseWatcher) Wait

func (m *MockBaseWatcher) Wait() error

Wait mocks base method.

func (*MockBaseWatcher) Watch

func (m *MockBaseWatcher) Watch(arg0 string, arg1 any, arg2 chan<- watcher.Change)

Watch mocks base method.

func (*MockBaseWatcher) WatchCollection

func (m *MockBaseWatcher) WatchCollection(arg0 string, arg1 chan<- watcher.Change)

WatchCollection mocks base method.

func (*MockBaseWatcher) WatchCollectionWithFilter

func (m *MockBaseWatcher) WatchCollectionWithFilter(arg0 string, arg1 chan<- watcher.Change, arg2 func(any) bool)

WatchCollectionWithFilter mocks base method.

func (*MockBaseWatcher) WatchMulti

func (m *MockBaseWatcher) WatchMulti(arg0 string, arg1 []any, arg2 chan<- watcher.Change) error

WatchMulti mocks base method.

type MockBaseWatcherMockRecorder

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

MockBaseWatcherMockRecorder is the mock recorder for MockBaseWatcher.

func (*MockBaseWatcherMockRecorder) Dead

Dead indicates an expected call of Dead.

func (*MockBaseWatcherMockRecorder) Err

Err indicates an expected call of Err.

func (*MockBaseWatcherMockRecorder) Kill

Kill indicates an expected call of Kill.

func (*MockBaseWatcherMockRecorder) Unwatch

func (mr *MockBaseWatcherMockRecorder) Unwatch(arg0, arg1, arg2 any) *gomock.Call

Unwatch indicates an expected call of Unwatch.

func (*MockBaseWatcherMockRecorder) UnwatchCollection

func (mr *MockBaseWatcherMockRecorder) UnwatchCollection(arg0, arg1 any) *gomock.Call

UnwatchCollection indicates an expected call of UnwatchCollection.

func (*MockBaseWatcherMockRecorder) Wait

Wait indicates an expected call of Wait.

func (*MockBaseWatcherMockRecorder) Watch

func (mr *MockBaseWatcherMockRecorder) Watch(arg0, arg1, arg2 any) *gomock.Call

Watch indicates an expected call of Watch.

func (*MockBaseWatcherMockRecorder) WatchCollection

func (mr *MockBaseWatcherMockRecorder) WatchCollection(arg0, arg1 any) *gomock.Call

WatchCollection indicates an expected call of WatchCollection.

func (*MockBaseWatcherMockRecorder) WatchCollectionWithFilter

func (mr *MockBaseWatcherMockRecorder) WatchCollectionWithFilter(arg0, arg1, arg2 any) *gomock.Call

WatchCollectionWithFilter indicates an expected call of WatchCollectionWithFilter.

func (*MockBaseWatcherMockRecorder) WatchMulti

func (mr *MockBaseWatcherMockRecorder) WatchMulti(arg0, arg1, arg2 any) *gomock.Call

WatchMulti indicates an expected call of WatchMulti.

type MockClock

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

MockClock is a mock of Clock interface.

func NewMockClock

func NewMockClock(ctrl *gomock.Controller) *MockClock

NewMockClock creates a new mock instance.

func (*MockClock) After

func (m *MockClock) After(arg0 time.Duration) <-chan time.Time

After mocks base method.

func (*MockClock) AfterFunc

func (m *MockClock) AfterFunc(arg0 time.Duration, arg1 func()) clock.Timer

AfterFunc mocks base method.

func (*MockClock) EXPECT

func (m *MockClock) EXPECT() *MockClockMockRecorder

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

func (*MockClock) NewTimer

func (m *MockClock) NewTimer(arg0 time.Duration) clock.Timer

NewTimer mocks base method.

func (*MockClock) Now

func (m *MockClock) Now() time.Time

Now mocks base method.

type MockClockMockRecorder

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

MockClockMockRecorder is the mock recorder for MockClock.

func (*MockClockMockRecorder) After

func (mr *MockClockMockRecorder) After(arg0 any) *gomock.Call

After indicates an expected call of After.

func (*MockClockMockRecorder) AfterFunc

func (mr *MockClockMockRecorder) AfterFunc(arg0, arg1 any) *gomock.Call

AfterFunc indicates an expected call of AfterFunc.

func (*MockClockMockRecorder) NewTimer

func (mr *MockClockMockRecorder) NewTimer(arg0 any) *gomock.Call

NewTimer indicates an expected call of NewTimer.

func (*MockClockMockRecorder) Now

func (mr *MockClockMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

type MockCollection

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

MockCollection is a mock of Collection interface.

func NewMockCollection

func NewMockCollection(ctrl *gomock.Controller) *MockCollection

NewMockCollection creates a new mock instance.

func (*MockCollection) Count

func (m *MockCollection) Count() (int, error)

Count mocks base method.

func (*MockCollection) EXPECT

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

func (*MockCollection) Find

func (m *MockCollection) Find(arg0 any) mongo.Query

Find mocks base method.

func (*MockCollection) FindId

func (m *MockCollection) FindId(arg0 any) mongo.Query

FindId mocks base method.

func (*MockCollection) Name

func (m *MockCollection) Name() string

Name mocks base method.

func (*MockCollection) Pipe

func (m *MockCollection) Pipe(arg0 any) *mgo.Pipe

Pipe mocks base method.

func (*MockCollection) Writeable

func (m *MockCollection) Writeable() mongo.WriteCollection

Writeable mocks base method.

type MockCollectionMockRecorder

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

MockCollectionMockRecorder is the mock recorder for MockCollection.

func (*MockCollectionMockRecorder) Count

func (mr *MockCollectionMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(arg0 any) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionMockRecorder) FindId

func (mr *MockCollectionMockRecorder) FindId(arg0 any) *gomock.Call

FindId indicates an expected call of FindId.

func (*MockCollectionMockRecorder) Name

Name indicates an expected call of Name.

func (*MockCollectionMockRecorder) Pipe

func (mr *MockCollectionMockRecorder) Pipe(arg0 any) *gomock.Call

Pipe indicates an expected call of Pipe.

func (*MockCollectionMockRecorder) Writeable

func (mr *MockCollectionMockRecorder) Writeable() *gomock.Call

Writeable indicates an expected call of Writeable.

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) Copy

Copy mocks base method.

func (*MockDatabase) CopyForModel

func (m *MockDatabase) CopyForModel(arg0 string) (state.Database, state.SessionCloser)

CopyForModel mocks base method.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) GetCollection

func (m *MockDatabase) GetCollection(arg0 string) (mongo.Collection, state.SessionCloser)

GetCollection mocks base method.

func (*MockDatabase) GetCollectionFor

func (m *MockDatabase) GetCollectionFor(arg0, arg1 string) (mongo.Collection, state.SessionCloser)

GetCollectionFor mocks base method.

func (*MockDatabase) GetRawCollection

func (m *MockDatabase) GetRawCollection(arg0 string) (*mgo.Collection, state.SessionCloser)

GetRawCollection mocks base method.

func (*MockDatabase) Run

Run mocks base method.

func (*MockDatabase) RunRaw

func (m *MockDatabase) RunRaw(arg0 txn0.TransactionSource) error

RunRaw mocks base method.

func (*MockDatabase) RunRawTransaction

func (m *MockDatabase) RunRawTransaction(arg0 []txn.Op) error

RunRawTransaction mocks base method.

func (*MockDatabase) RunTransaction

func (m *MockDatabase) RunTransaction(arg0 []txn.Op) error

RunTransaction mocks base method.

func (*MockDatabase) RunTransactionFor

func (m *MockDatabase) RunTransactionFor(arg0 string, arg1 []txn.Op) error

RunTransactionFor mocks base method.

func (*MockDatabase) Schema

func (m *MockDatabase) Schema() state.CollectionSchema

Schema mocks base method.

func (*MockDatabase) TransactionRunner

func (m *MockDatabase) TransactionRunner() (txn0.Runner, state.SessionCloser)

TransactionRunner mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Copy

func (mr *MockDatabaseMockRecorder) Copy() *gomock.Call

Copy indicates an expected call of Copy.

func (*MockDatabaseMockRecorder) CopyForModel

func (mr *MockDatabaseMockRecorder) CopyForModel(arg0 any) *gomock.Call

CopyForModel indicates an expected call of CopyForModel.

func (*MockDatabaseMockRecorder) GetCollection

func (mr *MockDatabaseMockRecorder) GetCollection(arg0 any) *gomock.Call

GetCollection indicates an expected call of GetCollection.

func (*MockDatabaseMockRecorder) GetCollectionFor

func (mr *MockDatabaseMockRecorder) GetCollectionFor(arg0, arg1 any) *gomock.Call

GetCollectionFor indicates an expected call of GetCollectionFor.

func (*MockDatabaseMockRecorder) GetRawCollection

func (mr *MockDatabaseMockRecorder) GetRawCollection(arg0 any) *gomock.Call

GetRawCollection indicates an expected call of GetRawCollection.

func (*MockDatabaseMockRecorder) Run

func (mr *MockDatabaseMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockDatabaseMockRecorder) RunRaw

func (mr *MockDatabaseMockRecorder) RunRaw(arg0 any) *gomock.Call

RunRaw indicates an expected call of RunRaw.

func (*MockDatabaseMockRecorder) RunRawTransaction

func (mr *MockDatabaseMockRecorder) RunRawTransaction(arg0 any) *gomock.Call

RunRawTransaction indicates an expected call of RunRawTransaction.

func (*MockDatabaseMockRecorder) RunTransaction

func (mr *MockDatabaseMockRecorder) RunTransaction(arg0 any) *gomock.Call

RunTransaction indicates an expected call of RunTransaction.

func (*MockDatabaseMockRecorder) RunTransactionFor

func (mr *MockDatabaseMockRecorder) RunTransactionFor(arg0, arg1 any) *gomock.Call

RunTransactionFor indicates an expected call of RunTransactionFor.

func (*MockDatabaseMockRecorder) Schema

func (mr *MockDatabaseMockRecorder) Schema() *gomock.Call

Schema indicates an expected call of Schema.

func (*MockDatabaseMockRecorder) TransactionRunner

func (mr *MockDatabaseMockRecorder) TransactionRunner() *gomock.Call

TransactionRunner indicates an expected call of TransactionRunner.

type MockEndpointBinding

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

MockEndpointBinding is a mock of EndpointBinding interface.

func NewMockEndpointBinding

func NewMockEndpointBinding(ctrl *gomock.Controller) *MockEndpointBinding

NewMockEndpointBinding creates a new mock instance.

func (*MockEndpointBinding) AllSpaceInfos

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

AllSpaceInfos mocks base method.

func (*MockEndpointBinding) DefaultEndpointBindingSpace

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

DefaultEndpointBindingSpace mocks base method.

func (*MockEndpointBinding) EXPECT

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

func (*MockEndpointBinding) Space

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

Space mocks base method.

type MockEndpointBindingMockRecorder

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

MockEndpointBindingMockRecorder is the mock recorder for MockEndpointBinding.

func (*MockEndpointBindingMockRecorder) AllSpaceInfos

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

AllSpaceInfos indicates an expected call of AllSpaceInfos.

func (*MockEndpointBindingMockRecorder) DefaultEndpointBindingSpace

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

DefaultEndpointBindingSpace indicates an expected call of DefaultEndpointBindingSpace.

func (*MockEndpointBindingMockRecorder) Space

Space indicates an expected call of Space.

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

AddBlockDevice mocks base method.

func (*MockMachine) AddContainer

func (m *MockMachine) AddContainer(arg0 description.MachineArgs) description.Machine

AddContainer mocks base method.

func (*MockMachine) AddOpenedPortRange

func (m *MockMachine) AddOpenedPortRange(arg0 description.OpenedPortRangeArgs)

AddOpenedPortRange mocks base method.

func (*MockMachine) Annotations

func (m *MockMachine) Annotations() map[string]string

Annotations mocks base method.

func (*MockMachine) Base

func (m *MockMachine) Base() string

Base mocks base method.

func (*MockMachine) BlockDevices

func (m *MockMachine) BlockDevices() []description.BlockDevice

BlockDevices mocks base method.

func (*MockMachine) Constraints

func (m *MockMachine) Constraints() description.Constraints

Constraints mocks base method.

func (*MockMachine) ContainerType

func (m *MockMachine) ContainerType() string

ContainerType mocks base method.

func (*MockMachine) Containers

func (m *MockMachine) Containers() []description.Machine

Containers 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) Id

func (m *MockMachine) Id() string

Id mocks base method.

func (*MockMachine) Instance

func (m *MockMachine) Instance() description.CloudInstance

Instance mocks base method.

func (*MockMachine) Jobs

func (m *MockMachine) Jobs() []string

Jobs mocks base method.

func (*MockMachine) MachineAddresses

func (m *MockMachine) MachineAddresses() []description.Address

MachineAddresses mocks base method.

func (*MockMachine) Nonce

func (m *MockMachine) Nonce() string

Nonce mocks base method.

func (*MockMachine) OpenedPortRanges

func (m *MockMachine) OpenedPortRanges() description.PortRanges

OpenedPortRanges mocks base method.

func (*MockMachine) PasswordHash

func (m *MockMachine) PasswordHash() string

PasswordHash mocks base method.

func (*MockMachine) Placement

func (m *MockMachine) Placement() string

Placement mocks base method.

func (*MockMachine) PreferredPrivateAddress

func (m *MockMachine) PreferredPrivateAddress() description.Address

PreferredPrivateAddress mocks base method.

func (*MockMachine) PreferredPublicAddress

func (m *MockMachine) PreferredPublicAddress() description.Address

PreferredPublicAddress mocks base method.

func (*MockMachine) ProviderAddresses

func (m *MockMachine) ProviderAddresses() []description.Address

ProviderAddresses mocks base method.

func (*MockMachine) SetAddresses

func (m *MockMachine) SetAddresses(arg0, arg1 []description.AddressArgs)

SetAddresses mocks base method.

func (*MockMachine) SetAnnotations

func (m *MockMachine) SetAnnotations(arg0 map[string]string)

SetAnnotations mocks base method.

func (*MockMachine) SetConstraints

func (m *MockMachine) SetConstraints(arg0 description.ConstraintsArgs)

SetConstraints mocks base method.

func (*MockMachine) SetInstance

func (m *MockMachine) SetInstance(arg0 description.CloudInstanceArgs)

SetInstance mocks base method.

func (*MockMachine) SetPreferredAddresses

func (m *MockMachine) SetPreferredAddresses(arg0, arg1 description.AddressArgs)

SetPreferredAddresses mocks base method.

func (*MockMachine) SetStatus

func (m *MockMachine) SetStatus(arg0 description.StatusArgs)

SetStatus mocks base method.

func (*MockMachine) SetStatusHistory

func (m *MockMachine) SetStatusHistory(arg0 []description.StatusArgs)

SetStatusHistory mocks base method.

func (*MockMachine) SetTools

func (m *MockMachine) SetTools(arg0 description.AgentToolsArgs)

SetTools mocks base method.

func (*MockMachine) Status

func (m *MockMachine) Status() description.Status

Status mocks base method.

func (*MockMachine) StatusHistory

func (m *MockMachine) StatusHistory() []description.Status

StatusHistory mocks base method.

func (*MockMachine) SupportedContainers

func (m *MockMachine) SupportedContainers() ([]string, bool)

SupportedContainers mocks base method.

func (*MockMachine) Tag

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

Tag mocks base method.

func (*MockMachine) Tools

func (m *MockMachine) Tools() description.AgentTools

Tools mocks base method.

func (*MockMachine) Validate

func (m *MockMachine) Validate() error

Validate mocks base method.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) AddBlockDevice

func (mr *MockMachineMockRecorder) AddBlockDevice(arg0 any) *gomock.Call

AddBlockDevice indicates an expected call of AddBlockDevice.

func (*MockMachineMockRecorder) AddContainer

func (mr *MockMachineMockRecorder) AddContainer(arg0 any) *gomock.Call

AddContainer indicates an expected call of AddContainer.

func (*MockMachineMockRecorder) AddOpenedPortRange

func (mr *MockMachineMockRecorder) AddOpenedPortRange(arg0 any) *gomock.Call

AddOpenedPortRange indicates an expected call of AddOpenedPortRange.

func (*MockMachineMockRecorder) Annotations

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

Annotations indicates an expected call of Annotations.

func (*MockMachineMockRecorder) Base

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

Base indicates an expected call of Base.

func (*MockMachineMockRecorder) BlockDevices

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

BlockDevices indicates an expected call of BlockDevices.

func (*MockMachineMockRecorder) Constraints

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

Constraints indicates an expected call of Constraints.

func (*MockMachineMockRecorder) ContainerType

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

ContainerType indicates an expected call of ContainerType.

func (*MockMachineMockRecorder) Containers

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

Containers indicates an expected call of Containers.

func (*MockMachineMockRecorder) Id

Id indicates an expected call of Id.

func (*MockMachineMockRecorder) Instance

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

Instance indicates an expected call of Instance.

func (*MockMachineMockRecorder) Jobs

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

Jobs indicates an expected call of Jobs.

func (*MockMachineMockRecorder) MachineAddresses

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

MachineAddresses indicates an expected call of MachineAddresses.

func (*MockMachineMockRecorder) Nonce

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

Nonce indicates an expected call of Nonce.

func (*MockMachineMockRecorder) OpenedPortRanges

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

OpenedPortRanges indicates an expected call of OpenedPortRanges.

func (*MockMachineMockRecorder) PasswordHash

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

PasswordHash indicates an expected call of PasswordHash.

func (*MockMachineMockRecorder) Placement

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

Placement indicates an expected call of Placement.

func (*MockMachineMockRecorder) PreferredPrivateAddress

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

PreferredPrivateAddress indicates an expected call of PreferredPrivateAddress.

func (*MockMachineMockRecorder) PreferredPublicAddress

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

PreferredPublicAddress indicates an expected call of PreferredPublicAddress.

func (*MockMachineMockRecorder) ProviderAddresses

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

ProviderAddresses indicates an expected call of ProviderAddresses.

func (*MockMachineMockRecorder) SetAddresses

func (mr *MockMachineMockRecorder) SetAddresses(arg0, arg1 any) *gomock.Call

SetAddresses indicates an expected call of SetAddresses.

func (*MockMachineMockRecorder) SetAnnotations

func (mr *MockMachineMockRecorder) SetAnnotations(arg0 any) *gomock.Call

SetAnnotations indicates an expected call of SetAnnotations.

func (*MockMachineMockRecorder) SetConstraints

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

SetConstraints indicates an expected call of SetConstraints.

func (*MockMachineMockRecorder) SetInstance

func (mr *MockMachineMockRecorder) SetInstance(arg0 any) *gomock.Call

SetInstance indicates an expected call of SetInstance.

func (*MockMachineMockRecorder) SetPreferredAddresses

func (mr *MockMachineMockRecorder) SetPreferredAddresses(arg0, arg1 any) *gomock.Call

SetPreferredAddresses indicates an expected call of SetPreferredAddresses.

func (*MockMachineMockRecorder) SetStatus

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

SetStatus indicates an expected call of SetStatus.

func (*MockMachineMockRecorder) SetStatusHistory

func (mr *MockMachineMockRecorder) SetStatusHistory(arg0 any) *gomock.Call

SetStatusHistory indicates an expected call of SetStatusHistory.

func (*MockMachineMockRecorder) SetTools

func (mr *MockMachineMockRecorder) SetTools(arg0 any) *gomock.Call

SetTools indicates an expected call of SetTools.

func (*MockMachineMockRecorder) Status

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

Status indicates an expected call of Status.

func (*MockMachineMockRecorder) StatusHistory

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

StatusHistory indicates an expected call of StatusHistory.

func (*MockMachineMockRecorder) SupportedContainers

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

SupportedContainers indicates an expected call of SupportedContainers.

func (*MockMachineMockRecorder) Tag

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

Tag indicates an expected call of Tag.

func (*MockMachineMockRecorder) Tools

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

Tools indicates an expected call of Tools.

func (*MockMachineMockRecorder) Validate

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

Validate indicates an expected call of Validate.

type MockModelOperation

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

MockModelOperation is a mock of ModelOperation interface.

func NewMockModelOperation

func NewMockModelOperation(ctrl *gomock.Controller) *MockModelOperation

NewMockModelOperation creates a new mock instance.

func (*MockModelOperation) Build

func (m *MockModelOperation) Build(arg0 int) ([]txn.Op, error)

Build mocks base method.

func (*MockModelOperation) Done

func (m *MockModelOperation) Done(arg0 error) error

Done mocks base method.

func (*MockModelOperation) EXPECT

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

type MockModelOperationMockRecorder

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

MockModelOperationMockRecorder is the mock recorder for MockModelOperation.

func (*MockModelOperationMockRecorder) Build

func (mr *MockModelOperationMockRecorder) Build(arg0 any) *gomock.Call

Build indicates an expected call of Build.

func (*MockModelOperationMockRecorder) Done

Done indicates an expected call of Done.

type MockPortRanges

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

MockPortRanges is a mock of PortRanges interface.

func NewMockPortRanges

func NewMockPortRanges(ctrl *gomock.Controller) *MockPortRanges

NewMockPortRanges creates a new mock instance.

func (*MockPortRanges) ByUnit

ByUnit mocks base method.

func (*MockPortRanges) EXPECT

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

type MockPortRangesMockRecorder

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

MockPortRangesMockRecorder is the mock recorder for MockPortRanges.

func (*MockPortRangesMockRecorder) ByUnit

func (mr *MockPortRangesMockRecorder) ByUnit() *gomock.Call

ByUnit indicates an expected call of ByUnit.

type MockQuery

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

MockQuery is a mock of Query interface.

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance.

func (*MockQuery) All

func (m *MockQuery) All(arg0 any) error

All mocks base method.

func (*MockQuery) Apply

func (m *MockQuery) Apply(arg0 mgo.Change, arg1 any) (*mgo.ChangeInfo, error)

Apply mocks base method.

func (*MockQuery) Batch

func (m *MockQuery) Batch(arg0 int) mongo.Query

Batch mocks base method.

func (*MockQuery) Comment

func (m *MockQuery) Comment(arg0 string) mongo.Query

Comment mocks base method.

func (*MockQuery) Count

func (m *MockQuery) Count() (int, error)

Count mocks base method.

func (*MockQuery) Distinct

func (m *MockQuery) Distinct(arg0 string, arg1 any) error

Distinct mocks base method.

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

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

func (*MockQuery) Explain

func (m *MockQuery) Explain(arg0 any) error

Explain mocks base method.

func (*MockQuery) For

func (m *MockQuery) For(arg0 any, arg1 func() error) error

For mocks base method.

func (*MockQuery) Hint

func (m *MockQuery) Hint(arg0 ...string) mongo.Query

Hint mocks base method.

func (*MockQuery) Iter

func (m *MockQuery) Iter() mongo.Iterator

Iter mocks base method.

func (*MockQuery) Limit

func (m *MockQuery) Limit(arg0 int) mongo.Query

Limit mocks base method.

func (*MockQuery) LogReplay

func (m *MockQuery) LogReplay() mongo.Query

LogReplay mocks base method.

func (*MockQuery) MapReduce

func (m *MockQuery) MapReduce(arg0 *mgo.MapReduce, arg1 any) (*mgo.MapReduceInfo, error)

MapReduce mocks base method.

func (*MockQuery) One

func (m *MockQuery) One(arg0 any) error

One mocks base method.

func (*MockQuery) Prefetch

func (m *MockQuery) Prefetch(arg0 float64) mongo.Query

Prefetch mocks base method.

func (*MockQuery) Select

func (m *MockQuery) Select(arg0 any) mongo.Query

Select mocks base method.

func (*MockQuery) SetMaxScan

func (m *MockQuery) SetMaxScan(arg0 int) mongo.Query

SetMaxScan mocks base method.

func (*MockQuery) SetMaxTime

func (m *MockQuery) SetMaxTime(arg0 time.Duration) mongo.Query

SetMaxTime mocks base method.

func (*MockQuery) Skip

func (m *MockQuery) Skip(arg0 int) mongo.Query

Skip mocks base method.

func (*MockQuery) Snapshot

func (m *MockQuery) Snapshot() mongo.Query

Snapshot mocks base method.

func (*MockQuery) Sort

func (m *MockQuery) Sort(arg0 ...string) mongo.Query

Sort mocks base method.

func (*MockQuery) Tail

func (m *MockQuery) Tail(arg0 time.Duration) *mgo.Iter

Tail mocks base method.

type MockQueryMockRecorder

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

MockQueryMockRecorder is the mock recorder for MockQuery.

func (*MockQueryMockRecorder) All

func (mr *MockQueryMockRecorder) All(arg0 any) *gomock.Call

All indicates an expected call of All.

func (*MockQueryMockRecorder) Apply

func (mr *MockQueryMockRecorder) Apply(arg0, arg1 any) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockQueryMockRecorder) Batch

func (mr *MockQueryMockRecorder) Batch(arg0 any) *gomock.Call

Batch indicates an expected call of Batch.

func (*MockQueryMockRecorder) Comment

func (mr *MockQueryMockRecorder) Comment(arg0 any) *gomock.Call

Comment indicates an expected call of Comment.

func (*MockQueryMockRecorder) Count

func (mr *MockQueryMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockQueryMockRecorder) Distinct

func (mr *MockQueryMockRecorder) Distinct(arg0, arg1 any) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockQueryMockRecorder) Explain

func (mr *MockQueryMockRecorder) Explain(arg0 any) *gomock.Call

Explain indicates an expected call of Explain.

func (*MockQueryMockRecorder) For

func (mr *MockQueryMockRecorder) For(arg0, arg1 any) *gomock.Call

For indicates an expected call of For.

func (*MockQueryMockRecorder) Hint

func (mr *MockQueryMockRecorder) Hint(arg0 ...any) *gomock.Call

Hint indicates an expected call of Hint.

func (*MockQueryMockRecorder) Iter

func (mr *MockQueryMockRecorder) Iter() *gomock.Call

Iter indicates an expected call of Iter.

func (*MockQueryMockRecorder) Limit

func (mr *MockQueryMockRecorder) Limit(arg0 any) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockQueryMockRecorder) LogReplay

func (mr *MockQueryMockRecorder) LogReplay() *gomock.Call

LogReplay indicates an expected call of LogReplay.

func (*MockQueryMockRecorder) MapReduce

func (mr *MockQueryMockRecorder) MapReduce(arg0, arg1 any) *gomock.Call

MapReduce indicates an expected call of MapReduce.

func (*MockQueryMockRecorder) One

func (mr *MockQueryMockRecorder) One(arg0 any) *gomock.Call

One indicates an expected call of One.

func (*MockQueryMockRecorder) Prefetch

func (mr *MockQueryMockRecorder) Prefetch(arg0 any) *gomock.Call

Prefetch indicates an expected call of Prefetch.

func (*MockQueryMockRecorder) Select

func (mr *MockQueryMockRecorder) Select(arg0 any) *gomock.Call

Select indicates an expected call of Select.

func (*MockQueryMockRecorder) SetMaxScan

func (mr *MockQueryMockRecorder) SetMaxScan(arg0 any) *gomock.Call

SetMaxScan indicates an expected call of SetMaxScan.

func (*MockQueryMockRecorder) SetMaxTime

func (mr *MockQueryMockRecorder) SetMaxTime(arg0 any) *gomock.Call

SetMaxTime indicates an expected call of SetMaxTime.

func (*MockQueryMockRecorder) Skip

func (mr *MockQueryMockRecorder) Skip(arg0 any) *gomock.Call

Skip indicates an expected call of Skip.

func (*MockQueryMockRecorder) Snapshot

func (mr *MockQueryMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot.

func (*MockQueryMockRecorder) Sort

func (mr *MockQueryMockRecorder) Sort(arg0 ...any) *gomock.Call

Sort indicates an expected call of Sort.

func (*MockQueryMockRecorder) Tail

func (mr *MockQueryMockRecorder) Tail(arg0 any) *gomock.Call

Tail indicates an expected call of Tail.

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

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

AddPendingResource mocks base method.

func (*MockResources) EXPECT

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

func (*MockResources) GetPendingResource

func (m *MockResources) GetPendingResource(arg0, arg1, arg2 string) (resources.Resource, error)

GetPendingResource mocks base method.

func (*MockResources) GetResource

func (m *MockResources) GetResource(arg0, arg1 string) (resources.Resource, error)

GetResource mocks base method.

func (*MockResources) ListPendingResources

func (m *MockResources) ListPendingResources(arg0 string) (resources.ApplicationResources, error)

ListPendingResources mocks base method.

func (*MockResources) ListResources

func (m *MockResources) ListResources(arg0 string) (resources.ApplicationResources, error)

ListResources mocks base method.

func (*MockResources) OpenResource

func (m *MockResources) OpenResource(arg0, arg1 string) (resources.Resource, io.ReadCloser, error)

OpenResource mocks base method.

func (*MockResources) OpenResourceForUniter

func (m *MockResources) OpenResourceForUniter(arg0, arg1 string) (resources.Resource, io.ReadCloser, error)

OpenResourceForUniter mocks base method.

func (*MockResources) RemovePendingAppResources

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

RemovePendingAppResources mocks base method.

func (*MockResources) SetCharmStoreResources

func (m *MockResources) SetCharmStoreResources(arg0 string, arg1 []resource.Resource, arg2 time.Time) error

SetCharmStoreResources mocks base method.

func (*MockResources) SetResource

SetResource mocks base method.

func (*MockResources) SetUnitResource

func (m *MockResources) SetUnitResource(arg0, arg1 string, arg2 resource.Resource) (resources.Resource, error)

SetUnitResource mocks base method.

func (*MockResources) UpdatePendingResource

func (m *MockResources) UpdatePendingResource(arg0, arg1, arg2 string, arg3 resource.Resource, arg4 io.Reader) (resources.Resource, error)

UpdatePendingResource mocks base method.

type MockResourcesMockRecorder

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

MockResourcesMockRecorder is the mock recorder for MockResources.

func (*MockResourcesMockRecorder) AddPendingResource

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

AddPendingResource indicates an expected call of AddPendingResource.

func (*MockResourcesMockRecorder) GetPendingResource

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

GetPendingResource indicates an expected call of GetPendingResource.

func (*MockResourcesMockRecorder) GetResource

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

GetResource indicates an expected call of GetResource.

func (*MockResourcesMockRecorder) ListPendingResources

func (mr *MockResourcesMockRecorder) ListPendingResources(arg0 any) *gomock.Call

ListPendingResources indicates an expected call of ListPendingResources.

func (*MockResourcesMockRecorder) ListResources

func (mr *MockResourcesMockRecorder) ListResources(arg0 any) *gomock.Call

ListResources indicates an expected call of ListResources.

func (*MockResourcesMockRecorder) OpenResource

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

OpenResource indicates an expected call of OpenResource.

func (*MockResourcesMockRecorder) OpenResourceForUniter

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

OpenResourceForUniter indicates an expected call of OpenResourceForUniter.

func (*MockResourcesMockRecorder) RemovePendingAppResources

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

RemovePendingAppResources indicates an expected call of RemovePendingAppResources.

func (*MockResourcesMockRecorder) SetCharmStoreResources

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

SetCharmStoreResources indicates an expected call of SetCharmStoreResources.

func (*MockResourcesMockRecorder) SetResource

func (mr *MockResourcesMockRecorder) SetResource(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

SetResource indicates an expected call of SetResource.

func (*MockResourcesMockRecorder) SetUnitResource

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

SetUnitResource indicates an expected call of SetUnitResource.

func (*MockResourcesMockRecorder) UpdatePendingResource

func (mr *MockResourcesMockRecorder) UpdatePendingResource(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

UpdatePendingResource indicates an expected call of UpdatePendingResource.

type MockRunner

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

MockRunner is a mock of Runner interface.

func NewMockRunner

func NewMockRunner(ctrl *gomock.Controller) *MockRunner

NewMockRunner creates a new mock instance.

func (*MockRunner) EXPECT

func (m *MockRunner) EXPECT() *MockRunnerMockRecorder

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

func (*MockRunner) MaybePruneTransactions

func (m *MockRunner) MaybePruneTransactions(arg0 txn.PruneOptions) error

MaybePruneTransactions mocks base method.

func (*MockRunner) ResumeTransactions

func (m *MockRunner) ResumeTransactions() error

ResumeTransactions mocks base method.

func (*MockRunner) Run

func (m *MockRunner) Run(arg0 txn.TransactionSource) error

Run mocks base method.

func (*MockRunner) RunTransaction

func (m *MockRunner) RunTransaction(arg0 *txn.Transaction) error

RunTransaction mocks base method.

type MockRunnerMockRecorder

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

MockRunnerMockRecorder is the mock recorder for MockRunner.

func (*MockRunnerMockRecorder) MaybePruneTransactions

func (mr *MockRunnerMockRecorder) MaybePruneTransactions(arg0 any) *gomock.Call

MaybePruneTransactions indicates an expected call of MaybePruneTransactions.

func (*MockRunnerMockRecorder) ResumeTransactions

func (mr *MockRunnerMockRecorder) ResumeTransactions() *gomock.Call

ResumeTransactions indicates an expected call of ResumeTransactions.

func (*MockRunnerMockRecorder) Run

func (mr *MockRunnerMockRecorder) Run(arg0 any) *gomock.Call

Run indicates an expected call of Run.

func (*MockRunnerMockRecorder) RunTransaction

func (mr *MockRunnerMockRecorder) RunTransaction(arg0 any) *gomock.Call

RunTransaction indicates an expected call of RunTransaction.

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

func (m *MockUnitPortRanges) ByEndpoint() map[string][]description.UnitPortRange

ByEndpoint mocks base method.

func (*MockUnitPortRanges) EXPECT

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

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.

Jump to

Keyboard shortcuts

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