Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCloudEnvironProvider
- func (m *MockCloudEnvironProvider) CloudSchema() *jsonschema.Schema
- func (m *MockCloudEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema
- func (m *MockCloudEnvironProvider) DetectCredentials(arg0 string) (*cloud.CloudCredential, error)
- func (m *MockCloudEnvironProvider) EXPECT() *MockCloudEnvironProviderMockRecorder
- func (m *MockCloudEnvironProvider) FinalizeCredential(arg0 environs.FinalizeCredentialContext, ...) (*cloud.Credential, error)
- func (m *MockCloudEnvironProvider) Open(arg0 context.Context, arg1 environs.OpenParams) (environs.Environ, error)
- func (m *MockCloudEnvironProvider) Ping(arg0 context0.ProviderCallContext, arg1 string) error
- func (m *MockCloudEnvironProvider) PrepareConfig(arg0 environs.PrepareConfigParams) (*config.Config, error)
- func (m *MockCloudEnvironProvider) Validate(arg0, arg1 *config.Config) (*config.Config, error)
- func (m *MockCloudEnvironProvider) Version() int
- type MockCloudEnvironProviderMockRecorder
- func (mr *MockCloudEnvironProviderMockRecorder) CloudSchema() *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) CredentialSchemas() *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) DetectCredentials(arg0 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) FinalizeCredential(arg0, arg1 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) Open(arg0, arg1 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) Ping(arg0, arg1 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) PrepareConfig(arg0 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) Validate(arg0, arg1 any) *gomock.Call
- func (mr *MockCloudEnvironProviderMockRecorder) Version() *gomock.Call
- type MockEnviron
- func (m *MockEnviron) AdoptResources(arg0 context0.ProviderCallContext, arg1 string, arg2 version.Number) error
- func (m *MockEnviron) AllInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockEnviron) AllRunningInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context0.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockEnviron) Config() *config.Config
- func (m *MockEnviron) ConstraintsValidator(arg0 context0.ProviderCallContext) (constraints.Validator, error)
- func (m *MockEnviron) ControllerInstances(arg0 context0.ProviderCallContext, arg1 string) ([]instance.Id, error)
- func (m *MockEnviron) Create(arg0 context0.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockEnviron) Destroy(arg0 context0.ProviderCallContext) error
- func (m *MockEnviron) DestroyController(arg0 context0.ProviderCallContext, arg1 string) error
- func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder
- func (m *MockEnviron) InstanceTypes(arg0 context0.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
- func (m *MockEnviron) Instances(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
- func (m *MockEnviron) PrecheckInstance(arg0 context0.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
- func (m *MockEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
- func (m *MockEnviron) Provider() environs.EnvironProvider
- func (m *MockEnviron) SetConfig(arg0 *config.Config) error
- func (m *MockEnviron) StartInstance(arg0 context0.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockEnviron) StopInstances(arg0 context0.ProviderCallContext, arg1 ...instance.Id) error
- func (m *MockEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockEnvironMockRecorder
- func (mr *MockEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) AllInstances(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Config() *gomock.Call
- func (mr *MockEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Destroy(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) Provider() *gomock.Call
- func (mr *MockEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call
- func (mr *MockEnvironMockRecorder) StorageProviderTypes() *gomock.Call
- type MockInstanceTypesFetcher
- type MockInstanceTypesFetcherMockRecorder
- type MockNetworkingEnviron
- func (m *MockNetworkingEnviron) AdoptResources(arg0 context0.ProviderCallContext, arg1 string, arg2 version.Number) error
- func (m *MockNetworkingEnviron) AllInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockNetworkingEnviron) AllRunningInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockNetworkingEnviron) AllocateContainerAddresses(arg0 context0.ProviderCallContext, arg1 instance.Id, arg2 names.MachineTag, ...) (network.InterfaceInfos, error)
- func (m *MockNetworkingEnviron) AreSpacesRoutable(arg0 context0.ProviderCallContext, arg1, arg2 *environs.ProviderSpaceInfo) (bool, error)
- func (m *MockNetworkingEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context0.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockNetworkingEnviron) Config() *config.Config
- func (m *MockNetworkingEnviron) ConstraintsValidator(arg0 context0.ProviderCallContext) (constraints.Validator, error)
- func (m *MockNetworkingEnviron) ControllerInstances(arg0 context0.ProviderCallContext, arg1 string) ([]instance.Id, error)
- func (m *MockNetworkingEnviron) Create(arg0 context0.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockNetworkingEnviron) Destroy(arg0 context0.ProviderCallContext) error
- func (m *MockNetworkingEnviron) DestroyController(arg0 context0.ProviderCallContext, arg1 string) error
- func (m *MockNetworkingEnviron) EXPECT() *MockNetworkingEnvironMockRecorder
- func (m *MockNetworkingEnviron) InstanceTypes(arg0 context0.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
- func (m *MockNetworkingEnviron) Instances(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
- func (m *MockNetworkingEnviron) NetworkInterfaces(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]network.InterfaceInfos, error)
- func (m *MockNetworkingEnviron) PrecheckInstance(arg0 context0.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
- func (m *MockNetworkingEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
- func (m *MockNetworkingEnviron) Provider() environs.EnvironProvider
- func (m *MockNetworkingEnviron) ProviderSpaceInfo(arg0 context0.ProviderCallContext, arg1 *network.SpaceInfo) (*environs.ProviderSpaceInfo, error)
- func (m *MockNetworkingEnviron) ReleaseContainerAddresses(arg0 context0.ProviderCallContext, arg1 []network.ProviderInterfaceInfo) error
- func (m *MockNetworkingEnviron) SetConfig(arg0 *config.Config) error
- func (m *MockNetworkingEnviron) Spaces(arg0 context0.ProviderCallContext) (network.SpaceInfos, error)
- func (m *MockNetworkingEnviron) StartInstance(arg0 context0.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockNetworkingEnviron) StopInstances(arg0 context0.ProviderCallContext, arg1 ...instance.Id) error
- func (m *MockNetworkingEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockNetworkingEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- func (m *MockNetworkingEnviron) Subnets(arg0 context0.ProviderCallContext, arg1 instance.Id, arg2 []network.Id) ([]network.SubnetInfo, error)
- func (m *MockNetworkingEnviron) SuperSubnets(arg0 context0.ProviderCallContext) ([]string, error)
- func (m *MockNetworkingEnviron) SupportsContainerAddresses(arg0 context0.ProviderCallContext) (bool, error)
- func (m *MockNetworkingEnviron) SupportsSpaceDiscovery(arg0 context0.ProviderCallContext) (bool, error)
- func (m *MockNetworkingEnviron) SupportsSpaces(arg0 context0.ProviderCallContext) (bool, error)
- type MockNetworkingEnvironMockRecorder
- func (mr *MockNetworkingEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) AllInstances(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) AllRunningInstances(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) AllocateContainerAddresses(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) AreSpacesRoutable(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Config() *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Destroy(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) NetworkInterfaces(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Provider() *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) ProviderSpaceInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Spaces(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) StorageProviderTypes() *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) Subnets(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) SuperSubnets(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) SupportsContainerAddresses(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery(arg0 any) *gomock.Call
- func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaces(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCloudEnvironProvider ¶
type MockCloudEnvironProvider struct {
// contains filtered or unexported fields
}
MockCloudEnvironProvider is a mock of CloudEnvironProvider interface.
func NewMockCloudEnvironProvider ¶
func NewMockCloudEnvironProvider(ctrl *gomock.Controller) *MockCloudEnvironProvider
NewMockCloudEnvironProvider creates a new mock instance.
func (*MockCloudEnvironProvider) CloudSchema ¶
func (m *MockCloudEnvironProvider) CloudSchema() *jsonschema.Schema
CloudSchema mocks base method.
func (*MockCloudEnvironProvider) CredentialSchemas ¶
func (m *MockCloudEnvironProvider) CredentialSchemas() map[cloud.AuthType]cloud.CredentialSchema
CredentialSchemas mocks base method.
func (*MockCloudEnvironProvider) DetectCredentials ¶
func (m *MockCloudEnvironProvider) DetectCredentials(arg0 string) (*cloud.CloudCredential, error)
DetectCredentials mocks base method.
func (*MockCloudEnvironProvider) EXPECT ¶
func (m *MockCloudEnvironProvider) EXPECT() *MockCloudEnvironProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCloudEnvironProvider) FinalizeCredential ¶
func (m *MockCloudEnvironProvider) FinalizeCredential(arg0 environs.FinalizeCredentialContext, arg1 environs.FinalizeCredentialParams) (*cloud.Credential, error)
FinalizeCredential mocks base method.
func (*MockCloudEnvironProvider) Open ¶
func (m *MockCloudEnvironProvider) Open(arg0 context.Context, arg1 environs.OpenParams) (environs.Environ, error)
Open mocks base method.
func (*MockCloudEnvironProvider) Ping ¶
func (m *MockCloudEnvironProvider) Ping(arg0 context0.ProviderCallContext, arg1 string) error
Ping mocks base method.
func (*MockCloudEnvironProvider) PrepareConfig ¶
func (m *MockCloudEnvironProvider) PrepareConfig(arg0 environs.PrepareConfigParams) (*config.Config, error)
PrepareConfig mocks base method.
func (*MockCloudEnvironProvider) Version ¶
func (m *MockCloudEnvironProvider) Version() int
Version mocks base method.
type MockCloudEnvironProviderMockRecorder ¶
type MockCloudEnvironProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockCloudEnvironProviderMockRecorder is the mock recorder for MockCloudEnvironProvider.
func (*MockCloudEnvironProviderMockRecorder) CloudSchema ¶
func (mr *MockCloudEnvironProviderMockRecorder) CloudSchema() *gomock.Call
CloudSchema indicates an expected call of CloudSchema.
func (*MockCloudEnvironProviderMockRecorder) CredentialSchemas ¶
func (mr *MockCloudEnvironProviderMockRecorder) CredentialSchemas() *gomock.Call
CredentialSchemas indicates an expected call of CredentialSchemas.
func (*MockCloudEnvironProviderMockRecorder) DetectCredentials ¶
func (mr *MockCloudEnvironProviderMockRecorder) DetectCredentials(arg0 any) *gomock.Call
DetectCredentials indicates an expected call of DetectCredentials.
func (*MockCloudEnvironProviderMockRecorder) FinalizeCredential ¶
func (mr *MockCloudEnvironProviderMockRecorder) FinalizeCredential(arg0, arg1 any) *gomock.Call
FinalizeCredential indicates an expected call of FinalizeCredential.
func (*MockCloudEnvironProviderMockRecorder) Open ¶
func (mr *MockCloudEnvironProviderMockRecorder) Open(arg0, arg1 any) *gomock.Call
Open indicates an expected call of Open.
func (*MockCloudEnvironProviderMockRecorder) Ping ¶
func (mr *MockCloudEnvironProviderMockRecorder) Ping(arg0, arg1 any) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockCloudEnvironProviderMockRecorder) PrepareConfig ¶
func (mr *MockCloudEnvironProviderMockRecorder) PrepareConfig(arg0 any) *gomock.Call
PrepareConfig indicates an expected call of PrepareConfig.
func (*MockCloudEnvironProviderMockRecorder) Validate ¶
func (mr *MockCloudEnvironProviderMockRecorder) Validate(arg0, arg1 any) *gomock.Call
Validate indicates an expected call of Validate.
func (*MockCloudEnvironProviderMockRecorder) Version ¶
func (mr *MockCloudEnvironProviderMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.
type MockEnviron ¶
type MockEnviron struct {
// contains filtered or unexported fields
}
MockEnviron is a mock of Environ interface.
func NewMockEnviron ¶
func NewMockEnviron(ctrl *gomock.Controller) *MockEnviron
NewMockEnviron creates a new mock instance.
func (*MockEnviron) AdoptResources ¶
func (m *MockEnviron) AdoptResources(arg0 context0.ProviderCallContext, arg1 string, arg2 version.Number) error
AdoptResources mocks base method.
func (*MockEnviron) AllInstances ¶
func (m *MockEnviron) AllInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method.
func (*MockEnviron) AllRunningInstances ¶
func (m *MockEnviron) AllRunningInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method.
func (*MockEnviron) Bootstrap ¶
func (m *MockEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context0.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error)
Bootstrap mocks base method.
func (*MockEnviron) Config ¶
func (m *MockEnviron) Config() *config.Config
Config mocks base method.
func (*MockEnviron) ConstraintsValidator ¶
func (m *MockEnviron) ConstraintsValidator(arg0 context0.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockEnviron) ControllerInstances ¶
func (m *MockEnviron) ControllerInstances(arg0 context0.ProviderCallContext, arg1 string) ([]instance.Id, error)
ControllerInstances mocks base method.
func (*MockEnviron) Create ¶
func (m *MockEnviron) Create(arg0 context0.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockEnviron) Destroy ¶
func (m *MockEnviron) Destroy(arg0 context0.ProviderCallContext) error
Destroy mocks base method.
func (*MockEnviron) DestroyController ¶
func (m *MockEnviron) DestroyController(arg0 context0.ProviderCallContext, arg1 string) error
DestroyController mocks base method.
func (*MockEnviron) EXPECT ¶
func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEnviron) InstanceTypes ¶
func (m *MockEnviron) InstanceTypes(arg0 context0.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method.
func (*MockEnviron) Instances ¶
func (m *MockEnviron) Instances(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method.
func (*MockEnviron) PrecheckInstance ¶
func (m *MockEnviron) PrecheckInstance(arg0 context0.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
PrecheckInstance mocks base method.
func (*MockEnviron) PrepareForBootstrap ¶
func (m *MockEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
PrepareForBootstrap mocks base method.
func (*MockEnviron) Provider ¶
func (m *MockEnviron) Provider() environs.EnvironProvider
Provider mocks base method.
func (*MockEnviron) SetConfig ¶
func (m *MockEnviron) SetConfig(arg0 *config.Config) error
SetConfig mocks base method.
func (*MockEnviron) StartInstance ¶
func (m *MockEnviron) StartInstance(arg0 context0.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method.
func (*MockEnviron) StopInstances ¶
func (m *MockEnviron) StopInstances(arg0 context0.ProviderCallContext, arg1 ...instance.Id) error
StopInstances mocks base method.
func (*MockEnviron) StorageProvider ¶
func (m *MockEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
StorageProvider mocks base method.
func (*MockEnviron) StorageProviderTypes ¶
func (m *MockEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
StorageProviderTypes mocks base method.
type MockEnvironMockRecorder ¶
type MockEnvironMockRecorder struct {
// contains filtered or unexported fields
}
MockEnvironMockRecorder is the mock recorder for MockEnviron.
func (*MockEnvironMockRecorder) AdoptResources ¶
func (mr *MockEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *gomock.Call
AdoptResources indicates an expected call of AdoptResources.
func (*MockEnvironMockRecorder) AllInstances ¶
func (mr *MockEnvironMockRecorder) AllInstances(arg0 any) *gomock.Call
AllInstances indicates an expected call of AllInstances.
func (*MockEnvironMockRecorder) AllRunningInstances ¶
func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 any) *gomock.Call
AllRunningInstances indicates an expected call of AllRunningInstances.
func (*MockEnvironMockRecorder) Bootstrap ¶
func (mr *MockEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call
Bootstrap indicates an expected call of Bootstrap.
func (*MockEnvironMockRecorder) Config ¶
func (mr *MockEnvironMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call
ConstraintsValidator indicates an expected call of ConstraintsValidator.
func (*MockEnvironMockRecorder) ControllerInstances ¶
func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *gomock.Call
ControllerInstances indicates an expected call of ControllerInstances.
func (*MockEnvironMockRecorder) Create ¶
func (mr *MockEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockEnvironMockRecorder) Destroy ¶
func (mr *MockEnvironMockRecorder) Destroy(arg0 any) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockEnvironMockRecorder) DestroyController ¶
func (mr *MockEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call
DestroyController indicates an expected call of DestroyController.
func (*MockEnvironMockRecorder) InstanceTypes ¶
func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call
InstanceTypes indicates an expected call of InstanceTypes.
func (*MockEnvironMockRecorder) Instances ¶
func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call
Instances indicates an expected call of Instances.
func (*MockEnvironMockRecorder) PrecheckInstance ¶
func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *gomock.Call
PrecheckInstance indicates an expected call of PrecheckInstance.
func (*MockEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call
PrepareForBootstrap indicates an expected call of PrepareForBootstrap.
func (*MockEnvironMockRecorder) Provider ¶
func (mr *MockEnvironMockRecorder) Provider() *gomock.Call
Provider indicates an expected call of Provider.
func (*MockEnvironMockRecorder) SetConfig ¶
func (mr *MockEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call
SetConfig indicates an expected call of SetConfig.
func (*MockEnvironMockRecorder) StartInstance ¶
func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call
StartInstance indicates an expected call of StartInstance.
func (*MockEnvironMockRecorder) StopInstances ¶
func (mr *MockEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call
StopInstances indicates an expected call of StopInstances.
func (*MockEnvironMockRecorder) StorageProvider ¶
func (mr *MockEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call
StorageProvider indicates an expected call of StorageProvider.
func (*MockEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockEnvironMockRecorder) StorageProviderTypes() *gomock.Call
StorageProviderTypes indicates an expected call of StorageProviderTypes.
type MockInstanceTypesFetcher ¶
type MockInstanceTypesFetcher struct {
// contains filtered or unexported fields
}
MockInstanceTypesFetcher is a mock of InstanceTypesFetcher interface.
func NewMockInstanceTypesFetcher ¶
func NewMockInstanceTypesFetcher(ctrl *gomock.Controller) *MockInstanceTypesFetcher
NewMockInstanceTypesFetcher creates a new mock instance.
func (*MockInstanceTypesFetcher) EXPECT ¶
func (m *MockInstanceTypesFetcher) EXPECT() *MockInstanceTypesFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceTypesFetcher) InstanceTypes ¶
func (m *MockInstanceTypesFetcher) InstanceTypes(arg0 context0.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method.
type MockInstanceTypesFetcherMockRecorder ¶
type MockInstanceTypesFetcherMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceTypesFetcherMockRecorder is the mock recorder for MockInstanceTypesFetcher.
func (*MockInstanceTypesFetcherMockRecorder) InstanceTypes ¶
func (mr *MockInstanceTypesFetcherMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call
InstanceTypes indicates an expected call of InstanceTypes.
type MockNetworkingEnviron ¶
type MockNetworkingEnviron struct {
// contains filtered or unexported fields
}
MockNetworkingEnviron is a mock of NetworkingEnviron interface.
func NewMockNetworkingEnviron ¶
func NewMockNetworkingEnviron(ctrl *gomock.Controller) *MockNetworkingEnviron
NewMockNetworkingEnviron creates a new mock instance.
func (*MockNetworkingEnviron) AdoptResources ¶
func (m *MockNetworkingEnviron) AdoptResources(arg0 context0.ProviderCallContext, arg1 string, arg2 version.Number) error
AdoptResources mocks base method.
func (*MockNetworkingEnviron) AllInstances ¶
func (m *MockNetworkingEnviron) AllInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method.
func (*MockNetworkingEnviron) AllRunningInstances ¶
func (m *MockNetworkingEnviron) AllRunningInstances(arg0 context0.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method.
func (*MockNetworkingEnviron) AllocateContainerAddresses ¶
func (m *MockNetworkingEnviron) AllocateContainerAddresses(arg0 context0.ProviderCallContext, arg1 instance.Id, arg2 names.MachineTag, arg3 network.InterfaceInfos) (network.InterfaceInfos, error)
AllocateContainerAddresses mocks base method.
func (*MockNetworkingEnviron) AreSpacesRoutable ¶
func (m *MockNetworkingEnviron) AreSpacesRoutable(arg0 context0.ProviderCallContext, arg1, arg2 *environs.ProviderSpaceInfo) (bool, error)
AreSpacesRoutable mocks base method.
func (*MockNetworkingEnviron) Bootstrap ¶
func (m *MockNetworkingEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 context0.ProviderCallContext, arg2 environs.BootstrapParams) (*environs.BootstrapResult, error)
Bootstrap mocks base method.
func (*MockNetworkingEnviron) Config ¶
func (m *MockNetworkingEnviron) Config() *config.Config
Config mocks base method.
func (*MockNetworkingEnviron) ConstraintsValidator ¶
func (m *MockNetworkingEnviron) ConstraintsValidator(arg0 context0.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockNetworkingEnviron) ControllerInstances ¶
func (m *MockNetworkingEnviron) ControllerInstances(arg0 context0.ProviderCallContext, arg1 string) ([]instance.Id, error)
ControllerInstances mocks base method.
func (*MockNetworkingEnviron) Create ¶
func (m *MockNetworkingEnviron) Create(arg0 context0.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockNetworkingEnviron) Destroy ¶
func (m *MockNetworkingEnviron) Destroy(arg0 context0.ProviderCallContext) error
Destroy mocks base method.
func (*MockNetworkingEnviron) DestroyController ¶
func (m *MockNetworkingEnviron) DestroyController(arg0 context0.ProviderCallContext, arg1 string) error
DestroyController mocks base method.
func (*MockNetworkingEnviron) EXPECT ¶
func (m *MockNetworkingEnviron) EXPECT() *MockNetworkingEnvironMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNetworkingEnviron) InstanceTypes ¶
func (m *MockNetworkingEnviron) InstanceTypes(arg0 context0.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method.
func (*MockNetworkingEnviron) Instances ¶
func (m *MockNetworkingEnviron) Instances(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method.
func (*MockNetworkingEnviron) NetworkInterfaces ¶
func (m *MockNetworkingEnviron) NetworkInterfaces(arg0 context0.ProviderCallContext, arg1 []instance.Id) ([]network.InterfaceInfos, error)
NetworkInterfaces mocks base method.
func (*MockNetworkingEnviron) PrecheckInstance ¶
func (m *MockNetworkingEnviron) PrecheckInstance(arg0 context0.ProviderCallContext, arg1 environs.PrecheckInstanceParams) error
PrecheckInstance mocks base method.
func (*MockNetworkingEnviron) PrepareForBootstrap ¶
func (m *MockNetworkingEnviron) PrepareForBootstrap(arg0 environs.BootstrapContext, arg1 string) error
PrepareForBootstrap mocks base method.
func (*MockNetworkingEnviron) Provider ¶
func (m *MockNetworkingEnviron) Provider() environs.EnvironProvider
Provider mocks base method.
func (*MockNetworkingEnviron) ProviderSpaceInfo ¶
func (m *MockNetworkingEnviron) ProviderSpaceInfo(arg0 context0.ProviderCallContext, arg1 *network.SpaceInfo) (*environs.ProviderSpaceInfo, error)
ProviderSpaceInfo mocks base method.
func (*MockNetworkingEnviron) ReleaseContainerAddresses ¶
func (m *MockNetworkingEnviron) ReleaseContainerAddresses(arg0 context0.ProviderCallContext, arg1 []network.ProviderInterfaceInfo) error
ReleaseContainerAddresses mocks base method.
func (*MockNetworkingEnviron) SetConfig ¶
func (m *MockNetworkingEnviron) SetConfig(arg0 *config.Config) error
SetConfig mocks base method.
func (*MockNetworkingEnviron) Spaces ¶
func (m *MockNetworkingEnviron) Spaces(arg0 context0.ProviderCallContext) (network.SpaceInfos, error)
Spaces mocks base method.
func (*MockNetworkingEnviron) StartInstance ¶
func (m *MockNetworkingEnviron) StartInstance(arg0 context0.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method.
func (*MockNetworkingEnviron) StopInstances ¶
func (m *MockNetworkingEnviron) StopInstances(arg0 context0.ProviderCallContext, arg1 ...instance.Id) error
StopInstances mocks base method.
func (*MockNetworkingEnviron) StorageProvider ¶
func (m *MockNetworkingEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
StorageProvider mocks base method.
func (*MockNetworkingEnviron) StorageProviderTypes ¶
func (m *MockNetworkingEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
StorageProviderTypes mocks base method.
func (*MockNetworkingEnviron) Subnets ¶
func (m *MockNetworkingEnviron) Subnets(arg0 context0.ProviderCallContext, arg1 instance.Id, arg2 []network.Id) ([]network.SubnetInfo, error)
Subnets mocks base method.
func (*MockNetworkingEnviron) SuperSubnets ¶
func (m *MockNetworkingEnviron) SuperSubnets(arg0 context0.ProviderCallContext) ([]string, error)
SuperSubnets mocks base method.
func (*MockNetworkingEnviron) SupportsContainerAddresses ¶
func (m *MockNetworkingEnviron) SupportsContainerAddresses(arg0 context0.ProviderCallContext) (bool, error)
SupportsContainerAddresses mocks base method.
func (*MockNetworkingEnviron) SupportsSpaceDiscovery ¶
func (m *MockNetworkingEnviron) SupportsSpaceDiscovery(arg0 context0.ProviderCallContext) (bool, error)
SupportsSpaceDiscovery mocks base method.
func (*MockNetworkingEnviron) SupportsSpaces ¶
func (m *MockNetworkingEnviron) SupportsSpaces(arg0 context0.ProviderCallContext) (bool, error)
SupportsSpaces mocks base method.
type MockNetworkingEnvironMockRecorder ¶
type MockNetworkingEnvironMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkingEnvironMockRecorder is the mock recorder for MockNetworkingEnviron.
func (*MockNetworkingEnvironMockRecorder) AdoptResources ¶
func (mr *MockNetworkingEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *gomock.Call
AdoptResources indicates an expected call of AdoptResources.
func (*MockNetworkingEnvironMockRecorder) AllInstances ¶
func (mr *MockNetworkingEnvironMockRecorder) AllInstances(arg0 any) *gomock.Call
AllInstances indicates an expected call of AllInstances.
func (*MockNetworkingEnvironMockRecorder) AllRunningInstances ¶
func (mr *MockNetworkingEnvironMockRecorder) AllRunningInstances(arg0 any) *gomock.Call
AllRunningInstances indicates an expected call of AllRunningInstances.
func (*MockNetworkingEnvironMockRecorder) AllocateContainerAddresses ¶
func (mr *MockNetworkingEnvironMockRecorder) AllocateContainerAddresses(arg0, arg1, arg2, arg3 any) *gomock.Call
AllocateContainerAddresses indicates an expected call of AllocateContainerAddresses.
func (*MockNetworkingEnvironMockRecorder) AreSpacesRoutable ¶
func (mr *MockNetworkingEnvironMockRecorder) AreSpacesRoutable(arg0, arg1, arg2 any) *gomock.Call
AreSpacesRoutable indicates an expected call of AreSpacesRoutable.
func (*MockNetworkingEnvironMockRecorder) Bootstrap ¶
func (mr *MockNetworkingEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *gomock.Call
Bootstrap indicates an expected call of Bootstrap.
func (*MockNetworkingEnvironMockRecorder) Config ¶
func (mr *MockNetworkingEnvironMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config.
func (*MockNetworkingEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockNetworkingEnvironMockRecorder) ConstraintsValidator(arg0 any) *gomock.Call
ConstraintsValidator indicates an expected call of ConstraintsValidator.
func (*MockNetworkingEnvironMockRecorder) ControllerInstances ¶
func (mr *MockNetworkingEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *gomock.Call
ControllerInstances indicates an expected call of ControllerInstances.
func (*MockNetworkingEnvironMockRecorder) Create ¶
func (mr *MockNetworkingEnvironMockRecorder) Create(arg0, arg1 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockNetworkingEnvironMockRecorder) Destroy ¶
func (mr *MockNetworkingEnvironMockRecorder) Destroy(arg0 any) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockNetworkingEnvironMockRecorder) DestroyController ¶
func (mr *MockNetworkingEnvironMockRecorder) DestroyController(arg0, arg1 any) *gomock.Call
DestroyController indicates an expected call of DestroyController.
func (*MockNetworkingEnvironMockRecorder) InstanceTypes ¶
func (mr *MockNetworkingEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *gomock.Call
InstanceTypes indicates an expected call of InstanceTypes.
func (*MockNetworkingEnvironMockRecorder) Instances ¶
func (mr *MockNetworkingEnvironMockRecorder) Instances(arg0, arg1 any) *gomock.Call
Instances indicates an expected call of Instances.
func (*MockNetworkingEnvironMockRecorder) NetworkInterfaces ¶
func (mr *MockNetworkingEnvironMockRecorder) NetworkInterfaces(arg0, arg1 any) *gomock.Call
NetworkInterfaces indicates an expected call of NetworkInterfaces.
func (*MockNetworkingEnvironMockRecorder) PrecheckInstance ¶
func (mr *MockNetworkingEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *gomock.Call
PrecheckInstance indicates an expected call of PrecheckInstance.
func (*MockNetworkingEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockNetworkingEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *gomock.Call
PrepareForBootstrap indicates an expected call of PrepareForBootstrap.
func (*MockNetworkingEnvironMockRecorder) Provider ¶
func (mr *MockNetworkingEnvironMockRecorder) Provider() *gomock.Call
Provider indicates an expected call of Provider.
func (*MockNetworkingEnvironMockRecorder) ProviderSpaceInfo ¶
func (mr *MockNetworkingEnvironMockRecorder) ProviderSpaceInfo(arg0, arg1 any) *gomock.Call
ProviderSpaceInfo indicates an expected call of ProviderSpaceInfo.
func (*MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses ¶
func (mr *MockNetworkingEnvironMockRecorder) ReleaseContainerAddresses(arg0, arg1 any) *gomock.Call
ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses.
func (*MockNetworkingEnvironMockRecorder) SetConfig ¶
func (mr *MockNetworkingEnvironMockRecorder) SetConfig(arg0 any) *gomock.Call
SetConfig indicates an expected call of SetConfig.
func (*MockNetworkingEnvironMockRecorder) Spaces ¶
func (mr *MockNetworkingEnvironMockRecorder) Spaces(arg0 any) *gomock.Call
Spaces indicates an expected call of Spaces.
func (*MockNetworkingEnvironMockRecorder) StartInstance ¶
func (mr *MockNetworkingEnvironMockRecorder) StartInstance(arg0, arg1 any) *gomock.Call
StartInstance indicates an expected call of StartInstance.
func (*MockNetworkingEnvironMockRecorder) StopInstances ¶
func (mr *MockNetworkingEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *gomock.Call
StopInstances indicates an expected call of StopInstances.
func (*MockNetworkingEnvironMockRecorder) StorageProvider ¶
func (mr *MockNetworkingEnvironMockRecorder) StorageProvider(arg0 any) *gomock.Call
StorageProvider indicates an expected call of StorageProvider.
func (*MockNetworkingEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockNetworkingEnvironMockRecorder) StorageProviderTypes() *gomock.Call
StorageProviderTypes indicates an expected call of StorageProviderTypes.
func (*MockNetworkingEnvironMockRecorder) Subnets ¶
func (mr *MockNetworkingEnvironMockRecorder) Subnets(arg0, arg1, arg2 any) *gomock.Call
Subnets indicates an expected call of Subnets.
func (*MockNetworkingEnvironMockRecorder) SuperSubnets ¶
func (mr *MockNetworkingEnvironMockRecorder) SuperSubnets(arg0 any) *gomock.Call
SuperSubnets indicates an expected call of SuperSubnets.
func (*MockNetworkingEnvironMockRecorder) SupportsContainerAddresses ¶
func (mr *MockNetworkingEnvironMockRecorder) SupportsContainerAddresses(arg0 any) *gomock.Call
SupportsContainerAddresses indicates an expected call of SupportsContainerAddresses.
func (*MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery ¶
func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaceDiscovery(arg0 any) *gomock.Call
SupportsSpaceDiscovery indicates an expected call of SupportsSpaceDiscovery.
func (*MockNetworkingEnvironMockRecorder) SupportsSpaces ¶
func (mr *MockNetworkingEnvironMockRecorder) SupportsSpaces(arg0 any) *gomock.Call
SupportsSpaces indicates an expected call of SupportsSpaces.