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: 12 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) Delete

func (m *MockApplication) Delete() error

Delete mocks base method

func (*MockApplication) EXPECT

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

func (*MockApplication) Ensure

func (m *MockApplication) Ensure(arg0 caas.ApplicationConfig) error

Ensure mocks base method

func (*MockApplication) Exists

func (m *MockApplication) Exists() (caas.DeploymentState, error)

Exists mocks base method

func (*MockApplication) State

State mocks base method

func (*MockApplication) Units

func (m *MockApplication) Units() ([]caas.Unit, error)

Units mocks base method

func (*MockApplication) UpdatePorts

func (m *MockApplication) UpdatePorts(arg0 []caas.ServicePort, arg1 bool) error

UpdatePorts mocks base method

func (*MockApplication) UpdateService

func (m *MockApplication) UpdateService(arg0 caas.ServiceParam) error

UpdateService mocks base method

func (*MockApplication) Watch

Watch mocks base method

func (*MockApplication) WatchReplicas

func (m *MockApplication) WatchReplicas() (watcher.NotifyWatcher, error)

WatchReplicas mocks base method

type MockApplicationMockRecorder

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

MockApplicationMockRecorder is the mock recorder for MockApplication

func (*MockApplicationMockRecorder) Delete

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

Delete indicates an expected call of Delete

func (*MockApplicationMockRecorder) Ensure

func (mr *MockApplicationMockRecorder) Ensure(arg0 interface{}) *gomock.Call

Ensure indicates an expected call of Ensure

func (*MockApplicationMockRecorder) Exists

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

Exists indicates an expected call of Exists

func (*MockApplicationMockRecorder) State

State indicates an expected call of State

func (*MockApplicationMockRecorder) Units

Units indicates an expected call of Units

func (*MockApplicationMockRecorder) UpdatePorts

func (mr *MockApplicationMockRecorder) UpdatePorts(arg0, arg1 interface{}) *gomock.Call

UpdatePorts indicates an expected call of UpdatePorts

func (*MockApplicationMockRecorder) UpdateService

func (mr *MockApplicationMockRecorder) UpdateService(arg0 interface{}) *gomock.Call

UpdateService indicates an expected call of UpdateService

func (*MockApplicationMockRecorder) Watch

Watch indicates an expected call of Watch

func (*MockApplicationMockRecorder) WatchReplicas

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

WatchReplicas indicates an expected call of WatchReplicas

type MockBroker

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

MockBroker is a mock of Broker interface

func NewMockBroker

func NewMockBroker(ctrl *gomock.Controller) *MockBroker

NewMockBroker creates a new mock instance

func (*MockBroker) APIVersion

func (m *MockBroker) APIVersion() (string, error)

APIVersion mocks base method

func (*MockBroker) AdoptResources

func (m *MockBroker) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error

AdoptResources mocks base method

func (*MockBroker) AnnotateUnit

func (m *MockBroker) AnnotateUnit(arg0 string, arg1 caas.DeploymentMode, arg2 string, arg3 names.UnitTag) error

AnnotateUnit mocks base method

func (*MockBroker) Application

func (m *MockBroker) Application(arg0 string, arg1 caas.DeploymentType) caas.Application

Application mocks base method

func (*MockBroker) Bootstrap

Bootstrap mocks base method

func (*MockBroker) CheckCloudCredentials

func (m *MockBroker) CheckCloudCredentials() error

CheckCloudCredentials mocks base method

func (*MockBroker) Config

func (m *MockBroker) Config() *config.Config

Config mocks base method

func (*MockBroker) ConstraintsValidator

func (m *MockBroker) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)

ConstraintsValidator mocks base method

func (*MockBroker) Create

Create mocks base method

func (*MockBroker) DeleteOperator

func (m *MockBroker) DeleteOperator(arg0 string) error

DeleteOperator mocks base method

func (*MockBroker) DeleteService

func (m *MockBroker) DeleteService(arg0 string) error

DeleteService mocks base method

func (*MockBroker) Destroy

func (m *MockBroker) Destroy(arg0 context.ProviderCallContext) error

Destroy mocks base method

func (*MockBroker) DestroyController

func (m *MockBroker) DestroyController(arg0 context.ProviderCallContext, arg1 string) error

DestroyController mocks base method

func (*MockBroker) EXPECT

func (m *MockBroker) EXPECT() *MockBrokerMockRecorder

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

func (*MockBroker) EnsureModelOperator

func (m *MockBroker) EnsureModelOperator(arg0, arg1 string, arg2 *caas.ModelOperatorConfig) error

EnsureModelOperator mocks base method

func (*MockBroker) EnsureOperator

func (m *MockBroker) EnsureOperator(arg0, arg1 string, arg2 *caas.OperatorConfig) error

EnsureOperator mocks base method

func (*MockBroker) EnsureService

func (m *MockBroker) EnsureService(arg0 string, arg1 caas.StatusCallbackFunc, arg2 *caas.ServiceParams, arg3 int, arg4 application.ConfigAttributes) error

EnsureService mocks base method

func (*MockBroker) ExposeService

func (m *MockBroker) ExposeService(arg0 string, arg1 map[string]string, arg2 application.ConfigAttributes) error

ExposeService mocks base method

func (*MockBroker) GetService

func (m *MockBroker) GetService(arg0 string, arg1 caas.DeploymentMode, arg2 bool) (*caas.Service, error)

GetService mocks base method

func (*MockBroker) ModelOperator

func (m *MockBroker) ModelOperator() (*caas.ModelOperatorConfig, error)

ModelOperator mocks base method

func (*MockBroker) ModelOperatorExists

func (m *MockBroker) ModelOperatorExists() (bool, error)

ModelOperatorExists mocks base method

func (*MockBroker) Operator

func (m *MockBroker) Operator(arg0 string) (*caas.Operator, error)

Operator mocks base method

func (*MockBroker) OperatorExists

func (m *MockBroker) OperatorExists(arg0 string) (caas.DeploymentState, error)

OperatorExists mocks base method

func (*MockBroker) PrecheckInstance

PrecheckInstance mocks base method

func (*MockBroker) PrepareForBootstrap

func (m *MockBroker) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error

PrepareForBootstrap mocks base method

func (*MockBroker) Provider

Provider mocks base method

func (*MockBroker) SetConfig

func (m *MockBroker) SetConfig(arg0 *config.Config) error

SetConfig mocks base method

func (*MockBroker) StorageProvider

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

StorageProvider mocks base method

func (*MockBroker) StorageProviderTypes

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

StorageProviderTypes mocks base method

func (*MockBroker) UnexposeService

func (m *MockBroker) UnexposeService(arg0 string) error

UnexposeService mocks base method

func (*MockBroker) Units

func (m *MockBroker) Units(arg0 string, arg1 caas.DeploymentMode) ([]caas.Unit, error)

Units mocks base method

func (*MockBroker) Upgrade

func (m *MockBroker) Upgrade(arg0 string, arg1 version.Number) error

Upgrade mocks base method

func (*MockBroker) ValidateStorageClass

func (m *MockBroker) ValidateStorageClass(arg0 map[string]interface{}) error

ValidateStorageClass mocks base method

func (*MockBroker) Version

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

Version mocks base method

func (*MockBroker) WatchContainerStart

func (m *MockBroker) WatchContainerStart(arg0, arg1 string) (watcher.StringsWatcher, error)

WatchContainerStart mocks base method

func (*MockBroker) WatchOperator

func (m *MockBroker) WatchOperator(arg0 string) (watcher.NotifyWatcher, error)

WatchOperator mocks base method

func (*MockBroker) WatchService

func (m *MockBroker) WatchService(arg0 string, arg1 caas.DeploymentMode) (watcher.NotifyWatcher, error)

WatchService mocks base method

func (*MockBroker) WatchUnits

func (m *MockBroker) WatchUnits(arg0 string, arg1 caas.DeploymentMode) (watcher.NotifyWatcher, error)

WatchUnits mocks base method

type MockBrokerMockRecorder

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

MockBrokerMockRecorder is the mock recorder for MockBroker

func (*MockBrokerMockRecorder) APIVersion

func (mr *MockBrokerMockRecorder) APIVersion() *gomock.Call

APIVersion indicates an expected call of APIVersion

func (*MockBrokerMockRecorder) AdoptResources

func (mr *MockBrokerMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call

AdoptResources indicates an expected call of AdoptResources

func (*MockBrokerMockRecorder) AnnotateUnit

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

AnnotateUnit indicates an expected call of AnnotateUnit

func (*MockBrokerMockRecorder) Application

func (mr *MockBrokerMockRecorder) Application(arg0, arg1 interface{}) *gomock.Call

Application indicates an expected call of Application

func (*MockBrokerMockRecorder) Bootstrap

func (mr *MockBrokerMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call

Bootstrap indicates an expected call of Bootstrap

func (*MockBrokerMockRecorder) CheckCloudCredentials

func (mr *MockBrokerMockRecorder) CheckCloudCredentials() *gomock.Call

CheckCloudCredentials indicates an expected call of CheckCloudCredentials

func (*MockBrokerMockRecorder) Config

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

Config indicates an expected call of Config

func (*MockBrokerMockRecorder) ConstraintsValidator

func (mr *MockBrokerMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call

ConstraintsValidator indicates an expected call of ConstraintsValidator

func (*MockBrokerMockRecorder) Create

func (mr *MockBrokerMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockBrokerMockRecorder) DeleteOperator

func (mr *MockBrokerMockRecorder) DeleteOperator(arg0 interface{}) *gomock.Call

DeleteOperator indicates an expected call of DeleteOperator

func (*MockBrokerMockRecorder) DeleteService

func (mr *MockBrokerMockRecorder) DeleteService(arg0 interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService

func (*MockBrokerMockRecorder) Destroy

func (mr *MockBrokerMockRecorder) Destroy(arg0 interface{}) *gomock.Call

Destroy indicates an expected call of Destroy

func (*MockBrokerMockRecorder) DestroyController

func (mr *MockBrokerMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call

DestroyController indicates an expected call of DestroyController

func (*MockBrokerMockRecorder) EnsureModelOperator

func (mr *MockBrokerMockRecorder) EnsureModelOperator(arg0, arg1, arg2 interface{}) *gomock.Call

EnsureModelOperator indicates an expected call of EnsureModelOperator

func (*MockBrokerMockRecorder) EnsureOperator

func (mr *MockBrokerMockRecorder) EnsureOperator(arg0, arg1, arg2 interface{}) *gomock.Call

EnsureOperator indicates an expected call of EnsureOperator

func (*MockBrokerMockRecorder) EnsureService

func (mr *MockBrokerMockRecorder) EnsureService(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

EnsureService indicates an expected call of EnsureService

func (*MockBrokerMockRecorder) ExposeService

func (mr *MockBrokerMockRecorder) ExposeService(arg0, arg1, arg2 interface{}) *gomock.Call

ExposeService indicates an expected call of ExposeService

func (*MockBrokerMockRecorder) GetService

func (mr *MockBrokerMockRecorder) GetService(arg0, arg1, arg2 interface{}) *gomock.Call

GetService indicates an expected call of GetService

func (*MockBrokerMockRecorder) ModelOperator

func (mr *MockBrokerMockRecorder) ModelOperator() *gomock.Call

ModelOperator indicates an expected call of ModelOperator

func (*MockBrokerMockRecorder) ModelOperatorExists

func (mr *MockBrokerMockRecorder) ModelOperatorExists() *gomock.Call

ModelOperatorExists indicates an expected call of ModelOperatorExists

func (*MockBrokerMockRecorder) Operator

func (mr *MockBrokerMockRecorder) Operator(arg0 interface{}) *gomock.Call

Operator indicates an expected call of Operator

func (*MockBrokerMockRecorder) OperatorExists

func (mr *MockBrokerMockRecorder) OperatorExists(arg0 interface{}) *gomock.Call

OperatorExists indicates an expected call of OperatorExists

func (*MockBrokerMockRecorder) PrecheckInstance

func (mr *MockBrokerMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call

PrecheckInstance indicates an expected call of PrecheckInstance

func (*MockBrokerMockRecorder) PrepareForBootstrap

func (mr *MockBrokerMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call

PrepareForBootstrap indicates an expected call of PrepareForBootstrap

func (*MockBrokerMockRecorder) Provider

func (mr *MockBrokerMockRecorder) Provider() *gomock.Call

Provider indicates an expected call of Provider

func (*MockBrokerMockRecorder) SetConfig

func (mr *MockBrokerMockRecorder) SetConfig(arg0 interface{}) *gomock.Call

SetConfig indicates an expected call of SetConfig

func (*MockBrokerMockRecorder) StorageProvider

func (mr *MockBrokerMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call

StorageProvider indicates an expected call of StorageProvider

func (*MockBrokerMockRecorder) StorageProviderTypes

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

StorageProviderTypes indicates an expected call of StorageProviderTypes

func (*MockBrokerMockRecorder) UnexposeService

func (mr *MockBrokerMockRecorder) UnexposeService(arg0 interface{}) *gomock.Call

UnexposeService indicates an expected call of UnexposeService

func (*MockBrokerMockRecorder) Units

func (mr *MockBrokerMockRecorder) Units(arg0, arg1 interface{}) *gomock.Call

Units indicates an expected call of Units

func (*MockBrokerMockRecorder) Upgrade

func (mr *MockBrokerMockRecorder) Upgrade(arg0, arg1 interface{}) *gomock.Call

Upgrade indicates an expected call of Upgrade

func (*MockBrokerMockRecorder) ValidateStorageClass

func (mr *MockBrokerMockRecorder) ValidateStorageClass(arg0 interface{}) *gomock.Call

ValidateStorageClass indicates an expected call of ValidateStorageClass

func (*MockBrokerMockRecorder) Version

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

Version indicates an expected call of Version

func (*MockBrokerMockRecorder) WatchContainerStart

func (mr *MockBrokerMockRecorder) WatchContainerStart(arg0, arg1 interface{}) *gomock.Call

WatchContainerStart indicates an expected call of WatchContainerStart

func (*MockBrokerMockRecorder) WatchOperator

func (mr *MockBrokerMockRecorder) WatchOperator(arg0 interface{}) *gomock.Call

WatchOperator indicates an expected call of WatchOperator

func (*MockBrokerMockRecorder) WatchService

func (mr *MockBrokerMockRecorder) WatchService(arg0, arg1 interface{}) *gomock.Call

WatchService indicates an expected call of WatchService

func (*MockBrokerMockRecorder) WatchUnits

func (mr *MockBrokerMockRecorder) WatchUnits(arg0, arg1 interface{}) *gomock.Call

WatchUnits indicates an expected call of WatchUnits

Jump to

Keyboard shortcuts

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