mocks

package
v0.0.0-...-298751d Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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) AllUnits

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

AllUnits mocks base method.

func (*MockApplication) Constraints

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

Constraints mocks base method.

func (*MockApplication) EXPECT

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

func (*MockApplication) IsPrincipal

func (m *MockApplication) IsPrincipal() bool

IsPrincipal mocks base method.

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication.

func (*MockApplicationMockRecorder) AllUnits

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

AllUnits indicates an expected call of AllUnits.

func (*MockApplicationMockRecorder) Constraints

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

Constraints indicates an expected call of Constraints.

func (*MockApplicationMockRecorder) IsPrincipal

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

IsPrincipal indicates an expected call of IsPrincipal.

type MockBackendModel

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

MockBackendModel is a mock of BackendModel interface.

func NewMockBackendModel

func NewMockBackendModel(ctrl *gomock.Controller) *MockBackendModel

NewMockBackendModel creates a new mock instance.

func (*MockBackendModel) Cloud

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

Cloud mocks base method.

func (*MockBackendModel) CloudCredential

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

CloudCredential mocks base method.

func (*MockBackendModel) CloudRegion

func (m *MockBackendModel) CloudRegion() string

CloudRegion mocks base method.

func (*MockBackendModel) Config

func (m *MockBackendModel) Config() (*config.Config, error)

Config mocks base method.

func (*MockBackendModel) ControllerUUID

func (m *MockBackendModel) ControllerUUID() string

ControllerUUID mocks base method.

func (*MockBackendModel) EXPECT

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

func (*MockBackendModel) ModelTag

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

ModelTag mocks base method.

func (*MockBackendModel) Type

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

Type mocks base method.

type MockBackendModelMockRecorder

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

MockBackendModelMockRecorder is the mock recorder for MockBackendModel.

func (*MockBackendModelMockRecorder) Cloud

Cloud indicates an expected call of Cloud.

func (*MockBackendModelMockRecorder) CloudCredential

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

CloudCredential indicates an expected call of CloudCredential.

func (*MockBackendModelMockRecorder) CloudRegion

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

CloudRegion indicates an expected call of CloudRegion.

func (*MockBackendModelMockRecorder) Config

Config indicates an expected call of Config.

func (*MockBackendModelMockRecorder) ControllerUUID

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

ControllerUUID indicates an expected call of ControllerUUID.

func (*MockBackendModelMockRecorder) ModelTag

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

ModelTag indicates an expected call of ModelTag.

func (*MockBackendModelMockRecorder) Type

Type indicates an expected call of Type.

type MockBackendState

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

MockBackendState is a mock of BackendState interface.

func NewMockBackendState

func NewMockBackendState(ctrl *gomock.Controller) *MockBackendState

NewMockBackendState creates a new mock instance.

func (*MockBackendState) AddCharmMetadata

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

AddCharmMetadata mocks base method.

func (*MockBackendState) AllCharms

func (m *MockBackendState) AllCharms() ([]*state.Charm, error)

AllCharms mocks base method.

func (*MockBackendState) Application

func (m *MockBackendState) Application(arg0 string) (interfaces.Application, error)

Application mocks base method.

func (*MockBackendState) Charm

func (m *MockBackendState) Charm(arg0 string) (*state.Charm, error)

Charm mocks base method.

func (*MockBackendState) ControllerTag

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

ControllerTag mocks base method.

func (*MockBackendState) EXPECT

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

func (*MockBackendState) Machine

func (m *MockBackendState) Machine(arg0 string) (interfaces.Machine, error)

Machine mocks base method.

func (*MockBackendState) ModelConstraints

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

ModelConstraints mocks base method.

func (*MockBackendState) ModelUUID

func (m *MockBackendState) ModelUUID() string

ModelUUID mocks base method.

func (*MockBackendState) MongoSession

func (m *MockBackendState) MongoSession() *mgo.Session

MongoSession mocks base method.

func (*MockBackendState) PrepareCharmUpload

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

PrepareCharmUpload mocks base method.

func (*MockBackendState) UpdateUploadedCharm

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

UpdateUploadedCharm mocks base method.

type MockBackendStateMockRecorder

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

MockBackendStateMockRecorder is the mock recorder for MockBackendState.

func (*MockBackendStateMockRecorder) AddCharmMetadata

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

AddCharmMetadata indicates an expected call of AddCharmMetadata.

func (*MockBackendStateMockRecorder) AllCharms

func (mr *MockBackendStateMockRecorder) AllCharms() *gomock.Call

AllCharms indicates an expected call of AllCharms.

func (*MockBackendStateMockRecorder) Application

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

Application indicates an expected call of Application.

func (*MockBackendStateMockRecorder) Charm

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

Charm indicates an expected call of Charm.

func (*MockBackendStateMockRecorder) ControllerTag

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

ControllerTag indicates an expected call of ControllerTag.

func (*MockBackendStateMockRecorder) Machine

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

Machine indicates an expected call of Machine.

func (*MockBackendStateMockRecorder) ModelConstraints

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

ModelConstraints indicates an expected call of ModelConstraints.

func (*MockBackendStateMockRecorder) ModelUUID

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

ModelUUID indicates an expected call of ModelUUID.

func (*MockBackendStateMockRecorder) MongoSession

func (mr *MockBackendStateMockRecorder) MongoSession() *gomock.Call

MongoSession indicates an expected call of MongoSession.

func (*MockBackendStateMockRecorder) PrepareCharmUpload

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

PrepareCharmUpload indicates an expected call of PrepareCharmUpload.

func (*MockBackendStateMockRecorder) UpdateUploadedCharm

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

UpdateUploadedCharm indicates an expected call of UpdateUploadedCharm.

type MockCharmArchive

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

MockCharmArchive is a mock of CharmArchive interface.

func NewMockCharmArchive

func NewMockCharmArchive(ctrl *gomock.Controller) *MockCharmArchive

NewMockCharmArchive creates a new mock instance.

func (*MockCharmArchive) Actions

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

Actions mocks base method.

func (*MockCharmArchive) Config

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

Config mocks base method.

func (*MockCharmArchive) EXPECT

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

func (*MockCharmArchive) LXDProfile

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

LXDProfile mocks base method.

func (*MockCharmArchive) Manifest

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

Manifest mocks base method.

func (*MockCharmArchive) Meta

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

Meta mocks base method.

func (*MockCharmArchive) Metrics

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

Metrics mocks base method.

func (*MockCharmArchive) Revision

func (m *MockCharmArchive) Revision() int

Revision mocks base method.

func (*MockCharmArchive) Version

func (m *MockCharmArchive) Version() string

Version mocks base method.

type MockCharmArchiveMockRecorder

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

MockCharmArchiveMockRecorder is the mock recorder for MockCharmArchive.

func (*MockCharmArchiveMockRecorder) Actions

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

Actions indicates an expected call of Actions.

func (*MockCharmArchiveMockRecorder) Config

Config indicates an expected call of Config.

func (*MockCharmArchiveMockRecorder) LXDProfile

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

LXDProfile indicates an expected call of LXDProfile.

func (*MockCharmArchiveMockRecorder) Manifest

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

Manifest indicates an expected call of Manifest.

func (*MockCharmArchiveMockRecorder) Meta

Meta indicates an expected call of Meta.

func (*MockCharmArchiveMockRecorder) Metrics

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

Metrics indicates an expected call of Metrics.

func (*MockCharmArchiveMockRecorder) Revision

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

Revision indicates an expected call of Revision.

func (*MockCharmArchiveMockRecorder) Version

func (mr *MockCharmArchiveMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version.

type MockDownloader

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

MockDownloader is a mock of Downloader interface.

func NewMockDownloader

func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader

NewMockDownloader creates a new mock instance.

func (*MockDownloader) DownloadAndStore

func (m *MockDownloader) DownloadAndStore(arg0 *charm.URL, arg1 charm0.Origin, arg2 bool) (charm0.Origin, error)

DownloadAndStore mocks base method.

func (*MockDownloader) EXPECT

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

type MockDownloaderMockRecorder

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

MockDownloaderMockRecorder is the mock recorder for MockDownloader.

func (*MockDownloaderMockRecorder) DownloadAndStore

func (mr *MockDownloaderMockRecorder) DownloadAndStore(arg0, arg1, arg2 any) *gomock.Call

DownloadAndStore indicates an expected call of DownloadAndStore.

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

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

Constraints 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.

type MockMachineMockRecorder

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

MockMachineMockRecorder is the mock recorder for MockMachine.

func (*MockMachineMockRecorder) Constraints

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

Constraints indicates an expected call of Constraints.

func (*MockMachineMockRecorder) HardwareCharacteristics

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

HardwareCharacteristics indicates an expected call of HardwareCharacteristics.

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) DownloadCharm

func (m *MockRepository) DownloadCharm(arg0 string, arg1 charm0.Origin, arg2 string) (charm0.CharmArchive, charm0.Origin, error)

DownloadCharm mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetDownloadURL

func (m *MockRepository) GetDownloadURL(arg0 string, arg1 charm0.Origin) (*url.URL, charm0.Origin, error)

GetDownloadURL mocks base method.

func (*MockRepository) GetEssentialMetadata

func (m *MockRepository) GetEssentialMetadata(arg0 ...charm0.MetadataRequest) ([]charm0.EssentialMetadata, error)

GetEssentialMetadata mocks base method.

func (*MockRepository) ListResources

func (m *MockRepository) ListResources(arg0 string, arg1 charm0.Origin) ([]resource.Resource, error)

ListResources mocks base method.

func (*MockRepository) ResolveForDeploy

func (m *MockRepository) ResolveForDeploy(arg0 charm0.CharmID) (charm0.ResolvedDataForDeploy, error)

ResolveForDeploy mocks base method.

func (*MockRepository) ResolveResources

func (m *MockRepository) ResolveResources(arg0 []resource.Resource, arg1 charm0.CharmID) ([]resource.Resource, error)

ResolveResources mocks base method.

func (*MockRepository) ResolveWithPreferredChannel

func (m *MockRepository) ResolveWithPreferredChannel(arg0 string, arg1 charm0.Origin) (*charm.URL, charm0.Origin, []charm0.Platform, error)

ResolveWithPreferredChannel mocks base method.

type MockRepositoryFactory

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

MockRepositoryFactory is a mock of RepositoryFactory interface.

func NewMockRepositoryFactory

func NewMockRepositoryFactory(ctrl *gomock.Controller) *MockRepositoryFactory

NewMockRepositoryFactory creates a new mock instance.

func (*MockRepositoryFactory) EXPECT

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

func (*MockRepositoryFactory) GetCharmRepository

func (m *MockRepositoryFactory) GetCharmRepository(arg0 charm0.Source) (charm0.Repository, error)

GetCharmRepository mocks base method.

type MockRepositoryFactoryMockRecorder

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

MockRepositoryFactoryMockRecorder is the mock recorder for MockRepositoryFactory.

func (*MockRepositoryFactoryMockRecorder) GetCharmRepository

func (mr *MockRepositoryFactoryMockRecorder) GetCharmRepository(arg0 any) *gomock.Call

GetCharmRepository indicates an expected call of GetCharmRepository.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) DownloadCharm

func (mr *MockRepositoryMockRecorder) DownloadCharm(arg0, arg1, arg2 any) *gomock.Call

DownloadCharm indicates an expected call of DownloadCharm.

func (*MockRepositoryMockRecorder) GetDownloadURL

func (mr *MockRepositoryMockRecorder) GetDownloadURL(arg0, arg1 any) *gomock.Call

GetDownloadURL indicates an expected call of GetDownloadURL.

func (*MockRepositoryMockRecorder) GetEssentialMetadata

func (mr *MockRepositoryMockRecorder) GetEssentialMetadata(arg0 ...any) *gomock.Call

GetEssentialMetadata indicates an expected call of GetEssentialMetadata.

func (*MockRepositoryMockRecorder) ListResources

func (mr *MockRepositoryMockRecorder) ListResources(arg0, arg1 any) *gomock.Call

ListResources indicates an expected call of ListResources.

func (*MockRepositoryMockRecorder) ResolveForDeploy

func (mr *MockRepositoryMockRecorder) ResolveForDeploy(arg0 any) *gomock.Call

ResolveForDeploy indicates an expected call of ResolveForDeploy.

func (*MockRepositoryMockRecorder) ResolveResources

func (mr *MockRepositoryMockRecorder) ResolveResources(arg0, arg1 any) *gomock.Call

ResolveResources indicates an expected call of ResolveResources.

func (*MockRepositoryMockRecorder) ResolveWithPreferredChannel

func (mr *MockRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1 any) *gomock.Call

ResolveWithPreferredChannel indicates an expected call of ResolveWithPreferredChannel.

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

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

AssignedMachineId mocks base method.

func (*MockUnit) EXPECT

func (m *MockUnit) EXPECT() *MockUnitMockRecorder

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

type MockUnitMockRecorder

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

MockUnitMockRecorder is the mock recorder for MockUnit.

func (*MockUnitMockRecorder) AssignedMachineId

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

AssignedMachineId indicates an expected call of AssignedMachineId.

Jump to

Keyboard shortcuts

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