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 MockAvailabilityZoneAvailableCall
- type MockAvailabilityZoneMockRecorder
- type MockAvailabilityZoneNameCall
- type MockInstanceConfigurator
- func (m *MockInstanceConfigurator) ChangeIngressRules(arg0 string, arg1 bool, arg2 firewall.IngressRules) error
- func (m *MockInstanceConfigurator) DropAllPorts(arg0 []int, arg1 string) error
- func (m *MockInstanceConfigurator) EXPECT() *MockInstanceConfiguratorMockRecorder
- func (m *MockInstanceConfigurator) FindIngressRules() (firewall.IngressRules, error)
- type MockInstanceConfiguratorChangeIngressRulesCall
- func (c *MockInstanceConfiguratorChangeIngressRulesCall) Do(f func(string, bool, firewall.IngressRules) error) *MockInstanceConfiguratorChangeIngressRulesCall
- func (c *MockInstanceConfiguratorChangeIngressRulesCall) DoAndReturn(f func(string, bool, firewall.IngressRules) error) *MockInstanceConfiguratorChangeIngressRulesCall
- func (c *MockInstanceConfiguratorChangeIngressRulesCall) Return(arg0 error) *MockInstanceConfiguratorChangeIngressRulesCall
- type MockInstanceConfiguratorDropAllPortsCall
- func (c *MockInstanceConfiguratorDropAllPortsCall) Do(f func([]int, string) error) *MockInstanceConfiguratorDropAllPortsCall
- func (c *MockInstanceConfiguratorDropAllPortsCall) DoAndReturn(f func([]int, string) error) *MockInstanceConfiguratorDropAllPortsCall
- func (c *MockInstanceConfiguratorDropAllPortsCall) Return(arg0 error) *MockInstanceConfiguratorDropAllPortsCall
- type MockInstanceConfiguratorFindIngressRulesCall
- func (c *MockInstanceConfiguratorFindIngressRulesCall) Do(f func() (firewall.IngressRules, error)) *MockInstanceConfiguratorFindIngressRulesCall
- func (c *MockInstanceConfiguratorFindIngressRulesCall) DoAndReturn(f func() (firewall.IngressRules, error)) *MockInstanceConfiguratorFindIngressRulesCall
- func (c *MockInstanceConfiguratorFindIngressRulesCall) Return(arg0 firewall.IngressRules, arg1 error) *MockInstanceConfiguratorFindIngressRulesCall
- type MockInstanceConfiguratorMockRecorder
- func (mr *MockInstanceConfiguratorMockRecorder) ChangeIngressRules(arg0, arg1, arg2 any) *MockInstanceConfiguratorChangeIngressRulesCall
- func (mr *MockInstanceConfiguratorMockRecorder) DropAllPorts(arg0, arg1 any) *MockInstanceConfiguratorDropAllPortsCall
- func (mr *MockInstanceConfiguratorMockRecorder) FindIngressRules() *MockInstanceConfiguratorFindIngressRulesCall
- type MockZonedEnviron
- func (m *MockZonedEnviron) AdoptResources(arg0 envcontext.ProviderCallContext, arg1 string, arg2 version.Number) error
- func (m *MockZonedEnviron) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockZonedEnviron) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockZonedEnviron) AvailabilityZones(arg0 envcontext.ProviderCallContext) (network.AvailabilityZones, error)
- func (m *MockZonedEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 envcontext.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockZonedEnviron) Config() *config.Config
- func (m *MockZonedEnviron) ConstraintsValidator(arg0 envcontext.ProviderCallContext) (constraints.Validator, error)
- func (m *MockZonedEnviron) ControllerInstances(arg0 envcontext.ProviderCallContext, arg1 string) ([]instance.Id, error)
- func (m *MockZonedEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error)
- func (m *MockZonedEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
- func (m *MockZonedEnviron) DestroyController(arg0 envcontext.ProviderCallContext, arg1 string) error
- func (m *MockZonedEnviron) EXPECT() *MockZonedEnvironMockRecorder
- func (m *MockZonedEnviron) InstanceAvailabilityZoneNames(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) (map[instance.Id]string, error)
- func (m *MockZonedEnviron) InstanceTypes(arg0 envcontext.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
- func (m *MockZonedEnviron) Instances(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
- func (m *MockZonedEnviron) PrecheckInstance(arg0 envcontext.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 context.Context, arg1 *config.Config) error
- func (m *MockZonedEnviron) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockZonedEnviron) StopInstances(arg0 envcontext.ProviderCallContext, arg1 ...instance.Id) error
- func (m *MockZonedEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockZonedEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockZonedEnvironAdoptResourcesCall
- func (c *MockZonedEnvironAdoptResourcesCall) Do(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockZonedEnvironAdoptResourcesCall
- func (c *MockZonedEnvironAdoptResourcesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockZonedEnvironAdoptResourcesCall
- func (c *MockZonedEnvironAdoptResourcesCall) Return(arg0 error) *MockZonedEnvironAdoptResourcesCall
- type MockZonedEnvironAllInstancesCall
- func (c *MockZonedEnvironAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllInstancesCall
- func (c *MockZonedEnvironAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllInstancesCall
- func (c *MockZonedEnvironAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockZonedEnvironAllInstancesCall
- type MockZonedEnvironAllRunningInstancesCall
- func (c *MockZonedEnvironAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllRunningInstancesCall
- func (c *MockZonedEnvironAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllRunningInstancesCall
- func (c *MockZonedEnvironAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockZonedEnvironAllRunningInstancesCall
- type MockZonedEnvironAvailabilityZonesCall
- func (c *MockZonedEnvironAvailabilityZonesCall) Do(f func(envcontext.ProviderCallContext) (network.AvailabilityZones, error)) *MockZonedEnvironAvailabilityZonesCall
- func (c *MockZonedEnvironAvailabilityZonesCall) DoAndReturn(f func(envcontext.ProviderCallContext) (network.AvailabilityZones, error)) *MockZonedEnvironAvailabilityZonesCall
- func (c *MockZonedEnvironAvailabilityZonesCall) Return(arg0 network.AvailabilityZones, arg1 error) *MockZonedEnvironAvailabilityZonesCall
- type MockZonedEnvironBootstrapCall
- type MockZonedEnvironConfigCall
- type MockZonedEnvironConstraintsValidatorCall
- func (c *MockZonedEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockZonedEnvironConstraintsValidatorCall
- func (c *MockZonedEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockZonedEnvironConstraintsValidatorCall
- func (c *MockZonedEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockZonedEnvironConstraintsValidatorCall
- type MockZonedEnvironControllerInstancesCall
- func (c *MockZonedEnvironControllerInstancesCall) Do(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockZonedEnvironControllerInstancesCall
- func (c *MockZonedEnvironControllerInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockZonedEnvironControllerInstancesCall
- func (c *MockZonedEnvironControllerInstancesCall) Return(arg0 []instance.Id, arg1 error) *MockZonedEnvironControllerInstancesCall
- type MockZonedEnvironCreateCall
- func (c *MockZonedEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockZonedEnvironCreateCall
- func (c *MockZonedEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockZonedEnvironCreateCall
- func (c *MockZonedEnvironCreateCall) Return(arg0 error) *MockZonedEnvironCreateCall
- type MockZonedEnvironDeriveAvailabilityZonesCall
- func (c *MockZonedEnvironDeriveAvailabilityZonesCall) Do(...) *MockZonedEnvironDeriveAvailabilityZonesCall
- func (c *MockZonedEnvironDeriveAvailabilityZonesCall) DoAndReturn(...) *MockZonedEnvironDeriveAvailabilityZonesCall
- func (c *MockZonedEnvironDeriveAvailabilityZonesCall) Return(arg0 []string, arg1 error) *MockZonedEnvironDeriveAvailabilityZonesCall
- type MockZonedEnvironDestroyCall
- func (c *MockZonedEnvironDestroyCall) Do(f func(envcontext.ProviderCallContext) error) *MockZonedEnvironDestroyCall
- func (c *MockZonedEnvironDestroyCall) DoAndReturn(f func(envcontext.ProviderCallContext) error) *MockZonedEnvironDestroyCall
- func (c *MockZonedEnvironDestroyCall) Return(arg0 error) *MockZonedEnvironDestroyCall
- type MockZonedEnvironDestroyControllerCall
- func (c *MockZonedEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockZonedEnvironDestroyControllerCall
- func (c *MockZonedEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockZonedEnvironDestroyControllerCall
- func (c *MockZonedEnvironDestroyControllerCall) Return(arg0 error) *MockZonedEnvironDestroyControllerCall
- type MockZonedEnvironInstanceAvailabilityZoneNamesCall
- func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) Do(...) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
- func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) DoAndReturn(...) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
- func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) Return(arg0 map[instance.Id]string, arg1 error) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
- type MockZonedEnvironInstanceTypesCall
- func (c *MockZonedEnvironInstanceTypesCall) Do(...) *MockZonedEnvironInstanceTypesCall
- func (c *MockZonedEnvironInstanceTypesCall) DoAndReturn(...) *MockZonedEnvironInstanceTypesCall
- func (c *MockZonedEnvironInstanceTypesCall) Return(arg0 instances.InstanceTypesWithCostMetadata, arg1 error) *MockZonedEnvironInstanceTypesCall
- type MockZonedEnvironInstancesCall
- type MockZonedEnvironMockRecorder
- func (mr *MockZonedEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *MockZonedEnvironAdoptResourcesCall
- func (mr *MockZonedEnvironMockRecorder) AllInstances(arg0 any) *MockZonedEnvironAllInstancesCall
- func (mr *MockZonedEnvironMockRecorder) AllRunningInstances(arg0 any) *MockZonedEnvironAllRunningInstancesCall
- func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 any) *MockZonedEnvironAvailabilityZonesCall
- func (mr *MockZonedEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *MockZonedEnvironBootstrapCall
- func (mr *MockZonedEnvironMockRecorder) Config() *MockZonedEnvironConfigCall
- func (mr *MockZonedEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockZonedEnvironConstraintsValidatorCall
- func (mr *MockZonedEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *MockZonedEnvironControllerInstancesCall
- func (mr *MockZonedEnvironMockRecorder) Create(arg0, arg1 any) *MockZonedEnvironCreateCall
- func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 any) *MockZonedEnvironDeriveAvailabilityZonesCall
- func (mr *MockZonedEnvironMockRecorder) Destroy(arg0 any) *MockZonedEnvironDestroyCall
- func (mr *MockZonedEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockZonedEnvironDestroyControllerCall
- func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 any) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
- func (mr *MockZonedEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *MockZonedEnvironInstanceTypesCall
- func (mr *MockZonedEnvironMockRecorder) Instances(arg0, arg1 any) *MockZonedEnvironInstancesCall
- func (mr *MockZonedEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *MockZonedEnvironPrecheckInstanceCall
- func (mr *MockZonedEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockZonedEnvironPrepareForBootstrapCall
- func (mr *MockZonedEnvironMockRecorder) Provider() *MockZonedEnvironProviderCall
- func (mr *MockZonedEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockZonedEnvironSetConfigCall
- func (mr *MockZonedEnvironMockRecorder) StartInstance(arg0, arg1 any) *MockZonedEnvironStartInstanceCall
- func (mr *MockZonedEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockZonedEnvironStopInstancesCall
- func (mr *MockZonedEnvironMockRecorder) StorageProvider(arg0 any) *MockZonedEnvironStorageProviderCall
- func (mr *MockZonedEnvironMockRecorder) StorageProviderTypes() *MockZonedEnvironStorageProviderTypesCall
- type MockZonedEnvironPrecheckInstanceCall
- func (c *MockZonedEnvironPrecheckInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockZonedEnvironPrecheckInstanceCall
- func (c *MockZonedEnvironPrecheckInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockZonedEnvironPrecheckInstanceCall
- func (c *MockZonedEnvironPrecheckInstanceCall) Return(arg0 error) *MockZonedEnvironPrecheckInstanceCall
- type MockZonedEnvironPrepareForBootstrapCall
- func (c *MockZonedEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockZonedEnvironPrepareForBootstrapCall
- func (c *MockZonedEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockZonedEnvironPrepareForBootstrapCall
- func (c *MockZonedEnvironPrepareForBootstrapCall) Return(arg0 error) *MockZonedEnvironPrepareForBootstrapCall
- type MockZonedEnvironProviderCall
- func (c *MockZonedEnvironProviderCall) Do(f func() environs.EnvironProvider) *MockZonedEnvironProviderCall
- func (c *MockZonedEnvironProviderCall) DoAndReturn(f func() environs.EnvironProvider) *MockZonedEnvironProviderCall
- func (c *MockZonedEnvironProviderCall) Return(arg0 environs.EnvironProvider) *MockZonedEnvironProviderCall
- type MockZonedEnvironSetConfigCall
- func (c *MockZonedEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockZonedEnvironSetConfigCall
- func (c *MockZonedEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockZonedEnvironSetConfigCall
- func (c *MockZonedEnvironSetConfigCall) Return(arg0 error) *MockZonedEnvironSetConfigCall
- type MockZonedEnvironStartInstanceCall
- func (c *MockZonedEnvironStartInstanceCall) Do(...) *MockZonedEnvironStartInstanceCall
- func (c *MockZonedEnvironStartInstanceCall) DoAndReturn(...) *MockZonedEnvironStartInstanceCall
- func (c *MockZonedEnvironStartInstanceCall) Return(arg0 *environs.StartInstanceResult, arg1 error) *MockZonedEnvironStartInstanceCall
- type MockZonedEnvironStopInstancesCall
- func (c *MockZonedEnvironStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockZonedEnvironStopInstancesCall
- func (c *MockZonedEnvironStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockZonedEnvironStopInstancesCall
- func (c *MockZonedEnvironStopInstancesCall) Return(arg0 error) *MockZonedEnvironStopInstancesCall
- type MockZonedEnvironStorageProviderCall
- func (c *MockZonedEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockZonedEnvironStorageProviderCall
- func (c *MockZonedEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockZonedEnvironStorageProviderCall
- func (c *MockZonedEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockZonedEnvironStorageProviderCall
- type MockZonedEnvironStorageProviderTypesCall
- func (c *MockZonedEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockZonedEnvironStorageProviderTypesCall
- func (c *MockZonedEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockZonedEnvironStorageProviderTypesCall
- func (c *MockZonedEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockZonedEnvironStorageProviderTypesCall
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 MockAvailabilityZoneAvailableCall ¶
MockAvailabilityZoneAvailableCall wrap *gomock.Call
func (*MockAvailabilityZoneAvailableCall) Do ¶
func (c *MockAvailabilityZoneAvailableCall) Do(f func() bool) *MockAvailabilityZoneAvailableCall
Do rewrite *gomock.Call.Do
func (*MockAvailabilityZoneAvailableCall) DoAndReturn ¶
func (c *MockAvailabilityZoneAvailableCall) DoAndReturn(f func() bool) *MockAvailabilityZoneAvailableCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAvailabilityZoneAvailableCall) Return ¶
func (c *MockAvailabilityZoneAvailableCall) Return(arg0 bool) *MockAvailabilityZoneAvailableCall
Return rewrite *gomock.Call.Return
type MockAvailabilityZoneMockRecorder ¶
type MockAvailabilityZoneMockRecorder struct {
// contains filtered or unexported fields
}
MockAvailabilityZoneMockRecorder is the mock recorder for MockAvailabilityZone.
func (*MockAvailabilityZoneMockRecorder) Available ¶
func (mr *MockAvailabilityZoneMockRecorder) Available() *MockAvailabilityZoneAvailableCall
Available indicates an expected call of Available.
func (*MockAvailabilityZoneMockRecorder) Name ¶
func (mr *MockAvailabilityZoneMockRecorder) Name() *MockAvailabilityZoneNameCall
Name indicates an expected call of Name.
type MockAvailabilityZoneNameCall ¶
MockAvailabilityZoneNameCall wrap *gomock.Call
func (*MockAvailabilityZoneNameCall) Do ¶
func (c *MockAvailabilityZoneNameCall) Do(f func() string) *MockAvailabilityZoneNameCall
Do rewrite *gomock.Call.Do
func (*MockAvailabilityZoneNameCall) DoAndReturn ¶
func (c *MockAvailabilityZoneNameCall) DoAndReturn(f func() string) *MockAvailabilityZoneNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAvailabilityZoneNameCall) Return ¶
func (c *MockAvailabilityZoneNameCall) Return(arg0 string) *MockAvailabilityZoneNameCall
Return rewrite *gomock.Call.Return
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) 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 MockInstanceConfiguratorChangeIngressRulesCall ¶
MockInstanceConfiguratorChangeIngressRulesCall wrap *gomock.Call
func (*MockInstanceConfiguratorChangeIngressRulesCall) Do ¶
func (c *MockInstanceConfiguratorChangeIngressRulesCall) Do(f func(string, bool, firewall.IngressRules) error) *MockInstanceConfiguratorChangeIngressRulesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceConfiguratorChangeIngressRulesCall) DoAndReturn ¶
func (c *MockInstanceConfiguratorChangeIngressRulesCall) DoAndReturn(f func(string, bool, firewall.IngressRules) error) *MockInstanceConfiguratorChangeIngressRulesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceConfiguratorChangeIngressRulesCall) Return ¶
func (c *MockInstanceConfiguratorChangeIngressRulesCall) Return(arg0 error) *MockInstanceConfiguratorChangeIngressRulesCall
Return rewrite *gomock.Call.Return
type MockInstanceConfiguratorDropAllPortsCall ¶
MockInstanceConfiguratorDropAllPortsCall wrap *gomock.Call
func (*MockInstanceConfiguratorDropAllPortsCall) Do ¶
func (c *MockInstanceConfiguratorDropAllPortsCall) Do(f func([]int, string) error) *MockInstanceConfiguratorDropAllPortsCall
Do rewrite *gomock.Call.Do
func (*MockInstanceConfiguratorDropAllPortsCall) DoAndReturn ¶
func (c *MockInstanceConfiguratorDropAllPortsCall) DoAndReturn(f func([]int, string) error) *MockInstanceConfiguratorDropAllPortsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceConfiguratorDropAllPortsCall) Return ¶
func (c *MockInstanceConfiguratorDropAllPortsCall) Return(arg0 error) *MockInstanceConfiguratorDropAllPortsCall
Return rewrite *gomock.Call.Return
type MockInstanceConfiguratorFindIngressRulesCall ¶
MockInstanceConfiguratorFindIngressRulesCall wrap *gomock.Call
func (*MockInstanceConfiguratorFindIngressRulesCall) Do ¶
func (c *MockInstanceConfiguratorFindIngressRulesCall) Do(f func() (firewall.IngressRules, error)) *MockInstanceConfiguratorFindIngressRulesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceConfiguratorFindIngressRulesCall) DoAndReturn ¶
func (c *MockInstanceConfiguratorFindIngressRulesCall) DoAndReturn(f func() (firewall.IngressRules, error)) *MockInstanceConfiguratorFindIngressRulesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceConfiguratorFindIngressRulesCall) Return ¶
func (c *MockInstanceConfiguratorFindIngressRulesCall) Return(arg0 firewall.IngressRules, arg1 error) *MockInstanceConfiguratorFindIngressRulesCall
Return rewrite *gomock.Call.Return
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 any) *MockInstanceConfiguratorChangeIngressRulesCall
ChangeIngressRules indicates an expected call of ChangeIngressRules.
func (*MockInstanceConfiguratorMockRecorder) DropAllPorts ¶
func (mr *MockInstanceConfiguratorMockRecorder) DropAllPorts(arg0, arg1 any) *MockInstanceConfiguratorDropAllPortsCall
DropAllPorts indicates an expected call of DropAllPorts.
func (*MockInstanceConfiguratorMockRecorder) FindIngressRules ¶
func (mr *MockInstanceConfiguratorMockRecorder) FindIngressRules() *MockInstanceConfiguratorFindIngressRulesCall
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 envcontext.ProviderCallContext, arg1 string, arg2 version.Number) error
AdoptResources mocks base method.
func (*MockZonedEnviron) AllInstances ¶
func (m *MockZonedEnviron) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method.
func (*MockZonedEnviron) AllRunningInstances ¶
func (m *MockZonedEnviron) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method.
func (*MockZonedEnviron) AvailabilityZones ¶
func (m *MockZonedEnviron) AvailabilityZones(arg0 envcontext.ProviderCallContext) (network.AvailabilityZones, error)
AvailabilityZones mocks base method.
func (*MockZonedEnviron) Bootstrap ¶
func (m *MockZonedEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 envcontext.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 envcontext.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockZonedEnviron) ControllerInstances ¶
func (m *MockZonedEnviron) ControllerInstances(arg0 envcontext.ProviderCallContext, arg1 string) ([]instance.Id, error)
ControllerInstances mocks base method.
func (*MockZonedEnviron) Create ¶
func (m *MockZonedEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockZonedEnviron) DeriveAvailabilityZones ¶
func (m *MockZonedEnviron) DeriveAvailabilityZones(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) ([]string, error)
DeriveAvailabilityZones mocks base method.
func (*MockZonedEnviron) Destroy ¶
func (m *MockZonedEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
Destroy mocks base method.
func (*MockZonedEnviron) DestroyController ¶
func (m *MockZonedEnviron) DestroyController(arg0 envcontext.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 envcontext.ProviderCallContext, arg1 []instance.Id) (map[instance.Id]string, error)
InstanceAvailabilityZoneNames mocks base method.
func (*MockZonedEnviron) InstanceTypes ¶
func (m *MockZonedEnviron) InstanceTypes(arg0 envcontext.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method.
func (*MockZonedEnviron) Instances ¶
func (m *MockZonedEnviron) Instances(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method.
func (*MockZonedEnviron) PrecheckInstance ¶
func (m *MockZonedEnviron) PrecheckInstance(arg0 envcontext.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) StartInstance ¶
func (m *MockZonedEnviron) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method.
func (*MockZonedEnviron) StopInstances ¶
func (m *MockZonedEnviron) StopInstances(arg0 envcontext.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 MockZonedEnvironAdoptResourcesCall ¶
MockZonedEnvironAdoptResourcesCall wrap *gomock.Call
func (*MockZonedEnvironAdoptResourcesCall) Do ¶
func (c *MockZonedEnvironAdoptResourcesCall) Do(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockZonedEnvironAdoptResourcesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironAdoptResourcesCall) DoAndReturn ¶
func (c *MockZonedEnvironAdoptResourcesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockZonedEnvironAdoptResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironAdoptResourcesCall) Return ¶
func (c *MockZonedEnvironAdoptResourcesCall) Return(arg0 error) *MockZonedEnvironAdoptResourcesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironAllInstancesCall ¶
MockZonedEnvironAllInstancesCall wrap *gomock.Call
func (*MockZonedEnvironAllInstancesCall) Do ¶
func (c *MockZonedEnvironAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllInstancesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironAllInstancesCall) DoAndReturn ¶
func (c *MockZonedEnvironAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironAllInstancesCall) Return ¶
func (c *MockZonedEnvironAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockZonedEnvironAllInstancesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironAllRunningInstancesCall ¶
MockZonedEnvironAllRunningInstancesCall wrap *gomock.Call
func (*MockZonedEnvironAllRunningInstancesCall) Do ¶
func (c *MockZonedEnvironAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllRunningInstancesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironAllRunningInstancesCall) DoAndReturn ¶
func (c *MockZonedEnvironAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockZonedEnvironAllRunningInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironAllRunningInstancesCall) Return ¶
func (c *MockZonedEnvironAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockZonedEnvironAllRunningInstancesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironAvailabilityZonesCall ¶
MockZonedEnvironAvailabilityZonesCall wrap *gomock.Call
func (*MockZonedEnvironAvailabilityZonesCall) Do ¶
func (c *MockZonedEnvironAvailabilityZonesCall) Do(f func(envcontext.ProviderCallContext) (network.AvailabilityZones, error)) *MockZonedEnvironAvailabilityZonesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironAvailabilityZonesCall) DoAndReturn ¶
func (c *MockZonedEnvironAvailabilityZonesCall) DoAndReturn(f func(envcontext.ProviderCallContext) (network.AvailabilityZones, error)) *MockZonedEnvironAvailabilityZonesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironAvailabilityZonesCall) Return ¶
func (c *MockZonedEnvironAvailabilityZonesCall) Return(arg0 network.AvailabilityZones, arg1 error) *MockZonedEnvironAvailabilityZonesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironBootstrapCall ¶
MockZonedEnvironBootstrapCall wrap *gomock.Call
func (*MockZonedEnvironBootstrapCall) Do ¶
func (c *MockZonedEnvironBootstrapCall) Do(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockZonedEnvironBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironBootstrapCall) DoAndReturn ¶
func (c *MockZonedEnvironBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockZonedEnvironBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironBootstrapCall) Return ¶
func (c *MockZonedEnvironBootstrapCall) Return(arg0 *environs.BootstrapResult, arg1 error) *MockZonedEnvironBootstrapCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironConfigCall ¶
MockZonedEnvironConfigCall wrap *gomock.Call
func (*MockZonedEnvironConfigCall) Do ¶
func (c *MockZonedEnvironConfigCall) Do(f func() *config.Config) *MockZonedEnvironConfigCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironConfigCall) DoAndReturn ¶
func (c *MockZonedEnvironConfigCall) DoAndReturn(f func() *config.Config) *MockZonedEnvironConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironConfigCall) Return ¶
func (c *MockZonedEnvironConfigCall) Return(arg0 *config.Config) *MockZonedEnvironConfigCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironConstraintsValidatorCall ¶
MockZonedEnvironConstraintsValidatorCall wrap *gomock.Call
func (*MockZonedEnvironConstraintsValidatorCall) Do ¶
func (c *MockZonedEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockZonedEnvironConstraintsValidatorCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironConstraintsValidatorCall) DoAndReturn ¶
func (c *MockZonedEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockZonedEnvironConstraintsValidatorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironConstraintsValidatorCall) Return ¶
func (c *MockZonedEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockZonedEnvironConstraintsValidatorCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironControllerInstancesCall ¶
MockZonedEnvironControllerInstancesCall wrap *gomock.Call
func (*MockZonedEnvironControllerInstancesCall) Do ¶
func (c *MockZonedEnvironControllerInstancesCall) Do(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockZonedEnvironControllerInstancesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironControllerInstancesCall) DoAndReturn ¶
func (c *MockZonedEnvironControllerInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockZonedEnvironControllerInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironControllerInstancesCall) Return ¶
func (c *MockZonedEnvironControllerInstancesCall) Return(arg0 []instance.Id, arg1 error) *MockZonedEnvironControllerInstancesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironCreateCall ¶
MockZonedEnvironCreateCall wrap *gomock.Call
func (*MockZonedEnvironCreateCall) Do ¶
func (c *MockZonedEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockZonedEnvironCreateCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironCreateCall) DoAndReturn ¶
func (c *MockZonedEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockZonedEnvironCreateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironCreateCall) Return ¶
func (c *MockZonedEnvironCreateCall) Return(arg0 error) *MockZonedEnvironCreateCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironDeriveAvailabilityZonesCall ¶
MockZonedEnvironDeriveAvailabilityZonesCall wrap *gomock.Call
func (*MockZonedEnvironDeriveAvailabilityZonesCall) Do ¶
func (c *MockZonedEnvironDeriveAvailabilityZonesCall) Do(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) ([]string, error)) *MockZonedEnvironDeriveAvailabilityZonesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironDeriveAvailabilityZonesCall) DoAndReturn ¶
func (c *MockZonedEnvironDeriveAvailabilityZonesCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) ([]string, error)) *MockZonedEnvironDeriveAvailabilityZonesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironDeriveAvailabilityZonesCall) Return ¶
func (c *MockZonedEnvironDeriveAvailabilityZonesCall) Return(arg0 []string, arg1 error) *MockZonedEnvironDeriveAvailabilityZonesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironDestroyCall ¶
MockZonedEnvironDestroyCall wrap *gomock.Call
func (*MockZonedEnvironDestroyCall) Do ¶
func (c *MockZonedEnvironDestroyCall) Do(f func(envcontext.ProviderCallContext) error) *MockZonedEnvironDestroyCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironDestroyCall) DoAndReturn ¶
func (c *MockZonedEnvironDestroyCall) DoAndReturn(f func(envcontext.ProviderCallContext) error) *MockZonedEnvironDestroyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironDestroyCall) Return ¶
func (c *MockZonedEnvironDestroyCall) Return(arg0 error) *MockZonedEnvironDestroyCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironDestroyControllerCall ¶
MockZonedEnvironDestroyControllerCall wrap *gomock.Call
func (*MockZonedEnvironDestroyControllerCall) Do ¶
func (c *MockZonedEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockZonedEnvironDestroyControllerCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironDestroyControllerCall) DoAndReturn ¶
func (c *MockZonedEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockZonedEnvironDestroyControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironDestroyControllerCall) Return ¶
func (c *MockZonedEnvironDestroyControllerCall) Return(arg0 error) *MockZonedEnvironDestroyControllerCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironInstanceAvailabilityZoneNamesCall ¶
MockZonedEnvironInstanceAvailabilityZoneNamesCall wrap *gomock.Call
func (*MockZonedEnvironInstanceAvailabilityZoneNamesCall) Do ¶
func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) Do(f func(envcontext.ProviderCallContext, []instance.Id) (map[instance.Id]string, error)) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironInstanceAvailabilityZoneNamesCall) DoAndReturn ¶
func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) DoAndReturn(f func(envcontext.ProviderCallContext, []instance.Id) (map[instance.Id]string, error)) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironInstanceAvailabilityZoneNamesCall) Return ¶
func (c *MockZonedEnvironInstanceAvailabilityZoneNamesCall) Return(arg0 map[instance.Id]string, arg1 error) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironInstanceTypesCall ¶
MockZonedEnvironInstanceTypesCall wrap *gomock.Call
func (*MockZonedEnvironInstanceTypesCall) Do ¶
func (c *MockZonedEnvironInstanceTypesCall) Do(f func(envcontext.ProviderCallContext, constraints.Value) (instances.InstanceTypesWithCostMetadata, error)) *MockZonedEnvironInstanceTypesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironInstanceTypesCall) DoAndReturn ¶
func (c *MockZonedEnvironInstanceTypesCall) DoAndReturn(f func(envcontext.ProviderCallContext, constraints.Value) (instances.InstanceTypesWithCostMetadata, error)) *MockZonedEnvironInstanceTypesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironInstanceTypesCall) Return ¶
func (c *MockZonedEnvironInstanceTypesCall) Return(arg0 instances.InstanceTypesWithCostMetadata, arg1 error) *MockZonedEnvironInstanceTypesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironInstancesCall ¶
MockZonedEnvironInstancesCall wrap *gomock.Call
func (*MockZonedEnvironInstancesCall) Do ¶
func (c *MockZonedEnvironInstancesCall) Do(f func(envcontext.ProviderCallContext, []instance.Id) ([]instances.Instance, error)) *MockZonedEnvironInstancesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironInstancesCall) DoAndReturn ¶
func (c *MockZonedEnvironInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, []instance.Id) ([]instances.Instance, error)) *MockZonedEnvironInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironInstancesCall) Return ¶
func (c *MockZonedEnvironInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockZonedEnvironInstancesCall
Return rewrite *gomock.Call.Return
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 any) *MockZonedEnvironAdoptResourcesCall
AdoptResources indicates an expected call of AdoptResources.
func (*MockZonedEnvironMockRecorder) AllInstances ¶
func (mr *MockZonedEnvironMockRecorder) AllInstances(arg0 any) *MockZonedEnvironAllInstancesCall
AllInstances indicates an expected call of AllInstances.
func (*MockZonedEnvironMockRecorder) AllRunningInstances ¶
func (mr *MockZonedEnvironMockRecorder) AllRunningInstances(arg0 any) *MockZonedEnvironAllRunningInstancesCall
AllRunningInstances indicates an expected call of AllRunningInstances.
func (*MockZonedEnvironMockRecorder) AvailabilityZones ¶
func (mr *MockZonedEnvironMockRecorder) AvailabilityZones(arg0 any) *MockZonedEnvironAvailabilityZonesCall
AvailabilityZones indicates an expected call of AvailabilityZones.
func (*MockZonedEnvironMockRecorder) Bootstrap ¶
func (mr *MockZonedEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *MockZonedEnvironBootstrapCall
Bootstrap indicates an expected call of Bootstrap.
func (*MockZonedEnvironMockRecorder) Config ¶
func (mr *MockZonedEnvironMockRecorder) Config() *MockZonedEnvironConfigCall
Config indicates an expected call of Config.
func (*MockZonedEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockZonedEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockZonedEnvironConstraintsValidatorCall
ConstraintsValidator indicates an expected call of ConstraintsValidator.
func (*MockZonedEnvironMockRecorder) ControllerInstances ¶
func (mr *MockZonedEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *MockZonedEnvironControllerInstancesCall
ControllerInstances indicates an expected call of ControllerInstances.
func (*MockZonedEnvironMockRecorder) Create ¶
func (mr *MockZonedEnvironMockRecorder) Create(arg0, arg1 any) *MockZonedEnvironCreateCall
Create indicates an expected call of Create.
func (*MockZonedEnvironMockRecorder) DeriveAvailabilityZones ¶
func (mr *MockZonedEnvironMockRecorder) DeriveAvailabilityZones(arg0, arg1 any) *MockZonedEnvironDeriveAvailabilityZonesCall
DeriveAvailabilityZones indicates an expected call of DeriveAvailabilityZones.
func (*MockZonedEnvironMockRecorder) Destroy ¶
func (mr *MockZonedEnvironMockRecorder) Destroy(arg0 any) *MockZonedEnvironDestroyCall
Destroy indicates an expected call of Destroy.
func (*MockZonedEnvironMockRecorder) DestroyController ¶
func (mr *MockZonedEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockZonedEnvironDestroyControllerCall
DestroyController indicates an expected call of DestroyController.
func (*MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames ¶
func (mr *MockZonedEnvironMockRecorder) InstanceAvailabilityZoneNames(arg0, arg1 any) *MockZonedEnvironInstanceAvailabilityZoneNamesCall
InstanceAvailabilityZoneNames indicates an expected call of InstanceAvailabilityZoneNames.
func (*MockZonedEnvironMockRecorder) InstanceTypes ¶
func (mr *MockZonedEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *MockZonedEnvironInstanceTypesCall
InstanceTypes indicates an expected call of InstanceTypes.
func (*MockZonedEnvironMockRecorder) Instances ¶
func (mr *MockZonedEnvironMockRecorder) Instances(arg0, arg1 any) *MockZonedEnvironInstancesCall
Instances indicates an expected call of Instances.
func (*MockZonedEnvironMockRecorder) PrecheckInstance ¶
func (mr *MockZonedEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *MockZonedEnvironPrecheckInstanceCall
PrecheckInstance indicates an expected call of PrecheckInstance.
func (*MockZonedEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockZonedEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockZonedEnvironPrepareForBootstrapCall
PrepareForBootstrap indicates an expected call of PrepareForBootstrap.
func (*MockZonedEnvironMockRecorder) Provider ¶
func (mr *MockZonedEnvironMockRecorder) Provider() *MockZonedEnvironProviderCall
Provider indicates an expected call of Provider.
func (*MockZonedEnvironMockRecorder) SetConfig ¶
func (mr *MockZonedEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockZonedEnvironSetConfigCall
SetConfig indicates an expected call of SetConfig.
func (*MockZonedEnvironMockRecorder) StartInstance ¶
func (mr *MockZonedEnvironMockRecorder) StartInstance(arg0, arg1 any) *MockZonedEnvironStartInstanceCall
StartInstance indicates an expected call of StartInstance.
func (*MockZonedEnvironMockRecorder) StopInstances ¶
func (mr *MockZonedEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockZonedEnvironStopInstancesCall
StopInstances indicates an expected call of StopInstances.
func (*MockZonedEnvironMockRecorder) StorageProvider ¶
func (mr *MockZonedEnvironMockRecorder) StorageProvider(arg0 any) *MockZonedEnvironStorageProviderCall
StorageProvider indicates an expected call of StorageProvider.
func (*MockZonedEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockZonedEnvironMockRecorder) StorageProviderTypes() *MockZonedEnvironStorageProviderTypesCall
StorageProviderTypes indicates an expected call of StorageProviderTypes.
type MockZonedEnvironPrecheckInstanceCall ¶
MockZonedEnvironPrecheckInstanceCall wrap *gomock.Call
func (*MockZonedEnvironPrecheckInstanceCall) Do ¶
func (c *MockZonedEnvironPrecheckInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockZonedEnvironPrecheckInstanceCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironPrecheckInstanceCall) DoAndReturn ¶
func (c *MockZonedEnvironPrecheckInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockZonedEnvironPrecheckInstanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironPrecheckInstanceCall) Return ¶
func (c *MockZonedEnvironPrecheckInstanceCall) Return(arg0 error) *MockZonedEnvironPrecheckInstanceCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironPrepareForBootstrapCall ¶
MockZonedEnvironPrepareForBootstrapCall wrap *gomock.Call
func (*MockZonedEnvironPrepareForBootstrapCall) Do ¶
func (c *MockZonedEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockZonedEnvironPrepareForBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironPrepareForBootstrapCall) DoAndReturn ¶
func (c *MockZonedEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockZonedEnvironPrepareForBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironPrepareForBootstrapCall) Return ¶
func (c *MockZonedEnvironPrepareForBootstrapCall) Return(arg0 error) *MockZonedEnvironPrepareForBootstrapCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironProviderCall ¶
MockZonedEnvironProviderCall wrap *gomock.Call
func (*MockZonedEnvironProviderCall) Do ¶
func (c *MockZonedEnvironProviderCall) Do(f func() environs.EnvironProvider) *MockZonedEnvironProviderCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironProviderCall) DoAndReturn ¶
func (c *MockZonedEnvironProviderCall) DoAndReturn(f func() environs.EnvironProvider) *MockZonedEnvironProviderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironProviderCall) Return ¶
func (c *MockZonedEnvironProviderCall) Return(arg0 environs.EnvironProvider) *MockZonedEnvironProviderCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironSetConfigCall ¶
MockZonedEnvironSetConfigCall wrap *gomock.Call
func (*MockZonedEnvironSetConfigCall) Do ¶
func (c *MockZonedEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockZonedEnvironSetConfigCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironSetConfigCall) DoAndReturn ¶
func (c *MockZonedEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockZonedEnvironSetConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironSetConfigCall) Return ¶
func (c *MockZonedEnvironSetConfigCall) Return(arg0 error) *MockZonedEnvironSetConfigCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironStartInstanceCall ¶
MockZonedEnvironStartInstanceCall wrap *gomock.Call
func (*MockZonedEnvironStartInstanceCall) Do ¶
func (c *MockZonedEnvironStartInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockZonedEnvironStartInstanceCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironStartInstanceCall) DoAndReturn ¶
func (c *MockZonedEnvironStartInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockZonedEnvironStartInstanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironStartInstanceCall) Return ¶
func (c *MockZonedEnvironStartInstanceCall) Return(arg0 *environs.StartInstanceResult, arg1 error) *MockZonedEnvironStartInstanceCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironStopInstancesCall ¶
MockZonedEnvironStopInstancesCall wrap *gomock.Call
func (*MockZonedEnvironStopInstancesCall) Do ¶
func (c *MockZonedEnvironStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockZonedEnvironStopInstancesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironStopInstancesCall) DoAndReturn ¶
func (c *MockZonedEnvironStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockZonedEnvironStopInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironStopInstancesCall) Return ¶
func (c *MockZonedEnvironStopInstancesCall) Return(arg0 error) *MockZonedEnvironStopInstancesCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironStorageProviderCall ¶
MockZonedEnvironStorageProviderCall wrap *gomock.Call
func (*MockZonedEnvironStorageProviderCall) Do ¶
func (c *MockZonedEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockZonedEnvironStorageProviderCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironStorageProviderCall) DoAndReturn ¶
func (c *MockZonedEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockZonedEnvironStorageProviderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironStorageProviderCall) Return ¶
func (c *MockZonedEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockZonedEnvironStorageProviderCall
Return rewrite *gomock.Call.Return
type MockZonedEnvironStorageProviderTypesCall ¶
MockZonedEnvironStorageProviderTypesCall wrap *gomock.Call
func (*MockZonedEnvironStorageProviderTypesCall) Do ¶
func (c *MockZonedEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockZonedEnvironStorageProviderTypesCall
Do rewrite *gomock.Call.Do
func (*MockZonedEnvironStorageProviderTypesCall) DoAndReturn ¶
func (c *MockZonedEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockZonedEnvironStorageProviderTypesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockZonedEnvironStorageProviderTypesCall) Return ¶
func (c *MockZonedEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockZonedEnvironStorageProviderTypesCall
Return rewrite *gomock.Call.Return