Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAvailabilityZone
- type MockAvailabilityZoneMockRecorder
- type MockInstanceConfigurator
- func (m *MockInstanceConfigurator) ChangeIngressRules(arg0 string, arg1 bool, arg2 firewall.IngressRules) error
- func (m *MockInstanceConfigurator) ConfigureExternalIpAddress(arg0 int) error
- func (m *MockInstanceConfigurator) DropAllPorts(arg0 []int, arg1 string) error
- func (m *MockInstanceConfigurator) EXPECT() *MockInstanceConfiguratorMockRecorder
- func (m *MockInstanceConfigurator) FindIngressRules() (firewall.IngressRules, error)
- type MockInstanceConfiguratorMockRecorder
- func (mr *MockInstanceConfiguratorMockRecorder) ChangeIngressRules(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockInstanceConfiguratorMockRecorder) ConfigureExternalIpAddress(arg0 interface{}) *gomock.Call
- func (mr *MockInstanceConfiguratorMockRecorder) DropAllPorts(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockInstanceConfiguratorMockRecorder) FindIngressRules() *gomock.Call
- type MockZonedEnviron
- func (m *MockZonedEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error
- func (m *MockZonedEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockZonedEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockZonedEnviron) AvailabilityZones(arg0 context.ProviderCallContext) (network.AvailabilityZones, error)
- func (m *MockZonedEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockZonedEnviron) Config() *config.Config
- func (m *MockZonedEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)
- func (m *MockZonedEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)
- func (m *MockZonedEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error)
- func (m *MockZonedEnviron) Destroy(arg0 context.ProviderCallContext) error
- func (m *MockZonedEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error
- func (m *MockZonedEnviron) EXPECT() *MockZonedEnvironMockRecorder
- func (m *MockZonedEnviron) InstanceAvailabilityZoneNames(arg0 context.ProviderCallContext, arg1 []instance.Id) (map[instance.Id]string, error)
- func (m *MockZonedEnviron) InstanceTypes(arg0 context.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
- func (m *MockZonedEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
- func (m *MockZonedEnviron) PrecheckInstance(arg0 context.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
- func (m *MockZonedEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
- func (m *MockZonedEnviron) Provider() environs.EnvironProvider
- func (m *MockZonedEnviron) SetConfig(arg0 *config.Config) error
- func (m *MockZonedEnviron) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockZonedEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error
- func (m *MockZonedEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockZonedEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockZonedEnvironMockRecorder
- func (mr *MockZonedEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) AllRunningInstances(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Config() *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) Provider() *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call
- func (mr *MockZonedEnvironMockRecorder) StorageProviderTypes() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAvailabilityZone ¶
type MockAvailabilityZone struct {
// contains filtered or unexported fields
}
MockAvailabilityZone is a mock of AvailabilityZone interface
func NewMockAvailabilityZone ¶
func NewMockAvailabilityZone(ctrl *gomock.Controller) *MockAvailabilityZone
NewMockAvailabilityZone creates a new mock instance
func (*MockAvailabilityZone) Available ¶
func (m *MockAvailabilityZone) Available() bool
Available mocks base method
func (*MockAvailabilityZone) EXPECT ¶
func (m *MockAvailabilityZone) EXPECT() *MockAvailabilityZoneMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAvailabilityZone) Name ¶
func (m *MockAvailabilityZone) Name() string
Name mocks base method
type MockAvailabilityZoneMockRecorder ¶
type MockAvailabilityZoneMockRecorder struct {
// contains filtered or unexported fields
}
MockAvailabilityZoneMockRecorder is the mock recorder for MockAvailabilityZone
func (*MockAvailabilityZoneMockRecorder) Available ¶
func (mr *MockAvailabilityZoneMockRecorder) Available() *gomock.Call
Available indicates an expected call of Available
func (*MockAvailabilityZoneMockRecorder) Name ¶
func (mr *MockAvailabilityZoneMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
type MockInstanceConfigurator ¶
type MockInstanceConfigurator struct {
// contains filtered or unexported fields
}
MockInstanceConfigurator is a mock of InstanceConfigurator interface
func NewMockInstanceConfigurator ¶
func NewMockInstanceConfigurator(ctrl *gomock.Controller) *MockInstanceConfigurator
NewMockInstanceConfigurator creates a new mock instance
func (*MockInstanceConfigurator) ChangeIngressRules ¶
func (m *MockInstanceConfigurator) ChangeIngressRules(arg0 string, arg1 bool, arg2 firewall.IngressRules) error
ChangeIngressRules mocks base method
func (*MockInstanceConfigurator) ConfigureExternalIpAddress ¶
func (m *MockInstanceConfigurator) ConfigureExternalIpAddress(arg0 int) error
ConfigureExternalIpAddress mocks base method
func (*MockInstanceConfigurator) DropAllPorts ¶
func (m *MockInstanceConfigurator) DropAllPorts(arg0 []int, arg1 string) error
DropAllPorts mocks base method
func (*MockInstanceConfigurator) EXPECT ¶
func (m *MockInstanceConfigurator) EXPECT() *MockInstanceConfiguratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInstanceConfigurator) FindIngressRules ¶
func (m *MockInstanceConfigurator) FindIngressRules() (firewall.IngressRules, error)
FindIngressRules mocks base method
type MockInstanceConfiguratorMockRecorder ¶
type MockInstanceConfiguratorMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceConfiguratorMockRecorder is the mock recorder for MockInstanceConfigurator
func (*MockInstanceConfiguratorMockRecorder) ChangeIngressRules ¶
func (mr *MockInstanceConfiguratorMockRecorder) ChangeIngressRules(arg0, arg1, arg2 interface{}) *gomock.Call
ChangeIngressRules indicates an expected call of ChangeIngressRules
func (*MockInstanceConfiguratorMockRecorder) ConfigureExternalIpAddress ¶
func (mr *MockInstanceConfiguratorMockRecorder) ConfigureExternalIpAddress(arg0 interface{}) *gomock.Call
ConfigureExternalIpAddress indicates an expected call of ConfigureExternalIpAddress
func (*MockInstanceConfiguratorMockRecorder) DropAllPorts ¶
func (mr *MockInstanceConfiguratorMockRecorder) DropAllPorts(arg0, arg1 interface{}) *gomock.Call
DropAllPorts indicates an expected call of DropAllPorts
func (*MockInstanceConfiguratorMockRecorder) FindIngressRules ¶
func (mr *MockInstanceConfiguratorMockRecorder) FindIngressRules() *gomock.Call
FindIngressRules indicates an expected call of FindIngressRules
type MockZonedEnviron ¶
type MockZonedEnviron struct {
// contains filtered or unexported fields
}
MockZonedEnviron is a mock of ZonedEnviron interface
func NewMockZonedEnviron ¶
func NewMockZonedEnviron(ctrl *gomock.Controller) *MockZonedEnviron
NewMockZonedEnviron creates a new mock instance
func (*MockZonedEnviron) AdoptResources ¶
func (m *MockZonedEnviron) AdoptResources(arg0 context.ProviderCallContext, arg1 string, arg2 version.Number) error
AdoptResources mocks base method
func (*MockZonedEnviron) AllInstances ¶
func (m *MockZonedEnviron) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method
func (*MockZonedEnviron) AllRunningInstances ¶
func (m *MockZonedEnviron) AllRunningInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method
func (*MockZonedEnviron) AvailabilityZones ¶
func (m *MockZonedEnviron) AvailabilityZones(arg0 context.ProviderCallContext) (network.AvailabilityZones, error)
AvailabilityZones mocks base method
func (*MockZonedEnviron) Bootstrap ¶
func (m *MockZonedEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error)
Bootstrap mocks base method
func (*MockZonedEnviron) Config ¶
func (m *MockZonedEnviron) Config() *config.Config
Config mocks base method
func (*MockZonedEnviron) ConstraintsValidator ¶
func (m *MockZonedEnviron) ConstraintsValidator(arg0 context.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method
func (*MockZonedEnviron) ControllerInstances ¶
func (m *MockZonedEnviron) ControllerInstances(arg0 context.ProviderCallContext, arg1 string) ([]instance.Id, error)
ControllerInstances mocks base method
func (*MockZonedEnviron) Create ¶
func (m *MockZonedEnviron) Create(arg0 context.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method
func (*MockZonedEnviron) DeriveAvailabilityZones ¶
func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error)
DeriveAvailabilityZones mocks base method
func (*MockZonedEnviron) Destroy ¶
func (m *MockZonedEnviron) Destroy(arg0 context.ProviderCallContext) error
Destroy mocks base method
func (*MockZonedEnviron) DestroyController ¶
func (m *MockZonedEnviron) DestroyController(arg0 context.ProviderCallContext, arg1 string) error
DestroyController mocks base method
func (*MockZonedEnviron) EXPECT ¶
func (m *MockZonedEnviron) EXPECT() *MockZonedEnvironMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockZonedEnviron) InstanceAvailabilityZoneNames ¶
func (m *MockZonedEnviron) InstanceAvailabilityZoneNames(arg0 context.ProviderCallContext, arg1 []instance.Id) (map[instance.Id]string, error)
InstanceAvailabilityZoneNames mocks base method
func (*MockZonedEnviron) InstanceTypes ¶
func (m *MockZonedEnviron) InstanceTypes(arg0 context.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method
func (*MockZonedEnviron) Instances ¶
func (m *MockZonedEnviron) Instances(arg0 context.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method
func (*MockZonedEnviron) PrecheckInstance ¶
func (m *MockZonedEnviron) PrecheckInstance(arg0 context.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
PrecheckInstance mocks base method
func (*MockZonedEnviron) PrepareForBootstrap ¶
func (m *MockZonedEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
PrepareForBootstrap mocks base method
func (*MockZonedEnviron) Provider ¶
func (m *MockZonedEnviron) Provider() environs.EnvironProvider
Provider mocks base method
func (*MockZonedEnviron) SetConfig ¶
func (m *MockZonedEnviron) SetConfig(arg0 *config.Config) error
SetConfig mocks base method
func (*MockZonedEnviron) StartInstance ¶
func (m *MockZonedEnviron) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method
func (*MockZonedEnviron) StopInstances ¶
func (m *MockZonedEnviron) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error
StopInstances mocks base method
func (*MockZonedEnviron) StorageProvider ¶
func (m *MockZonedEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
StorageProvider mocks base method
func (*MockZonedEnviron) StorageProviderTypes ¶
func (m *MockZonedEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
StorageProviderTypes mocks base method
type MockZonedEnvironMockRecorder ¶
type MockZonedEnvironMockRecorder struct {
// contains filtered or unexported fields
}
MockZonedEnvironMockRecorder is the mock recorder for MockZonedEnviron
func (*MockZonedEnvironMockRecorder) AdoptResources ¶
func (mr *MockZonedEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 interface{}) *gomock.Call
AdoptResources indicates an expected call of AdoptResources
func (*MockZonedEnvironMockRecorder) AllInstances ¶
func (mr *MockZonedEnvironMockRecorder) AllInstances(arg0 interface{}) *gomock.Call
AllInstances indicates an expected call of AllInstances
func (*MockZonedEnvironMockRecorder) AllRunningInstances ¶
func (mr *MockZonedEnvironMockRecorder) AllRunningInstances(arg0 interface{}) *gomock.Call
AllRunningInstances indicates an expected call of AllRunningInstances
func (*MockZonedEnvironMockRecorder) AvailabilityZones ¶
func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 interface{}) *gomock.Call
AvailabilityZones indicates an expected call of AvailabilityZones
func (*MockZonedEnvironMockRecorder) Bootstrap ¶
func (mr *MockZonedEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 interface{}) *gomock.Call
Bootstrap indicates an expected call of Bootstrap
func (*MockZonedEnvironMockRecorder) Config ¶
func (mr *MockZonedEnvironMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockZonedEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockZonedEnvironMockRecorder) ConstraintsValidator(arg0 interface{}) *gomock.Call
ConstraintsValidator indicates an expected call of ConstraintsValidator
func (*MockZonedEnvironMockRecorder) ControllerInstances ¶
func (mr *MockZonedEnvironMockRecorder) ControllerInstances(arg0, arg1 interface{}) *gomock.Call
ControllerInstances indicates an expected call of ControllerInstances
func (*MockZonedEnvironMockRecorder) Create ¶
func (mr *MockZonedEnvironMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockZonedEnvironMockRecorder) DeriveAvailabilityZones ¶
func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 interface{}) *gomock.Call
DeriveAvailabilityZones indicates an expected call of DeriveAvailabilityZones
func (*MockZonedEnvironMockRecorder) Destroy ¶
func (mr *MockZonedEnvironMockRecorder) Destroy(arg0 interface{}) *gomock.Call
Destroy indicates an expected call of Destroy
func (*MockZonedEnvironMockRecorder) DestroyController ¶
func (mr *MockZonedEnvironMockRecorder) DestroyController(arg0, arg1 interface{}) *gomock.Call
DestroyController indicates an expected call of DestroyController
func (*MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames ¶
func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 interface{}) *gomock.Call
InstanceAvailabilityZoneNames indicates an expected call of InstanceAvailabilityZoneNames
func (*MockZonedEnvironMockRecorder) InstanceTypes ¶
func (mr *MockZonedEnvironMockRecorder) InstanceTypes(arg0, arg1 interface{}) *gomock.Call
InstanceTypes indicates an expected call of InstanceTypes
func (*MockZonedEnvironMockRecorder) Instances ¶
func (mr *MockZonedEnvironMockRecorder) Instances(arg0, arg1 interface{}) *gomock.Call
Instances indicates an expected call of Instances
func (*MockZonedEnvironMockRecorder) PrecheckInstance ¶
func (mr *MockZonedEnvironMockRecorder) PrecheckInstance(arg0, arg1 interface{}) *gomock.Call
PrecheckInstance indicates an expected call of PrecheckInstance
func (*MockZonedEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockZonedEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 interface{}) *gomock.Call
PrepareForBootstrap indicates an expected call of PrepareForBootstrap
func (*MockZonedEnvironMockRecorder) Provider ¶
func (mr *MockZonedEnvironMockRecorder) Provider() *gomock.Call
Provider indicates an expected call of Provider
func (*MockZonedEnvironMockRecorder) SetConfig ¶
func (mr *MockZonedEnvironMockRecorder) SetConfig(arg0 interface{}) *gomock.Call
SetConfig indicates an expected call of SetConfig
func (*MockZonedEnvironMockRecorder) StartInstance ¶
func (mr *MockZonedEnvironMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call
StartInstance indicates an expected call of StartInstance
func (*MockZonedEnvironMockRecorder) StopInstances ¶
func (mr *MockZonedEnvironMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call
StopInstances indicates an expected call of StopInstances
func (*MockZonedEnvironMockRecorder) StorageProvider ¶
func (mr *MockZonedEnvironMockRecorder) StorageProvider(arg0 interface{}) *gomock.Call
StorageProvider indicates an expected call of StorageProvider
func (*MockZonedEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockZonedEnvironMockRecorder) StorageProviderTypes() *gomock.Call
StorageProviderTypes indicates an expected call of StorageProviderTypes