mocks

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockApplication

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

MockApplication is a mock of Application interface

func NewMockApplication

func NewMockApplication(ctrl *gomock.Controller) *MockApplication

NewMockApplication creates a new mock instance

func (*MockApplication) 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) Config

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

Config 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

type MockBackendModelMockRecorder

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

MockBackendModelMockRecorder is the mock recorder for MockBackendModel

func (*MockBackendModelMockRecorder) Config

Config indicates an expected call of Config

func (*MockBackendModelMockRecorder) ModelTag

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

ModelTag indicates an expected call of ModelTag

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) 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 *charm.URL) (*state.Charm, error)

Charm mocks base method

func (*MockBackendState) ControllerConfig

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

ControllerConfig 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 *charm.URL) (charm0.StateCharm, error)

PrepareCharmUpload mocks base method

func (*MockBackendState) UpdateUploadedCharm

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

UpdateUploadedCharm mocks base method

type MockBackendStateMockRecorder

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

MockBackendStateMockRecorder is the mock recorder for MockBackendState

func (*MockBackendStateMockRecorder) AllCharms

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

AllCharms indicates an expected call of AllCharms

func (*MockBackendStateMockRecorder) Application

func (mr *MockBackendStateMockRecorder) Application(arg0 interface{}) *gomock.Call

Application indicates an expected call of Application

func (*MockBackendStateMockRecorder) Charm

func (mr *MockBackendStateMockRecorder) Charm(arg0 interface{}) *gomock.Call

Charm indicates an expected call of Charm

func (*MockBackendStateMockRecorder) ControllerConfig

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

ControllerConfig indicates an expected call of ControllerConfig

func (*MockBackendStateMockRecorder) ControllerTag

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

ControllerTag indicates an expected call of ControllerTag

func (*MockBackendStateMockRecorder) Machine

func (mr *MockBackendStateMockRecorder) Machine(arg0 interface{}) *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 interface{}) *gomock.Call

PrepareCharmUpload indicates an expected call of PrepareCharmUpload

func (*MockBackendStateMockRecorder) UpdateUploadedCharm

func (mr *MockBackendStateMockRecorder) UpdateUploadedCharm(arg0 interface{}) *gomock.Call

UpdateUploadedCharm indicates an expected call of UpdateUploadedCharm

type MockCSRepository

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

MockCSRepository is a mock of CSRepository interface

func NewMockCSRepository

func NewMockCSRepository(ctrl *gomock.Controller) *MockCSRepository

NewMockCSRepository creates a new mock instance

func (*MockCSRepository) EXPECT

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

func (*MockCSRepository) Get

func (m *MockCSRepository) Get(arg0 *charm.URL, arg1 string) (*charm.CharmArchive, error)

Get mocks base method

func (*MockCSRepository) ResolveWithPreferredChannel

func (m *MockCSRepository) ResolveWithPreferredChannel(arg0 *charm.URL, arg1 params.Channel) (*charm.URL, params.Channel, []string, error)

ResolveWithPreferredChannel mocks base method

type MockCSRepositoryMockRecorder

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

MockCSRepositoryMockRecorder is the mock recorder for MockCSRepository

func (*MockCSRepositoryMockRecorder) Get

func (mr *MockCSRepositoryMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockCSRepositoryMockRecorder) ResolveWithPreferredChannel

func (mr *MockCSRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1 interface{}) *gomock.Call

ResolveWithPreferredChannel indicates an expected call of ResolveWithPreferredChannel

type MockCharmHubClient

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

MockCharmHubClient is a mock of CharmHubClient interface

func NewMockCharmHubClient

func NewMockCharmHubClient(ctrl *gomock.Controller) *MockCharmHubClient

NewMockCharmHubClient creates a new mock instance

func (*MockCharmHubClient) DownloadAndRead

func (m *MockCharmHubClient) DownloadAndRead(arg0 context.Context, arg1 *url.URL, arg2 string, arg3 ...charmhub.DownloadOption) (*charm.CharmArchive, error)

DownloadAndRead mocks base method

func (*MockCharmHubClient) EXPECT

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

func (*MockCharmHubClient) Refresh

Refresh mocks base method

type MockCharmHubClientMockRecorder

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

MockCharmHubClientMockRecorder is the mock recorder for MockCharmHubClient

func (*MockCharmHubClientMockRecorder) DownloadAndRead

func (mr *MockCharmHubClientMockRecorder) DownloadAndRead(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

DownloadAndRead indicates an expected call of DownloadAndRead

func (*MockCharmHubClientMockRecorder) Refresh

func (mr *MockCharmHubClientMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call

Refresh indicates an expected call of Refresh

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 MockStateCharm

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

MockStateCharm is a mock of StateCharm interface

func NewMockStateCharm

func NewMockStateCharm(ctrl *gomock.Controller) *MockStateCharm

NewMockStateCharm creates a new mock instance

func (*MockStateCharm) EXPECT

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

func (*MockStateCharm) IsUploaded

func (m *MockStateCharm) IsUploaded() bool

IsUploaded mocks base method

type MockStateCharmMockRecorder

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

MockStateCharmMockRecorder is the mock recorder for MockStateCharm

func (*MockStateCharmMockRecorder) IsUploaded

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

IsUploaded indicates an expected call of IsUploaded

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 MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) Get

func (mr *MockStorageMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockStorageMockRecorder) Put

func (mr *MockStorageMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call

Put indicates an expected call of Put

func (*MockStorageMockRecorder) PutAndCheckHash

func (mr *MockStorageMockRecorder) PutAndCheckHash(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

PutAndCheckHash indicates an expected call of PutAndCheckHash

func (*MockStorageMockRecorder) Remove

func (mr *MockStorageMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

type MockStoreCharm

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

MockStoreCharm is a mock of StoreCharm interface

func NewMockStoreCharm

func NewMockStoreCharm(ctrl *gomock.Controller) *MockStoreCharm

NewMockStoreCharm creates a new mock instance

func (*MockStoreCharm) Actions

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

Actions mocks base method

func (*MockStoreCharm) Config

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

Config mocks base method

func (*MockStoreCharm) EXPECT

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

func (*MockStoreCharm) LXDProfile

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

LXDProfile mocks base method

func (*MockStoreCharm) Meta

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

Meta mocks base method

func (*MockStoreCharm) Metrics

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

Metrics mocks base method

func (*MockStoreCharm) Revision

func (m *MockStoreCharm) Revision() int

Revision mocks base method

func (*MockStoreCharm) Version

func (m *MockStoreCharm) Version() string

Version mocks base method

type MockStoreCharmMockRecorder

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

MockStoreCharmMockRecorder is the mock recorder for MockStoreCharm

func (*MockStoreCharmMockRecorder) Actions

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

Actions indicates an expected call of Actions

func (*MockStoreCharmMockRecorder) Config

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

Config indicates an expected call of Config

func (*MockStoreCharmMockRecorder) LXDProfile

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

LXDProfile indicates an expected call of LXDProfile

func (*MockStoreCharmMockRecorder) Meta

Meta indicates an expected call of Meta

func (*MockStoreCharmMockRecorder) Metrics

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

Metrics indicates an expected call of Metrics

func (*MockStoreCharmMockRecorder) Revision

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

Revision indicates an expected call of Revision

func (*MockStoreCharmMockRecorder) Version

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

Version indicates an expected call of Version

type MockStrategy

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

MockStrategy is a mock of Strategy interface

func NewMockStrategy

func NewMockStrategy(ctrl *gomock.Controller) *MockStrategy

NewMockStrategy creates a new mock instance

func (*MockStrategy) CharmURL

func (m *MockStrategy) CharmURL() *charm.URL

CharmURL mocks base method

func (*MockStrategy) EXPECT

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

func (*MockStrategy) Finish

func (m *MockStrategy) Finish() error

Finish mocks base method

func (*MockStrategy) Run

Run mocks base method

func (*MockStrategy) Validate

func (m *MockStrategy) Validate() error

Validate mocks base method

type MockStrategyMockRecorder

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

MockStrategyMockRecorder is the mock recorder for MockStrategy

func (*MockStrategyMockRecorder) CharmURL

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

CharmURL indicates an expected call of CharmURL

func (*MockStrategyMockRecorder) Finish

func (mr *MockStrategyMockRecorder) Finish() *gomock.Call

Finish indicates an expected call of Finish

func (*MockStrategyMockRecorder) Run

func (mr *MockStrategyMockRecorder) Run(arg0, arg1, arg2 interface{}) *gomock.Call

Run indicates an expected call of Run

func (*MockStrategyMockRecorder) Validate

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

Validate indicates an expected call of Validate

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