Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockAPICaller
- func (m *MockAPICaller) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
- func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger
- func (m *MockAPICaller) BestFacadeVersion(arg0 string) int
- func (m *MockAPICaller) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
- func (m *MockAPICaller) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
- func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder
- func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error)
- func (m *MockAPICaller) ModelTag() (names.ModelTag, bool)
- func (m *MockAPICaller) RootHTTPClient() (*httprequest.Client, error)
- type MockAPICallerAPICallCall
- func (c *MockAPICallerAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallerAPICallCall
- func (c *MockAPICallerAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallerAPICallCall
- func (c *MockAPICallerAPICallCall) Return(arg0 error) *MockAPICallerAPICallCall
- type MockAPICallerBakeryClientCall
- func (c *MockAPICallerBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockAPICallerBakeryClientCall
- func (c *MockAPICallerBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockAPICallerBakeryClientCall
- func (c *MockAPICallerBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockAPICallerBakeryClientCall
- type MockAPICallerBestFacadeVersionCall
- func (c *MockAPICallerBestFacadeVersionCall) Do(f func(string) int) *MockAPICallerBestFacadeVersionCall
- func (c *MockAPICallerBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockAPICallerBestFacadeVersionCall
- func (c *MockAPICallerBestFacadeVersionCall) Return(arg0 int) *MockAPICallerBestFacadeVersionCall
- type MockAPICallerConnectControllerStreamCall
- func (c *MockAPICallerConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallerConnectControllerStreamCall
- func (c *MockAPICallerConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallerConnectControllerStreamCall
- func (c *MockAPICallerConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallerConnectControllerStreamCall
- type MockAPICallerConnectStreamCall
- func (c *MockAPICallerConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallerConnectStreamCall
- func (c *MockAPICallerConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallerConnectStreamCall
- func (c *MockAPICallerConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallerConnectStreamCall
- type MockAPICallerHTTPClientCall
- func (c *MockAPICallerHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallerHTTPClientCall
- func (c *MockAPICallerHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallerHTTPClientCall
- func (c *MockAPICallerHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallerHTTPClientCall
- type MockAPICallerMockRecorder
- func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockAPICallerAPICallCall
- func (mr *MockAPICallerMockRecorder) BakeryClient() *MockAPICallerBakeryClientCall
- func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 any) *MockAPICallerBestFacadeVersionCall
- func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockAPICallerConnectControllerStreamCall
- func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockAPICallerConnectStreamCall
- func (mr *MockAPICallerMockRecorder) HTTPClient() *MockAPICallerHTTPClientCall
- func (mr *MockAPICallerMockRecorder) ModelTag() *MockAPICallerModelTagCall
- func (mr *MockAPICallerMockRecorder) RootHTTPClient() *MockAPICallerRootHTTPClientCall
- type MockAPICallerModelTagCall
- func (c *MockAPICallerModelTagCall) Do(f func() (names.ModelTag, bool)) *MockAPICallerModelTagCall
- func (c *MockAPICallerModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockAPICallerModelTagCall
- func (c *MockAPICallerModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockAPICallerModelTagCall
- type MockAPICallerRootHTTPClientCall
- func (c *MockAPICallerRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallerRootHTTPClientCall
- func (c *MockAPICallerRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallerRootHTTPClientCall
- func (c *MockAPICallerRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallerRootHTTPClientCall
- type MockAgent
- type MockAgentChangeConfigCall
- type MockAgentCurrentConfigCall
- type MockAgentMockRecorder
- type MockConfig
- func (m *MockConfig) APIAddresses() ([]string, error)
- func (m *MockConfig) APIInfo() (*api.Info, bool)
- func (m *MockConfig) AgentLogfileMaxBackups() int
- func (m *MockConfig) AgentLogfileMaxSizeMB() int
- func (m *MockConfig) CACert() string
- func (m *MockConfig) Controller() names.ControllerTag
- func (m *MockConfig) DataDir() string
- func (m *MockConfig) Dir() string
- func (m *MockConfig) DqlitePort() (int, bool)
- func (m *MockConfig) EXPECT() *MockConfigMockRecorder
- func (m *MockConfig) Jobs() []model.MachineJob
- func (m *MockConfig) JujuDBSnapChannel() string
- func (m *MockConfig) LogDir() string
- func (m *MockConfig) LoggingConfig() string
- func (m *MockConfig) MetricsSpoolDir() string
- func (m *MockConfig) Model() names.ModelTag
- func (m *MockConfig) MongoInfo() (*mongo.MongoInfo, bool)
- func (m *MockConfig) MongoMemoryProfile() mongo.MemoryProfile
- func (m *MockConfig) Nonce() string
- func (m *MockConfig) ObjectStoreType() objectstore.BackendType
- func (m *MockConfig) OldPassword() string
- func (m *MockConfig) OpenTelemetryEnabled() bool
- func (m *MockConfig) OpenTelemetryEndpoint() string
- func (m *MockConfig) OpenTelemetryInsecure() bool
- func (m *MockConfig) OpenTelemetrySampleRatio() float64
- func (m *MockConfig) OpenTelemetryStackTraces() bool
- func (m *MockConfig) OpenTelemetryTailSamplingThreshold() time.Duration
- func (m *MockConfig) QueryTracingEnabled() bool
- func (m *MockConfig) QueryTracingThreshold() time.Duration
- func (m *MockConfig) StateServingInfo() (controller.StateServingInfo, bool)
- func (m *MockConfig) SystemIdentityPath() string
- func (m *MockConfig) Tag() names.Tag
- func (m *MockConfig) TransientDataDir() string
- func (m *MockConfig) UpgradedToVersion() version.Number
- func (m *MockConfig) Value(arg0 string) string
- func (m *MockConfig) WriteCommands(arg0 shell.Renderer) ([]string, error)
- type MockConfigAPIAddressesCall
- type MockConfigAPIInfoCall
- type MockConfigAgentLogfileMaxBackupsCall
- func (c *MockConfigAgentLogfileMaxBackupsCall) Do(f func() int) *MockConfigAgentLogfileMaxBackupsCall
- func (c *MockConfigAgentLogfileMaxBackupsCall) DoAndReturn(f func() int) *MockConfigAgentLogfileMaxBackupsCall
- func (c *MockConfigAgentLogfileMaxBackupsCall) Return(arg0 int) *MockConfigAgentLogfileMaxBackupsCall
- type MockConfigAgentLogfileMaxSizeMBCall
- func (c *MockConfigAgentLogfileMaxSizeMBCall) Do(f func() int) *MockConfigAgentLogfileMaxSizeMBCall
- func (c *MockConfigAgentLogfileMaxSizeMBCall) DoAndReturn(f func() int) *MockConfigAgentLogfileMaxSizeMBCall
- func (c *MockConfigAgentLogfileMaxSizeMBCall) Return(arg0 int) *MockConfigAgentLogfileMaxSizeMBCall
- type MockConfigCACertCall
- type MockConfigControllerCall
- type MockConfigDataDirCall
- type MockConfigDirCall
- type MockConfigDqlitePortCall
- type MockConfigJobsCall
- type MockConfigJujuDBSnapChannelCall
- type MockConfigLogDirCall
- type MockConfigLoggingConfigCall
- type MockConfigMetricsSpoolDirCall
- type MockConfigMockRecorder
- func (mr *MockConfigMockRecorder) APIAddresses() *MockConfigAPIAddressesCall
- func (mr *MockConfigMockRecorder) APIInfo() *MockConfigAPIInfoCall
- func (mr *MockConfigMockRecorder) AgentLogfileMaxBackups() *MockConfigAgentLogfileMaxBackupsCall
- func (mr *MockConfigMockRecorder) AgentLogfileMaxSizeMB() *MockConfigAgentLogfileMaxSizeMBCall
- func (mr *MockConfigMockRecorder) CACert() *MockConfigCACertCall
- func (mr *MockConfigMockRecorder) Controller() *MockConfigControllerCall
- func (mr *MockConfigMockRecorder) DataDir() *MockConfigDataDirCall
- func (mr *MockConfigMockRecorder) Dir() *MockConfigDirCall
- func (mr *MockConfigMockRecorder) DqlitePort() *MockConfigDqlitePortCall
- func (mr *MockConfigMockRecorder) Jobs() *MockConfigJobsCall
- func (mr *MockConfigMockRecorder) JujuDBSnapChannel() *MockConfigJujuDBSnapChannelCall
- func (mr *MockConfigMockRecorder) LogDir() *MockConfigLogDirCall
- func (mr *MockConfigMockRecorder) LoggingConfig() *MockConfigLoggingConfigCall
- func (mr *MockConfigMockRecorder) MetricsSpoolDir() *MockConfigMetricsSpoolDirCall
- func (mr *MockConfigMockRecorder) Model() *MockConfigModelCall
- func (mr *MockConfigMockRecorder) MongoInfo() *MockConfigMongoInfoCall
- func (mr *MockConfigMockRecorder) MongoMemoryProfile() *MockConfigMongoMemoryProfileCall
- func (mr *MockConfigMockRecorder) Nonce() *MockConfigNonceCall
- func (mr *MockConfigMockRecorder) ObjectStoreType() *MockConfigObjectStoreTypeCall
- func (mr *MockConfigMockRecorder) OldPassword() *MockConfigOldPasswordCall
- func (mr *MockConfigMockRecorder) OpenTelemetryEnabled() *MockConfigOpenTelemetryEnabledCall
- func (mr *MockConfigMockRecorder) OpenTelemetryEndpoint() *MockConfigOpenTelemetryEndpointCall
- func (mr *MockConfigMockRecorder) OpenTelemetryInsecure() *MockConfigOpenTelemetryInsecureCall
- func (mr *MockConfigMockRecorder) OpenTelemetrySampleRatio() *MockConfigOpenTelemetrySampleRatioCall
- func (mr *MockConfigMockRecorder) OpenTelemetryStackTraces() *MockConfigOpenTelemetryStackTracesCall
- func (mr *MockConfigMockRecorder) OpenTelemetryTailSamplingThreshold() *MockConfigOpenTelemetryTailSamplingThresholdCall
- func (mr *MockConfigMockRecorder) QueryTracingEnabled() *MockConfigQueryTracingEnabledCall
- func (mr *MockConfigMockRecorder) QueryTracingThreshold() *MockConfigQueryTracingThresholdCall
- func (mr *MockConfigMockRecorder) StateServingInfo() *MockConfigStateServingInfoCall
- func (mr *MockConfigMockRecorder) SystemIdentityPath() *MockConfigSystemIdentityPathCall
- func (mr *MockConfigMockRecorder) Tag() *MockConfigTagCall
- func (mr *MockConfigMockRecorder) TransientDataDir() *MockConfigTransientDataDirCall
- func (mr *MockConfigMockRecorder) UpgradedToVersion() *MockConfigUpgradedToVersionCall
- func (mr *MockConfigMockRecorder) Value(arg0 any) *MockConfigValueCall
- func (mr *MockConfigMockRecorder) WriteCommands(arg0 any) *MockConfigWriteCommandsCall
- type MockConfigModelCall
- type MockConfigMongoInfoCall
- func (c *MockConfigMongoInfoCall) Do(f func() (*mongo.MongoInfo, bool)) *MockConfigMongoInfoCall
- func (c *MockConfigMongoInfoCall) DoAndReturn(f func() (*mongo.MongoInfo, bool)) *MockConfigMongoInfoCall
- func (c *MockConfigMongoInfoCall) Return(arg0 *mongo.MongoInfo, arg1 bool) *MockConfigMongoInfoCall
- type MockConfigMongoMemoryProfileCall
- func (c *MockConfigMongoMemoryProfileCall) Do(f func() mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
- func (c *MockConfigMongoMemoryProfileCall) DoAndReturn(f func() mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
- func (c *MockConfigMongoMemoryProfileCall) Return(arg0 mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
- type MockConfigNonceCall
- type MockConfigObjectStoreTypeCall
- func (c *MockConfigObjectStoreTypeCall) Do(f func() objectstore.BackendType) *MockConfigObjectStoreTypeCall
- func (c *MockConfigObjectStoreTypeCall) DoAndReturn(f func() objectstore.BackendType) *MockConfigObjectStoreTypeCall
- func (c *MockConfigObjectStoreTypeCall) Return(arg0 objectstore.BackendType) *MockConfigObjectStoreTypeCall
- type MockConfigOldPasswordCall
- type MockConfigOpenTelemetryEnabledCall
- func (c *MockConfigOpenTelemetryEnabledCall) Do(f func() bool) *MockConfigOpenTelemetryEnabledCall
- func (c *MockConfigOpenTelemetryEnabledCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryEnabledCall
- func (c *MockConfigOpenTelemetryEnabledCall) Return(arg0 bool) *MockConfigOpenTelemetryEnabledCall
- type MockConfigOpenTelemetryEndpointCall
- func (c *MockConfigOpenTelemetryEndpointCall) Do(f func() string) *MockConfigOpenTelemetryEndpointCall
- func (c *MockConfigOpenTelemetryEndpointCall) DoAndReturn(f func() string) *MockConfigOpenTelemetryEndpointCall
- func (c *MockConfigOpenTelemetryEndpointCall) Return(arg0 string) *MockConfigOpenTelemetryEndpointCall
- type MockConfigOpenTelemetryInsecureCall
- func (c *MockConfigOpenTelemetryInsecureCall) Do(f func() bool) *MockConfigOpenTelemetryInsecureCall
- func (c *MockConfigOpenTelemetryInsecureCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryInsecureCall
- func (c *MockConfigOpenTelemetryInsecureCall) Return(arg0 bool) *MockConfigOpenTelemetryInsecureCall
- type MockConfigOpenTelemetrySampleRatioCall
- func (c *MockConfigOpenTelemetrySampleRatioCall) Do(f func() float64) *MockConfigOpenTelemetrySampleRatioCall
- func (c *MockConfigOpenTelemetrySampleRatioCall) DoAndReturn(f func() float64) *MockConfigOpenTelemetrySampleRatioCall
- func (c *MockConfigOpenTelemetrySampleRatioCall) Return(arg0 float64) *MockConfigOpenTelemetrySampleRatioCall
- type MockConfigOpenTelemetryStackTracesCall
- func (c *MockConfigOpenTelemetryStackTracesCall) Do(f func() bool) *MockConfigOpenTelemetryStackTracesCall
- func (c *MockConfigOpenTelemetryStackTracesCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryStackTracesCall
- func (c *MockConfigOpenTelemetryStackTracesCall) Return(arg0 bool) *MockConfigOpenTelemetryStackTracesCall
- type MockConfigOpenTelemetryTailSamplingThresholdCall
- func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) Do(f func() time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
- func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) DoAndReturn(f func() time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
- func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) Return(arg0 time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
- type MockConfigQueryTracingEnabledCall
- type MockConfigQueryTracingThresholdCall
- func (c *MockConfigQueryTracingThresholdCall) Do(f func() time.Duration) *MockConfigQueryTracingThresholdCall
- func (c *MockConfigQueryTracingThresholdCall) DoAndReturn(f func() time.Duration) *MockConfigQueryTracingThresholdCall
- func (c *MockConfigQueryTracingThresholdCall) Return(arg0 time.Duration) *MockConfigQueryTracingThresholdCall
- type MockConfigStateServingInfoCall
- func (c *MockConfigStateServingInfoCall) Do(f func() (controller.StateServingInfo, bool)) *MockConfigStateServingInfoCall
- func (c *MockConfigStateServingInfoCall) DoAndReturn(f func() (controller.StateServingInfo, bool)) *MockConfigStateServingInfoCall
- func (c *MockConfigStateServingInfoCall) Return(arg0 controller.StateServingInfo, arg1 bool) *MockConfigStateServingInfoCall
- type MockConfigSystemIdentityPathCall
- type MockConfigTagCall
- type MockConfigTransientDataDirCall
- type MockConfigUpgradedToVersionCall
- func (c *MockConfigUpgradedToVersionCall) Do(f func() version.Number) *MockConfigUpgradedToVersionCall
- func (c *MockConfigUpgradedToVersionCall) DoAndReturn(f func() version.Number) *MockConfigUpgradedToVersionCall
- func (c *MockConfigUpgradedToVersionCall) Return(arg0 version.Number) *MockConfigUpgradedToVersionCall
- type MockConfigValueCall
- type MockConfigWriteCommandsCall
- func (c *MockConfigWriteCommandsCall) Do(f func(shell.Renderer) ([]string, error)) *MockConfigWriteCommandsCall
- func (c *MockConfigWriteCommandsCall) DoAndReturn(f func(shell.Renderer) ([]string, error)) *MockConfigWriteCommandsCall
- func (c *MockConfigWriteCommandsCall) Return(arg0 []string, arg1 error) *MockConfigWriteCommandsCall
- type MockEnviron
- func (m *MockEnviron) AdoptResources(arg0 envcontext.ProviderCallContext, arg1 string, arg2 version.Number) error
- func (m *MockEnviron) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockEnviron) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 envcontext.ProviderCallContext, ...) (*environs.BootstrapResult, error)
- func (m *MockEnviron) Config() *config.Config
- func (m *MockEnviron) ConstraintsValidator(arg0 envcontext.ProviderCallContext) (constraints.Validator, error)
- func (m *MockEnviron) ControllerInstances(arg0 envcontext.ProviderCallContext, arg1 string) ([]instance.Id, error)
- func (m *MockEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
- func (m *MockEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
- func (m *MockEnviron) DestroyController(arg0 envcontext.ProviderCallContext, arg1 string) error
- func (m *MockEnviron) EXPECT() *MockEnvironMockRecorder
- func (m *MockEnviron) InstanceTypes(arg0 envcontext.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
- func (m *MockEnviron) Instances(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
- func (m *MockEnviron) PrecheckInstance(arg0 envcontext.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 context.Context, arg1 *config.Config) error
- func (m *MockEnviron) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockEnviron) StopInstances(arg0 envcontext.ProviderCallContext, arg1 ...instance.Id) error
- func (m *MockEnviron) StorageProvider(arg0 storage.ProviderType) (storage.Provider, error)
- func (m *MockEnviron) StorageProviderTypes() ([]storage.ProviderType, error)
- type MockEnvironAdoptResourcesCall
- func (c *MockEnvironAdoptResourcesCall) Do(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockEnvironAdoptResourcesCall
- func (c *MockEnvironAdoptResourcesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockEnvironAdoptResourcesCall
- func (c *MockEnvironAdoptResourcesCall) Return(arg0 error) *MockEnvironAdoptResourcesCall
- type MockEnvironAllInstancesCall
- func (c *MockEnvironAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllInstancesCall
- func (c *MockEnvironAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllInstancesCall
- func (c *MockEnvironAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockEnvironAllInstancesCall
- type MockEnvironAllRunningInstancesCall
- func (c *MockEnvironAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllRunningInstancesCall
- func (c *MockEnvironAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllRunningInstancesCall
- func (c *MockEnvironAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockEnvironAllRunningInstancesCall
- type MockEnvironBootstrapCall
- type MockEnvironConfigCall
- type MockEnvironConstraintsValidatorCall
- func (c *MockEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockEnvironConstraintsValidatorCall
- func (c *MockEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockEnvironConstraintsValidatorCall
- func (c *MockEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockEnvironConstraintsValidatorCall
- type MockEnvironControllerInstancesCall
- func (c *MockEnvironControllerInstancesCall) Do(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockEnvironControllerInstancesCall
- func (c *MockEnvironControllerInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockEnvironControllerInstancesCall
- func (c *MockEnvironControllerInstancesCall) Return(arg0 []instance.Id, arg1 error) *MockEnvironControllerInstancesCall
- type MockEnvironCreateCall
- func (c *MockEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockEnvironCreateCall
- func (c *MockEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockEnvironCreateCall
- func (c *MockEnvironCreateCall) Return(arg0 error) *MockEnvironCreateCall
- type MockEnvironDestroyCall
- type MockEnvironDestroyControllerCall
- func (c *MockEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockEnvironDestroyControllerCall
- func (c *MockEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockEnvironDestroyControllerCall
- func (c *MockEnvironDestroyControllerCall) Return(arg0 error) *MockEnvironDestroyControllerCall
- type MockEnvironInstanceTypesCall
- type MockEnvironInstancesCall
- type MockEnvironMockRecorder
- func (mr *MockEnvironMockRecorder) AdoptResources(arg0, arg1, arg2 any) *MockEnvironAdoptResourcesCall
- func (mr *MockEnvironMockRecorder) AllInstances(arg0 any) *MockEnvironAllInstancesCall
- func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 any) *MockEnvironAllRunningInstancesCall
- func (mr *MockEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *MockEnvironBootstrapCall
- func (mr *MockEnvironMockRecorder) Config() *MockEnvironConfigCall
- func (mr *MockEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockEnvironConstraintsValidatorCall
- func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *MockEnvironControllerInstancesCall
- func (mr *MockEnvironMockRecorder) Create(arg0, arg1 any) *MockEnvironCreateCall
- func (mr *MockEnvironMockRecorder) Destroy(arg0 any) *MockEnvironDestroyCall
- func (mr *MockEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockEnvironDestroyControllerCall
- func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *MockEnvironInstanceTypesCall
- func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *MockEnvironInstancesCall
- func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *MockEnvironPrecheckInstanceCall
- func (mr *MockEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockEnvironPrepareForBootstrapCall
- func (mr *MockEnvironMockRecorder) Provider() *MockEnvironProviderCall
- func (mr *MockEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockEnvironSetConfigCall
- func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 any) *MockEnvironStartInstanceCall
- func (mr *MockEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockEnvironStopInstancesCall
- func (mr *MockEnvironMockRecorder) StorageProvider(arg0 any) *MockEnvironStorageProviderCall
- func (mr *MockEnvironMockRecorder) StorageProviderTypes() *MockEnvironStorageProviderTypesCall
- type MockEnvironPrecheckInstanceCall
- func (c *MockEnvironPrecheckInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockEnvironPrecheckInstanceCall
- func (c *MockEnvironPrecheckInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockEnvironPrecheckInstanceCall
- func (c *MockEnvironPrecheckInstanceCall) Return(arg0 error) *MockEnvironPrecheckInstanceCall
- type MockEnvironPrepareForBootstrapCall
- func (c *MockEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockEnvironPrepareForBootstrapCall
- func (c *MockEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockEnvironPrepareForBootstrapCall
- func (c *MockEnvironPrepareForBootstrapCall) Return(arg0 error) *MockEnvironPrepareForBootstrapCall
- type MockEnvironProviderCall
- type MockEnvironSetConfigCall
- func (c *MockEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockEnvironSetConfigCall
- func (c *MockEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockEnvironSetConfigCall
- func (c *MockEnvironSetConfigCall) Return(arg0 error) *MockEnvironSetConfigCall
- type MockEnvironStartInstanceCall
- type MockEnvironStopInstancesCall
- func (c *MockEnvironStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockEnvironStopInstancesCall
- func (c *MockEnvironStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockEnvironStopInstancesCall
- func (c *MockEnvironStopInstancesCall) Return(arg0 error) *MockEnvironStopInstancesCall
- type MockEnvironStorageProviderCall
- func (c *MockEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockEnvironStorageProviderCall
- func (c *MockEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockEnvironStorageProviderCall
- func (c *MockEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockEnvironStorageProviderCall
- type MockEnvironStorageProviderTypesCall
- func (c *MockEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockEnvironStorageProviderTypesCall
- func (c *MockEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockEnvironStorageProviderTypesCall
- func (c *MockEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockEnvironStorageProviderTypesCall
- type MockGetter
- type MockGetterGetCall
- type MockGetterMockRecorder
- type MockInstanceBroker
- func (m *MockInstanceBroker) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockInstanceBroker) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
- func (m *MockInstanceBroker) EXPECT() *MockInstanceBrokerMockRecorder
- func (m *MockInstanceBroker) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
- func (m *MockInstanceBroker) StopInstances(arg0 envcontext.ProviderCallContext, arg1 ...instance.Id) error
- type MockInstanceBrokerAllInstancesCall
- func (c *MockInstanceBrokerAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllInstancesCall
- func (c *MockInstanceBrokerAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllInstancesCall
- func (c *MockInstanceBrokerAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockInstanceBrokerAllInstancesCall
- type MockInstanceBrokerAllRunningInstancesCall
- func (c *MockInstanceBrokerAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllRunningInstancesCall
- func (c *MockInstanceBrokerAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllRunningInstancesCall
- func (c *MockInstanceBrokerAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockInstanceBrokerAllRunningInstancesCall
- type MockInstanceBrokerMockRecorder
- func (mr *MockInstanceBrokerMockRecorder) AllInstances(arg0 any) *MockInstanceBrokerAllInstancesCall
- func (mr *MockInstanceBrokerMockRecorder) AllRunningInstances(arg0 any) *MockInstanceBrokerAllRunningInstancesCall
- func (mr *MockInstanceBrokerMockRecorder) StartInstance(arg0, arg1 any) *MockInstanceBrokerStartInstanceCall
- func (mr *MockInstanceBrokerMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockInstanceBrokerStopInstancesCall
- type MockInstanceBrokerStartInstanceCall
- func (c *MockInstanceBrokerStartInstanceCall) Do(...) *MockInstanceBrokerStartInstanceCall
- func (c *MockInstanceBrokerStartInstanceCall) DoAndReturn(...) *MockInstanceBrokerStartInstanceCall
- func (c *MockInstanceBrokerStartInstanceCall) Return(arg0 *environs.StartInstanceResult, arg1 error) *MockInstanceBrokerStartInstanceCall
- type MockInstanceBrokerStopInstancesCall
- func (c *MockInstanceBrokerStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockInstanceBrokerStopInstancesCall
- func (c *MockInstanceBrokerStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockInstanceBrokerStopInstancesCall
- func (c *MockInstanceBrokerStopInstancesCall) Return(arg0 error) *MockInstanceBrokerStopInstancesCall
- type MockInstanceMutaterAPI
- func (m *MockInstanceMutaterAPI) EXPECT() *MockInstanceMutaterAPIMockRecorder
- func (m *MockInstanceMutaterAPI) Machine(arg0 context.Context, arg1 names.MachineTag) (instancemutater.MutaterMachine, error)
- func (m *MockInstanceMutaterAPI) WatchModelMachines(arg0 context.Context) (watcher.Watcher[[]string], error)
- type MockInstanceMutaterAPIMachineCall
- func (c *MockInstanceMutaterAPIMachineCall) Do(...) *MockInstanceMutaterAPIMachineCall
- func (c *MockInstanceMutaterAPIMachineCall) DoAndReturn(...) *MockInstanceMutaterAPIMachineCall
- func (c *MockInstanceMutaterAPIMachineCall) Return(arg0 instancemutater.MutaterMachine, arg1 error) *MockInstanceMutaterAPIMachineCall
- type MockInstanceMutaterAPIMockRecorder
- type MockInstanceMutaterAPIWatchModelMachinesCall
- func (c *MockInstanceMutaterAPIWatchModelMachinesCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockInstanceMutaterAPIWatchModelMachinesCall
- func (c *MockInstanceMutaterAPIWatchModelMachinesCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockInstanceMutaterAPIWatchModelMachinesCall
- func (c *MockInstanceMutaterAPIWatchModelMachinesCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockInstanceMutaterAPIWatchModelMachinesCall
- type MockLXDProfiler
- func (m *MockLXDProfiler) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)
- func (m *MockLXDProfiler) EXPECT() *MockLXDProfilerMockRecorder
- func (m *MockLXDProfiler) LXDProfileNames(arg0 string) ([]string, error)
- func (m *MockLXDProfiler) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error
- type MockLXDProfilerAssignLXDProfilesCall
- func (c *MockLXDProfilerAssignLXDProfilesCall) Do(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockLXDProfilerAssignLXDProfilesCall
- func (c *MockLXDProfilerAssignLXDProfilesCall) DoAndReturn(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockLXDProfilerAssignLXDProfilesCall
- func (c *MockLXDProfilerAssignLXDProfilesCall) Return(arg0 []string, arg1 error) *MockLXDProfilerAssignLXDProfilesCall
- type MockLXDProfilerLXDProfileNamesCall
- func (c *MockLXDProfilerLXDProfileNamesCall) Do(f func(string) ([]string, error)) *MockLXDProfilerLXDProfileNamesCall
- func (c *MockLXDProfilerLXDProfileNamesCall) DoAndReturn(f func(string) ([]string, error)) *MockLXDProfilerLXDProfileNamesCall
- func (c *MockLXDProfilerLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockLXDProfilerLXDProfileNamesCall
- type MockLXDProfilerMaybeWriteLXDProfileCall
- func (c *MockLXDProfilerMaybeWriteLXDProfileCall) Do(f func(string, lxdprofile.Profile) error) *MockLXDProfilerMaybeWriteLXDProfileCall
- func (c *MockLXDProfilerMaybeWriteLXDProfileCall) DoAndReturn(f func(string, lxdprofile.Profile) error) *MockLXDProfilerMaybeWriteLXDProfileCall
- func (c *MockLXDProfilerMaybeWriteLXDProfileCall) Return(arg0 error) *MockLXDProfilerMaybeWriteLXDProfileCall
- type MockLXDProfilerMockRecorder
- func (mr *MockLXDProfilerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 any) *MockLXDProfilerAssignLXDProfilesCall
- func (mr *MockLXDProfilerMockRecorder) LXDProfileNames(arg0 any) *MockLXDProfilerLXDProfileNamesCall
- func (mr *MockLXDProfilerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *MockLXDProfilerMaybeWriteLXDProfileCall
- type MockMutaterContext
- type MockMutaterContextKillWithErrorCall
- func (c *MockMutaterContextKillWithErrorCall) Do(f func(error)) *MockMutaterContextKillWithErrorCall
- func (c *MockMutaterContextKillWithErrorCall) DoAndReturn(f func(error)) *MockMutaterContextKillWithErrorCall
- func (c *MockMutaterContextKillWithErrorCall) Return() *MockMutaterContextKillWithErrorCall
- type MockMutaterContextMockRecorder
- type MockMutaterContextaddCall
- type MockMutaterContextdyingCall
- type MockMutaterContexterrDyingCall
- type MockMutaterContextgetBrokerCall
- func (c *MockMutaterContextgetBrokerCall) Do(f func() environs.LXDProfiler) *MockMutaterContextgetBrokerCall
- func (c *MockMutaterContextgetBrokerCall) DoAndReturn(f func() environs.LXDProfiler) *MockMutaterContextgetBrokerCall
- func (c *MockMutaterContextgetBrokerCall) Return(arg0 environs.LXDProfiler) *MockMutaterContextgetBrokerCall
- type MockMutaterContextgetMachineCall
- func (c *MockMutaterContextgetMachineCall) Do(...) *MockMutaterContextgetMachineCall
- func (c *MockMutaterContextgetMachineCall) DoAndReturn(...) *MockMutaterContextgetMachineCall
- func (c *MockMutaterContextgetMachineCall) Return(arg0 instancemutater.MutaterMachine, arg1 error) *MockMutaterContextgetMachineCall
- type MockMutaterContextgetRequiredLXDProfilesCall
- func (c *MockMutaterContextgetRequiredLXDProfilesCall) Do(f func(string) []string) *MockMutaterContextgetRequiredLXDProfilesCall
- func (c *MockMutaterContextgetRequiredLXDProfilesCall) DoAndReturn(f func(string) []string) *MockMutaterContextgetRequiredLXDProfilesCall
- func (c *MockMutaterContextgetRequiredLXDProfilesCall) Return(arg0 []string) *MockMutaterContextgetRequiredLXDProfilesCall
- type MockMutaterContextnewMachineContextCall
- func (c *MockMutaterContextnewMachineContextCall) Do(f func() instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
- func (c *MockMutaterContextnewMachineContextCall) DoAndReturn(f func() instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
- func (c *MockMutaterContextnewMachineContextCall) Return(arg0 instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
- type MockMutaterMachine
- func (m *MockMutaterMachine) CharmProfilingInfo(arg0 context.Context) (*instancemutater.UnitProfileInfo, error)
- func (m *MockMutaterMachine) ContainerType(arg0 context.Context) (instance.ContainerType, error)
- func (m *MockMutaterMachine) EXPECT() *MockMutaterMachineMockRecorder
- func (m *MockMutaterMachine) InstanceId(arg0 context.Context) (string, error)
- func (m *MockMutaterMachine) Life() life.Value
- func (m *MockMutaterMachine) Refresh(arg0 context.Context) error
- func (m *MockMutaterMachine) SetCharmProfiles(arg0 context.Context, arg1 []string) error
- func (m *MockMutaterMachine) SetModificationStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error
- func (m *MockMutaterMachine) Tag() names.MachineTag
- func (m *MockMutaterMachine) WatchContainers(arg0 context.Context) (watcher.Watcher[[]string], error)
- func (m *MockMutaterMachine) WatchLXDProfileVerificationNeeded(arg0 context.Context) (watcher.Watcher[struct{}], error)
- func (m *MockMutaterMachine) WatchUnits(arg0 context.Context) (watcher.Watcher[[]string], error)
- type MockMutaterMachineCharmProfilingInfoCall
- func (c *MockMutaterMachineCharmProfilingInfoCall) Do(f func(context.Context) (*instancemutater.UnitProfileInfo, error)) *MockMutaterMachineCharmProfilingInfoCall
- func (c *MockMutaterMachineCharmProfilingInfoCall) DoAndReturn(f func(context.Context) (*instancemutater.UnitProfileInfo, error)) *MockMutaterMachineCharmProfilingInfoCall
- func (c *MockMutaterMachineCharmProfilingInfoCall) Return(arg0 *instancemutater.UnitProfileInfo, arg1 error) *MockMutaterMachineCharmProfilingInfoCall
- type MockMutaterMachineContainerTypeCall
- func (c *MockMutaterMachineContainerTypeCall) Do(f func(context.Context) (instance.ContainerType, error)) *MockMutaterMachineContainerTypeCall
- func (c *MockMutaterMachineContainerTypeCall) DoAndReturn(f func(context.Context) (instance.ContainerType, error)) *MockMutaterMachineContainerTypeCall
- func (c *MockMutaterMachineContainerTypeCall) Return(arg0 instance.ContainerType, arg1 error) *MockMutaterMachineContainerTypeCall
- type MockMutaterMachineInstanceIdCall
- func (c *MockMutaterMachineInstanceIdCall) Do(f func(context.Context) (string, error)) *MockMutaterMachineInstanceIdCall
- func (c *MockMutaterMachineInstanceIdCall) DoAndReturn(f func(context.Context) (string, error)) *MockMutaterMachineInstanceIdCall
- func (c *MockMutaterMachineInstanceIdCall) Return(arg0 string, arg1 error) *MockMutaterMachineInstanceIdCall
- type MockMutaterMachineLifeCall
- type MockMutaterMachineMockRecorder
- func (mr *MockMutaterMachineMockRecorder) CharmProfilingInfo(arg0 any) *MockMutaterMachineCharmProfilingInfoCall
- func (mr *MockMutaterMachineMockRecorder) ContainerType(arg0 any) *MockMutaterMachineContainerTypeCall
- func (mr *MockMutaterMachineMockRecorder) InstanceId(arg0 any) *MockMutaterMachineInstanceIdCall
- func (mr *MockMutaterMachineMockRecorder) Life() *MockMutaterMachineLifeCall
- func (mr *MockMutaterMachineMockRecorder) Refresh(arg0 any) *MockMutaterMachineRefreshCall
- func (mr *MockMutaterMachineMockRecorder) SetCharmProfiles(arg0, arg1 any) *MockMutaterMachineSetCharmProfilesCall
- func (mr *MockMutaterMachineMockRecorder) SetModificationStatus(arg0, arg1, arg2, arg3 any) *MockMutaterMachineSetModificationStatusCall
- func (mr *MockMutaterMachineMockRecorder) Tag() *MockMutaterMachineTagCall
- func (mr *MockMutaterMachineMockRecorder) WatchContainers(arg0 any) *MockMutaterMachineWatchContainersCall
- func (mr *MockMutaterMachineMockRecorder) WatchLXDProfileVerificationNeeded(arg0 any) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
- func (mr *MockMutaterMachineMockRecorder) WatchUnits(arg0 any) *MockMutaterMachineWatchUnitsCall
- type MockMutaterMachineRefreshCall
- func (c *MockMutaterMachineRefreshCall) Do(f func(context.Context) error) *MockMutaterMachineRefreshCall
- func (c *MockMutaterMachineRefreshCall) DoAndReturn(f func(context.Context) error) *MockMutaterMachineRefreshCall
- func (c *MockMutaterMachineRefreshCall) Return(arg0 error) *MockMutaterMachineRefreshCall
- type MockMutaterMachineSetCharmProfilesCall
- func (c *MockMutaterMachineSetCharmProfilesCall) Do(f func(context.Context, []string) error) *MockMutaterMachineSetCharmProfilesCall
- func (c *MockMutaterMachineSetCharmProfilesCall) DoAndReturn(f func(context.Context, []string) error) *MockMutaterMachineSetCharmProfilesCall
- func (c *MockMutaterMachineSetCharmProfilesCall) Return(arg0 error) *MockMutaterMachineSetCharmProfilesCall
- type MockMutaterMachineSetModificationStatusCall
- func (c *MockMutaterMachineSetModificationStatusCall) Do(f func(context.Context, status.Status, string, map[string]any) error) *MockMutaterMachineSetModificationStatusCall
- func (c *MockMutaterMachineSetModificationStatusCall) DoAndReturn(f func(context.Context, status.Status, string, map[string]any) error) *MockMutaterMachineSetModificationStatusCall
- func (c *MockMutaterMachineSetModificationStatusCall) Return(arg0 error) *MockMutaterMachineSetModificationStatusCall
- type MockMutaterMachineTagCall
- type MockMutaterMachineWatchContainersCall
- func (c *MockMutaterMachineWatchContainersCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchContainersCall
- func (c *MockMutaterMachineWatchContainersCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchContainersCall
- func (c *MockMutaterMachineWatchContainersCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMutaterMachineWatchContainersCall
- type MockMutaterMachineWatchLXDProfileVerificationNeededCall
- func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) Do(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
- func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) DoAndReturn(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
- func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
- type MockMutaterMachineWatchUnitsCall
- func (c *MockMutaterMachineWatchUnitsCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchUnitsCall
- func (c *MockMutaterMachineWatchUnitsCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchUnitsCall
- func (c *MockMutaterMachineWatchUnitsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMutaterMachineWatchUnitsCall
- type MockWorker
- type MockWorkerKillCall
- type MockWorkerMockRecorder
- type MockWorkerWaitCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPICaller ¶
type MockAPICaller struct {
// contains filtered or unexported fields
}
MockAPICaller is a mock of APICaller interface.
func NewMockAPICaller ¶
func NewMockAPICaller(ctrl *gomock.Controller) *MockAPICaller
NewMockAPICaller creates a new mock instance.
func (*MockAPICaller) APICall ¶
func (m *MockAPICaller) APICall(arg0 context.Context, arg1 string, arg2 int, arg3, arg4 string, arg5, arg6 any) error
APICall mocks base method.
func (*MockAPICaller) BakeryClient ¶
func (m *MockAPICaller) BakeryClient() base.MacaroonDischarger
BakeryClient mocks base method.
func (*MockAPICaller) BestFacadeVersion ¶
func (m *MockAPICaller) BestFacadeVersion(arg0 string) int
BestFacadeVersion mocks base method.
func (*MockAPICaller) ConnectControllerStream ¶
func (m *MockAPICaller) ConnectControllerStream(arg0 context.Context, arg1 string, arg2 url.Values, arg3 http.Header) (base.Stream, error)
ConnectControllerStream mocks base method.
func (*MockAPICaller) ConnectStream ¶
func (m *MockAPICaller) ConnectStream(arg0 context.Context, arg1 string, arg2 url.Values) (base.Stream, error)
ConnectStream mocks base method.
func (*MockAPICaller) EXPECT ¶
func (m *MockAPICaller) EXPECT() *MockAPICallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPICaller) HTTPClient ¶
func (m *MockAPICaller) HTTPClient() (*httprequest.Client, error)
HTTPClient mocks base method.
func (*MockAPICaller) ModelTag ¶
func (m *MockAPICaller) ModelTag() (names.ModelTag, bool)
ModelTag mocks base method.
func (*MockAPICaller) RootHTTPClient ¶
func (m *MockAPICaller) RootHTTPClient() (*httprequest.Client, error)
RootHTTPClient mocks base method.
type MockAPICallerAPICallCall ¶
MockAPICallerAPICallCall wrap *gomock.Call
func (*MockAPICallerAPICallCall) Do ¶
func (c *MockAPICallerAPICallCall) Do(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallerAPICallCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerAPICallCall) DoAndReturn ¶
func (c *MockAPICallerAPICallCall) DoAndReturn(f func(context.Context, string, int, string, string, any, any) error) *MockAPICallerAPICallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerAPICallCall) Return ¶
func (c *MockAPICallerAPICallCall) Return(arg0 error) *MockAPICallerAPICallCall
Return rewrite *gomock.Call.Return
type MockAPICallerBakeryClientCall ¶
MockAPICallerBakeryClientCall wrap *gomock.Call
func (*MockAPICallerBakeryClientCall) Do ¶
func (c *MockAPICallerBakeryClientCall) Do(f func() base.MacaroonDischarger) *MockAPICallerBakeryClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerBakeryClientCall) DoAndReturn ¶
func (c *MockAPICallerBakeryClientCall) DoAndReturn(f func() base.MacaroonDischarger) *MockAPICallerBakeryClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerBakeryClientCall) Return ¶
func (c *MockAPICallerBakeryClientCall) Return(arg0 base.MacaroonDischarger) *MockAPICallerBakeryClientCall
Return rewrite *gomock.Call.Return
type MockAPICallerBestFacadeVersionCall ¶
MockAPICallerBestFacadeVersionCall wrap *gomock.Call
func (*MockAPICallerBestFacadeVersionCall) Do ¶
func (c *MockAPICallerBestFacadeVersionCall) Do(f func(string) int) *MockAPICallerBestFacadeVersionCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerBestFacadeVersionCall) DoAndReturn ¶
func (c *MockAPICallerBestFacadeVersionCall) DoAndReturn(f func(string) int) *MockAPICallerBestFacadeVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerBestFacadeVersionCall) Return ¶
func (c *MockAPICallerBestFacadeVersionCall) Return(arg0 int) *MockAPICallerBestFacadeVersionCall
Return rewrite *gomock.Call.Return
type MockAPICallerConnectControllerStreamCall ¶
MockAPICallerConnectControllerStreamCall wrap *gomock.Call
func (*MockAPICallerConnectControllerStreamCall) Do ¶
func (c *MockAPICallerConnectControllerStreamCall) Do(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallerConnectControllerStreamCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerConnectControllerStreamCall) DoAndReturn ¶
func (c *MockAPICallerConnectControllerStreamCall) DoAndReturn(f func(context.Context, string, url.Values, http.Header) (base.Stream, error)) *MockAPICallerConnectControllerStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerConnectControllerStreamCall) Return ¶
func (c *MockAPICallerConnectControllerStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallerConnectControllerStreamCall
Return rewrite *gomock.Call.Return
type MockAPICallerConnectStreamCall ¶
MockAPICallerConnectStreamCall wrap *gomock.Call
func (*MockAPICallerConnectStreamCall) Do ¶
func (c *MockAPICallerConnectStreamCall) Do(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallerConnectStreamCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerConnectStreamCall) DoAndReturn ¶
func (c *MockAPICallerConnectStreamCall) DoAndReturn(f func(context.Context, string, url.Values) (base.Stream, error)) *MockAPICallerConnectStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerConnectStreamCall) Return ¶
func (c *MockAPICallerConnectStreamCall) Return(arg0 base.Stream, arg1 error) *MockAPICallerConnectStreamCall
Return rewrite *gomock.Call.Return
type MockAPICallerHTTPClientCall ¶
MockAPICallerHTTPClientCall wrap *gomock.Call
func (*MockAPICallerHTTPClientCall) Do ¶
func (c *MockAPICallerHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallerHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerHTTPClientCall) DoAndReturn ¶
func (c *MockAPICallerHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallerHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerHTTPClientCall) Return ¶
func (c *MockAPICallerHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallerHTTPClientCall
Return rewrite *gomock.Call.Return
type MockAPICallerMockRecorder ¶
type MockAPICallerMockRecorder struct {
// contains filtered or unexported fields
}
MockAPICallerMockRecorder is the mock recorder for MockAPICaller.
func (*MockAPICallerMockRecorder) APICall ¶
func (mr *MockAPICallerMockRecorder) APICall(arg0, arg1, arg2, arg3, arg4, arg5, arg6 any) *MockAPICallerAPICallCall
APICall indicates an expected call of APICall.
func (*MockAPICallerMockRecorder) BakeryClient ¶
func (mr *MockAPICallerMockRecorder) BakeryClient() *MockAPICallerBakeryClientCall
BakeryClient indicates an expected call of BakeryClient.
func (*MockAPICallerMockRecorder) BestFacadeVersion ¶
func (mr *MockAPICallerMockRecorder) BestFacadeVersion(arg0 any) *MockAPICallerBestFacadeVersionCall
BestFacadeVersion indicates an expected call of BestFacadeVersion.
func (*MockAPICallerMockRecorder) ConnectControllerStream ¶
func (mr *MockAPICallerMockRecorder) ConnectControllerStream(arg0, arg1, arg2, arg3 any) *MockAPICallerConnectControllerStreamCall
ConnectControllerStream indicates an expected call of ConnectControllerStream.
func (*MockAPICallerMockRecorder) ConnectStream ¶
func (mr *MockAPICallerMockRecorder) ConnectStream(arg0, arg1, arg2 any) *MockAPICallerConnectStreamCall
ConnectStream indicates an expected call of ConnectStream.
func (*MockAPICallerMockRecorder) HTTPClient ¶
func (mr *MockAPICallerMockRecorder) HTTPClient() *MockAPICallerHTTPClientCall
HTTPClient indicates an expected call of HTTPClient.
func (*MockAPICallerMockRecorder) ModelTag ¶
func (mr *MockAPICallerMockRecorder) ModelTag() *MockAPICallerModelTagCall
ModelTag indicates an expected call of ModelTag.
func (*MockAPICallerMockRecorder) RootHTTPClient ¶
func (mr *MockAPICallerMockRecorder) RootHTTPClient() *MockAPICallerRootHTTPClientCall
RootHTTPClient indicates an expected call of RootHTTPClient.
type MockAPICallerModelTagCall ¶
MockAPICallerModelTagCall wrap *gomock.Call
func (*MockAPICallerModelTagCall) Do ¶
func (c *MockAPICallerModelTagCall) Do(f func() (names.ModelTag, bool)) *MockAPICallerModelTagCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerModelTagCall) DoAndReturn ¶
func (c *MockAPICallerModelTagCall) DoAndReturn(f func() (names.ModelTag, bool)) *MockAPICallerModelTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerModelTagCall) Return ¶
func (c *MockAPICallerModelTagCall) Return(arg0 names.ModelTag, arg1 bool) *MockAPICallerModelTagCall
Return rewrite *gomock.Call.Return
type MockAPICallerRootHTTPClientCall ¶
MockAPICallerRootHTTPClientCall wrap *gomock.Call
func (*MockAPICallerRootHTTPClientCall) Do ¶
func (c *MockAPICallerRootHTTPClientCall) Do(f func() (*httprequest.Client, error)) *MockAPICallerRootHTTPClientCall
Do rewrite *gomock.Call.Do
func (*MockAPICallerRootHTTPClientCall) DoAndReturn ¶
func (c *MockAPICallerRootHTTPClientCall) DoAndReturn(f func() (*httprequest.Client, error)) *MockAPICallerRootHTTPClientCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAPICallerRootHTTPClientCall) Return ¶
func (c *MockAPICallerRootHTTPClientCall) Return(arg0 *httprequest.Client, arg1 error) *MockAPICallerRootHTTPClientCall
Return rewrite *gomock.Call.Return
type MockAgent ¶
type MockAgent struct {
// contains filtered or unexported fields
}
MockAgent is a mock of Agent interface.
func NewMockAgent ¶
func NewMockAgent(ctrl *gomock.Controller) *MockAgent
NewMockAgent creates a new mock instance.
func (*MockAgent) ChangeConfig ¶
func (m *MockAgent) ChangeConfig(arg0 agent.ConfigMutator) error
ChangeConfig mocks base method.
func (*MockAgent) CurrentConfig ¶
CurrentConfig mocks base method.
func (*MockAgent) EXPECT ¶
func (m *MockAgent) EXPECT() *MockAgentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAgentChangeConfigCall ¶
MockAgentChangeConfigCall wrap *gomock.Call
func (*MockAgentChangeConfigCall) Do ¶
func (c *MockAgentChangeConfigCall) Do(f func(agent.ConfigMutator) error) *MockAgentChangeConfigCall
Do rewrite *gomock.Call.Do
func (*MockAgentChangeConfigCall) DoAndReturn ¶
func (c *MockAgentChangeConfigCall) DoAndReturn(f func(agent.ConfigMutator) error) *MockAgentChangeConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentChangeConfigCall) Return ¶
func (c *MockAgentChangeConfigCall) Return(arg0 error) *MockAgentChangeConfigCall
Return rewrite *gomock.Call.Return
type MockAgentCurrentConfigCall ¶
MockAgentCurrentConfigCall wrap *gomock.Call
func (*MockAgentCurrentConfigCall) Do ¶
func (c *MockAgentCurrentConfigCall) Do(f func() agent.Config) *MockAgentCurrentConfigCall
Do rewrite *gomock.Call.Do
func (*MockAgentCurrentConfigCall) DoAndReturn ¶
func (c *MockAgentCurrentConfigCall) DoAndReturn(f func() agent.Config) *MockAgentCurrentConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockAgentCurrentConfigCall) Return ¶
func (c *MockAgentCurrentConfigCall) Return(arg0 agent.Config) *MockAgentCurrentConfigCall
Return rewrite *gomock.Call.Return
type MockAgentMockRecorder ¶
type MockAgentMockRecorder struct {
// contains filtered or unexported fields
}
MockAgentMockRecorder is the mock recorder for MockAgent.
func (*MockAgentMockRecorder) ChangeConfig ¶
func (mr *MockAgentMockRecorder) ChangeConfig(arg0 any) *MockAgentChangeConfigCall
ChangeConfig indicates an expected call of ChangeConfig.
func (*MockAgentMockRecorder) CurrentConfig ¶
func (mr *MockAgentMockRecorder) CurrentConfig() *MockAgentCurrentConfigCall
CurrentConfig indicates an expected call of CurrentConfig.
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface.
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance.
func (*MockConfig) APIAddresses ¶
func (m *MockConfig) APIAddresses() ([]string, error)
APIAddresses mocks base method.
func (*MockConfig) APIInfo ¶
func (m *MockConfig) APIInfo() (*api.Info, bool)
APIInfo mocks base method.
func (*MockConfig) AgentLogfileMaxBackups ¶
func (m *MockConfig) AgentLogfileMaxBackups() int
AgentLogfileMaxBackups mocks base method.
func (*MockConfig) AgentLogfileMaxSizeMB ¶
func (m *MockConfig) AgentLogfileMaxSizeMB() int
AgentLogfileMaxSizeMB mocks base method.
func (*MockConfig) Controller ¶
func (m *MockConfig) Controller() names.ControllerTag
Controller mocks base method.
func (*MockConfig) DqlitePort ¶
func (m *MockConfig) DqlitePort() (int, bool)
DqlitePort mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfig) JujuDBSnapChannel ¶
func (m *MockConfig) JujuDBSnapChannel() string
JujuDBSnapChannel mocks base method.
func (*MockConfig) LoggingConfig ¶
func (m *MockConfig) LoggingConfig() string
LoggingConfig mocks base method.
func (*MockConfig) MetricsSpoolDir ¶
func (m *MockConfig) MetricsSpoolDir() string
MetricsSpoolDir mocks base method.
func (*MockConfig) MongoInfo ¶
func (m *MockConfig) MongoInfo() (*mongo.MongoInfo, bool)
MongoInfo mocks base method.
func (*MockConfig) MongoMemoryProfile ¶
func (m *MockConfig) MongoMemoryProfile() mongo.MemoryProfile
MongoMemoryProfile mocks base method.
func (*MockConfig) ObjectStoreType ¶
func (m *MockConfig) ObjectStoreType() objectstore.BackendType
ObjectStoreType mocks base method.
func (*MockConfig) OldPassword ¶
func (m *MockConfig) OldPassword() string
OldPassword mocks base method.
func (*MockConfig) OpenTelemetryEnabled ¶
func (m *MockConfig) OpenTelemetryEnabled() bool
OpenTelemetryEnabled mocks base method.
func (*MockConfig) OpenTelemetryEndpoint ¶
func (m *MockConfig) OpenTelemetryEndpoint() string
OpenTelemetryEndpoint mocks base method.
func (*MockConfig) OpenTelemetryInsecure ¶
func (m *MockConfig) OpenTelemetryInsecure() bool
OpenTelemetryInsecure mocks base method.
func (*MockConfig) OpenTelemetrySampleRatio ¶
func (m *MockConfig) OpenTelemetrySampleRatio() float64
OpenTelemetrySampleRatio mocks base method.
func (*MockConfig) OpenTelemetryStackTraces ¶
func (m *MockConfig) OpenTelemetryStackTraces() bool
OpenTelemetryStackTraces mocks base method.
func (*MockConfig) OpenTelemetryTailSamplingThreshold ¶
func (m *MockConfig) OpenTelemetryTailSamplingThreshold() time.Duration
OpenTelemetryTailSamplingThreshold mocks base method.
func (*MockConfig) QueryTracingEnabled ¶
func (m *MockConfig) QueryTracingEnabled() bool
QueryTracingEnabled mocks base method.
func (*MockConfig) QueryTracingThreshold ¶
func (m *MockConfig) QueryTracingThreshold() time.Duration
QueryTracingThreshold mocks base method.
func (*MockConfig) StateServingInfo ¶
func (m *MockConfig) StateServingInfo() (controller.StateServingInfo, bool)
StateServingInfo mocks base method.
func (*MockConfig) SystemIdentityPath ¶
func (m *MockConfig) SystemIdentityPath() string
SystemIdentityPath mocks base method.
func (*MockConfig) TransientDataDir ¶
func (m *MockConfig) TransientDataDir() string
TransientDataDir mocks base method.
func (*MockConfig) UpgradedToVersion ¶
func (m *MockConfig) UpgradedToVersion() version.Number
UpgradedToVersion mocks base method.
func (*MockConfig) WriteCommands ¶
func (m *MockConfig) WriteCommands(arg0 shell.Renderer) ([]string, error)
WriteCommands mocks base method.
type MockConfigAPIAddressesCall ¶
MockConfigAPIAddressesCall wrap *gomock.Call
func (*MockConfigAPIAddressesCall) Do ¶
func (c *MockConfigAPIAddressesCall) Do(f func() ([]string, error)) *MockConfigAPIAddressesCall
Do rewrite *gomock.Call.Do
func (*MockConfigAPIAddressesCall) DoAndReturn ¶
func (c *MockConfigAPIAddressesCall) DoAndReturn(f func() ([]string, error)) *MockConfigAPIAddressesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigAPIAddressesCall) Return ¶
func (c *MockConfigAPIAddressesCall) Return(arg0 []string, arg1 error) *MockConfigAPIAddressesCall
Return rewrite *gomock.Call.Return
type MockConfigAPIInfoCall ¶
MockConfigAPIInfoCall wrap *gomock.Call
func (*MockConfigAPIInfoCall) Do ¶
func (c *MockConfigAPIInfoCall) Do(f func() (*api.Info, bool)) *MockConfigAPIInfoCall
Do rewrite *gomock.Call.Do
func (*MockConfigAPIInfoCall) DoAndReturn ¶
func (c *MockConfigAPIInfoCall) DoAndReturn(f func() (*api.Info, bool)) *MockConfigAPIInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigAPIInfoCall) Return ¶
func (c *MockConfigAPIInfoCall) Return(arg0 *api.Info, arg1 bool) *MockConfigAPIInfoCall
Return rewrite *gomock.Call.Return
type MockConfigAgentLogfileMaxBackupsCall ¶
MockConfigAgentLogfileMaxBackupsCall wrap *gomock.Call
func (*MockConfigAgentLogfileMaxBackupsCall) Do ¶
func (c *MockConfigAgentLogfileMaxBackupsCall) Do(f func() int) *MockConfigAgentLogfileMaxBackupsCall
Do rewrite *gomock.Call.Do
func (*MockConfigAgentLogfileMaxBackupsCall) DoAndReturn ¶
func (c *MockConfigAgentLogfileMaxBackupsCall) DoAndReturn(f func() int) *MockConfigAgentLogfileMaxBackupsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigAgentLogfileMaxBackupsCall) Return ¶
func (c *MockConfigAgentLogfileMaxBackupsCall) Return(arg0 int) *MockConfigAgentLogfileMaxBackupsCall
Return rewrite *gomock.Call.Return
type MockConfigAgentLogfileMaxSizeMBCall ¶
MockConfigAgentLogfileMaxSizeMBCall wrap *gomock.Call
func (*MockConfigAgentLogfileMaxSizeMBCall) Do ¶
func (c *MockConfigAgentLogfileMaxSizeMBCall) Do(f func() int) *MockConfigAgentLogfileMaxSizeMBCall
Do rewrite *gomock.Call.Do
func (*MockConfigAgentLogfileMaxSizeMBCall) DoAndReturn ¶
func (c *MockConfigAgentLogfileMaxSizeMBCall) DoAndReturn(f func() int) *MockConfigAgentLogfileMaxSizeMBCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigAgentLogfileMaxSizeMBCall) Return ¶
func (c *MockConfigAgentLogfileMaxSizeMBCall) Return(arg0 int) *MockConfigAgentLogfileMaxSizeMBCall
Return rewrite *gomock.Call.Return
type MockConfigCACertCall ¶
MockConfigCACertCall wrap *gomock.Call
func (*MockConfigCACertCall) Do ¶
func (c *MockConfigCACertCall) Do(f func() string) *MockConfigCACertCall
Do rewrite *gomock.Call.Do
func (*MockConfigCACertCall) DoAndReturn ¶
func (c *MockConfigCACertCall) DoAndReturn(f func() string) *MockConfigCACertCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigCACertCall) Return ¶
func (c *MockConfigCACertCall) Return(arg0 string) *MockConfigCACertCall
Return rewrite *gomock.Call.Return
type MockConfigControllerCall ¶
MockConfigControllerCall wrap *gomock.Call
func (*MockConfigControllerCall) Do ¶
func (c *MockConfigControllerCall) Do(f func() names.ControllerTag) *MockConfigControllerCall
Do rewrite *gomock.Call.Do
func (*MockConfigControllerCall) DoAndReturn ¶
func (c *MockConfigControllerCall) DoAndReturn(f func() names.ControllerTag) *MockConfigControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigControllerCall) Return ¶
func (c *MockConfigControllerCall) Return(arg0 names.ControllerTag) *MockConfigControllerCall
Return rewrite *gomock.Call.Return
type MockConfigDataDirCall ¶
MockConfigDataDirCall wrap *gomock.Call
func (*MockConfigDataDirCall) Do ¶
func (c *MockConfigDataDirCall) Do(f func() string) *MockConfigDataDirCall
Do rewrite *gomock.Call.Do
func (*MockConfigDataDirCall) DoAndReturn ¶
func (c *MockConfigDataDirCall) DoAndReturn(f func() string) *MockConfigDataDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigDataDirCall) Return ¶
func (c *MockConfigDataDirCall) Return(arg0 string) *MockConfigDataDirCall
Return rewrite *gomock.Call.Return
type MockConfigDirCall ¶
MockConfigDirCall wrap *gomock.Call
func (*MockConfigDirCall) Do ¶
func (c *MockConfigDirCall) Do(f func() string) *MockConfigDirCall
Do rewrite *gomock.Call.Do
func (*MockConfigDirCall) DoAndReturn ¶
func (c *MockConfigDirCall) DoAndReturn(f func() string) *MockConfigDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigDirCall) Return ¶
func (c *MockConfigDirCall) Return(arg0 string) *MockConfigDirCall
Return rewrite *gomock.Call.Return
type MockConfigDqlitePortCall ¶
MockConfigDqlitePortCall wrap *gomock.Call
func (*MockConfigDqlitePortCall) Do ¶
func (c *MockConfigDqlitePortCall) Do(f func() (int, bool)) *MockConfigDqlitePortCall
Do rewrite *gomock.Call.Do
func (*MockConfigDqlitePortCall) DoAndReturn ¶
func (c *MockConfigDqlitePortCall) DoAndReturn(f func() (int, bool)) *MockConfigDqlitePortCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigDqlitePortCall) Return ¶
func (c *MockConfigDqlitePortCall) Return(arg0 int, arg1 bool) *MockConfigDqlitePortCall
Return rewrite *gomock.Call.Return
type MockConfigJobsCall ¶
MockConfigJobsCall wrap *gomock.Call
func (*MockConfigJobsCall) Do ¶
func (c *MockConfigJobsCall) Do(f func() []model.MachineJob) *MockConfigJobsCall
Do rewrite *gomock.Call.Do
func (*MockConfigJobsCall) DoAndReturn ¶
func (c *MockConfigJobsCall) DoAndReturn(f func() []model.MachineJob) *MockConfigJobsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigJobsCall) Return ¶
func (c *MockConfigJobsCall) Return(arg0 []model.MachineJob) *MockConfigJobsCall
Return rewrite *gomock.Call.Return
type MockConfigJujuDBSnapChannelCall ¶
MockConfigJujuDBSnapChannelCall wrap *gomock.Call
func (*MockConfigJujuDBSnapChannelCall) Do ¶
func (c *MockConfigJujuDBSnapChannelCall) Do(f func() string) *MockConfigJujuDBSnapChannelCall
Do rewrite *gomock.Call.Do
func (*MockConfigJujuDBSnapChannelCall) DoAndReturn ¶
func (c *MockConfigJujuDBSnapChannelCall) DoAndReturn(f func() string) *MockConfigJujuDBSnapChannelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigJujuDBSnapChannelCall) Return ¶
func (c *MockConfigJujuDBSnapChannelCall) Return(arg0 string) *MockConfigJujuDBSnapChannelCall
Return rewrite *gomock.Call.Return
type MockConfigLogDirCall ¶
MockConfigLogDirCall wrap *gomock.Call
func (*MockConfigLogDirCall) Do ¶
func (c *MockConfigLogDirCall) Do(f func() string) *MockConfigLogDirCall
Do rewrite *gomock.Call.Do
func (*MockConfigLogDirCall) DoAndReturn ¶
func (c *MockConfigLogDirCall) DoAndReturn(f func() string) *MockConfigLogDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigLogDirCall) Return ¶
func (c *MockConfigLogDirCall) Return(arg0 string) *MockConfigLogDirCall
Return rewrite *gomock.Call.Return
type MockConfigLoggingConfigCall ¶
MockConfigLoggingConfigCall wrap *gomock.Call
func (*MockConfigLoggingConfigCall) Do ¶
func (c *MockConfigLoggingConfigCall) Do(f func() string) *MockConfigLoggingConfigCall
Do rewrite *gomock.Call.Do
func (*MockConfigLoggingConfigCall) DoAndReturn ¶
func (c *MockConfigLoggingConfigCall) DoAndReturn(f func() string) *MockConfigLoggingConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigLoggingConfigCall) Return ¶
func (c *MockConfigLoggingConfigCall) Return(arg0 string) *MockConfigLoggingConfigCall
Return rewrite *gomock.Call.Return
type MockConfigMetricsSpoolDirCall ¶
MockConfigMetricsSpoolDirCall wrap *gomock.Call
func (*MockConfigMetricsSpoolDirCall) Do ¶
func (c *MockConfigMetricsSpoolDirCall) Do(f func() string) *MockConfigMetricsSpoolDirCall
Do rewrite *gomock.Call.Do
func (*MockConfigMetricsSpoolDirCall) DoAndReturn ¶
func (c *MockConfigMetricsSpoolDirCall) DoAndReturn(f func() string) *MockConfigMetricsSpoolDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigMetricsSpoolDirCall) Return ¶
func (c *MockConfigMetricsSpoolDirCall) Return(arg0 string) *MockConfigMetricsSpoolDirCall
Return rewrite *gomock.Call.Return
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) APIAddresses ¶
func (mr *MockConfigMockRecorder) APIAddresses() *MockConfigAPIAddressesCall
APIAddresses indicates an expected call of APIAddresses.
func (*MockConfigMockRecorder) APIInfo ¶
func (mr *MockConfigMockRecorder) APIInfo() *MockConfigAPIInfoCall
APIInfo indicates an expected call of APIInfo.
func (*MockConfigMockRecorder) AgentLogfileMaxBackups ¶
func (mr *MockConfigMockRecorder) AgentLogfileMaxBackups() *MockConfigAgentLogfileMaxBackupsCall
AgentLogfileMaxBackups indicates an expected call of AgentLogfileMaxBackups.
func (*MockConfigMockRecorder) AgentLogfileMaxSizeMB ¶
func (mr *MockConfigMockRecorder) AgentLogfileMaxSizeMB() *MockConfigAgentLogfileMaxSizeMBCall
AgentLogfileMaxSizeMB indicates an expected call of AgentLogfileMaxSizeMB.
func (*MockConfigMockRecorder) CACert ¶
func (mr *MockConfigMockRecorder) CACert() *MockConfigCACertCall
CACert indicates an expected call of CACert.
func (*MockConfigMockRecorder) Controller ¶
func (mr *MockConfigMockRecorder) Controller() *MockConfigControllerCall
Controller indicates an expected call of Controller.
func (*MockConfigMockRecorder) DataDir ¶
func (mr *MockConfigMockRecorder) DataDir() *MockConfigDataDirCall
DataDir indicates an expected call of DataDir.
func (*MockConfigMockRecorder) Dir ¶
func (mr *MockConfigMockRecorder) Dir() *MockConfigDirCall
Dir indicates an expected call of Dir.
func (*MockConfigMockRecorder) DqlitePort ¶
func (mr *MockConfigMockRecorder) DqlitePort() *MockConfigDqlitePortCall
DqlitePort indicates an expected call of DqlitePort.
func (*MockConfigMockRecorder) Jobs ¶
func (mr *MockConfigMockRecorder) Jobs() *MockConfigJobsCall
Jobs indicates an expected call of Jobs.
func (*MockConfigMockRecorder) JujuDBSnapChannel ¶
func (mr *MockConfigMockRecorder) JujuDBSnapChannel() *MockConfigJujuDBSnapChannelCall
JujuDBSnapChannel indicates an expected call of JujuDBSnapChannel.
func (*MockConfigMockRecorder) LogDir ¶
func (mr *MockConfigMockRecorder) LogDir() *MockConfigLogDirCall
LogDir indicates an expected call of LogDir.
func (*MockConfigMockRecorder) LoggingConfig ¶
func (mr *MockConfigMockRecorder) LoggingConfig() *MockConfigLoggingConfigCall
LoggingConfig indicates an expected call of LoggingConfig.
func (*MockConfigMockRecorder) MetricsSpoolDir ¶
func (mr *MockConfigMockRecorder) MetricsSpoolDir() *MockConfigMetricsSpoolDirCall
MetricsSpoolDir indicates an expected call of MetricsSpoolDir.
func (*MockConfigMockRecorder) Model ¶
func (mr *MockConfigMockRecorder) Model() *MockConfigModelCall
Model indicates an expected call of Model.
func (*MockConfigMockRecorder) MongoInfo ¶
func (mr *MockConfigMockRecorder) MongoInfo() *MockConfigMongoInfoCall
MongoInfo indicates an expected call of MongoInfo.
func (*MockConfigMockRecorder) MongoMemoryProfile ¶
func (mr *MockConfigMockRecorder) MongoMemoryProfile() *MockConfigMongoMemoryProfileCall
MongoMemoryProfile indicates an expected call of MongoMemoryProfile.
func (*MockConfigMockRecorder) Nonce ¶
func (mr *MockConfigMockRecorder) Nonce() *MockConfigNonceCall
Nonce indicates an expected call of Nonce.
func (*MockConfigMockRecorder) ObjectStoreType ¶
func (mr *MockConfigMockRecorder) ObjectStoreType() *MockConfigObjectStoreTypeCall
ObjectStoreType indicates an expected call of ObjectStoreType.
func (*MockConfigMockRecorder) OldPassword ¶
func (mr *MockConfigMockRecorder) OldPassword() *MockConfigOldPasswordCall
OldPassword indicates an expected call of OldPassword.
func (*MockConfigMockRecorder) OpenTelemetryEnabled ¶
func (mr *MockConfigMockRecorder) OpenTelemetryEnabled() *MockConfigOpenTelemetryEnabledCall
OpenTelemetryEnabled indicates an expected call of OpenTelemetryEnabled.
func (*MockConfigMockRecorder) OpenTelemetryEndpoint ¶
func (mr *MockConfigMockRecorder) OpenTelemetryEndpoint() *MockConfigOpenTelemetryEndpointCall
OpenTelemetryEndpoint indicates an expected call of OpenTelemetryEndpoint.
func (*MockConfigMockRecorder) OpenTelemetryInsecure ¶
func (mr *MockConfigMockRecorder) OpenTelemetryInsecure() *MockConfigOpenTelemetryInsecureCall
OpenTelemetryInsecure indicates an expected call of OpenTelemetryInsecure.
func (*MockConfigMockRecorder) OpenTelemetrySampleRatio ¶
func (mr *MockConfigMockRecorder) OpenTelemetrySampleRatio() *MockConfigOpenTelemetrySampleRatioCall
OpenTelemetrySampleRatio indicates an expected call of OpenTelemetrySampleRatio.
func (*MockConfigMockRecorder) OpenTelemetryStackTraces ¶
func (mr *MockConfigMockRecorder) OpenTelemetryStackTraces() *MockConfigOpenTelemetryStackTracesCall
OpenTelemetryStackTraces indicates an expected call of OpenTelemetryStackTraces.
func (*MockConfigMockRecorder) OpenTelemetryTailSamplingThreshold ¶
func (mr *MockConfigMockRecorder) OpenTelemetryTailSamplingThreshold() *MockConfigOpenTelemetryTailSamplingThresholdCall
OpenTelemetryTailSamplingThreshold indicates an expected call of OpenTelemetryTailSamplingThreshold.
func (*MockConfigMockRecorder) QueryTracingEnabled ¶
func (mr *MockConfigMockRecorder) QueryTracingEnabled() *MockConfigQueryTracingEnabledCall
QueryTracingEnabled indicates an expected call of QueryTracingEnabled.
func (*MockConfigMockRecorder) QueryTracingThreshold ¶
func (mr *MockConfigMockRecorder) QueryTracingThreshold() *MockConfigQueryTracingThresholdCall
QueryTracingThreshold indicates an expected call of QueryTracingThreshold.
func (*MockConfigMockRecorder) StateServingInfo ¶
func (mr *MockConfigMockRecorder) StateServingInfo() *MockConfigStateServingInfoCall
StateServingInfo indicates an expected call of StateServingInfo.
func (*MockConfigMockRecorder) SystemIdentityPath ¶
func (mr *MockConfigMockRecorder) SystemIdentityPath() *MockConfigSystemIdentityPathCall
SystemIdentityPath indicates an expected call of SystemIdentityPath.
func (*MockConfigMockRecorder) Tag ¶
func (mr *MockConfigMockRecorder) Tag() *MockConfigTagCall
Tag indicates an expected call of Tag.
func (*MockConfigMockRecorder) TransientDataDir ¶
func (mr *MockConfigMockRecorder) TransientDataDir() *MockConfigTransientDataDirCall
TransientDataDir indicates an expected call of TransientDataDir.
func (*MockConfigMockRecorder) UpgradedToVersion ¶
func (mr *MockConfigMockRecorder) UpgradedToVersion() *MockConfigUpgradedToVersionCall
UpgradedToVersion indicates an expected call of UpgradedToVersion.
func (*MockConfigMockRecorder) Value ¶
func (mr *MockConfigMockRecorder) Value(arg0 any) *MockConfigValueCall
Value indicates an expected call of Value.
func (*MockConfigMockRecorder) WriteCommands ¶
func (mr *MockConfigMockRecorder) WriteCommands(arg0 any) *MockConfigWriteCommandsCall
WriteCommands indicates an expected call of WriteCommands.
type MockConfigModelCall ¶
MockConfigModelCall wrap *gomock.Call
func (*MockConfigModelCall) Do ¶
func (c *MockConfigModelCall) Do(f func() names.ModelTag) *MockConfigModelCall
Do rewrite *gomock.Call.Do
func (*MockConfigModelCall) DoAndReturn ¶
func (c *MockConfigModelCall) DoAndReturn(f func() names.ModelTag) *MockConfigModelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigModelCall) Return ¶
func (c *MockConfigModelCall) Return(arg0 names.ModelTag) *MockConfigModelCall
Return rewrite *gomock.Call.Return
type MockConfigMongoInfoCall ¶
MockConfigMongoInfoCall wrap *gomock.Call
func (*MockConfigMongoInfoCall) Do ¶
func (c *MockConfigMongoInfoCall) Do(f func() (*mongo.MongoInfo, bool)) *MockConfigMongoInfoCall
Do rewrite *gomock.Call.Do
func (*MockConfigMongoInfoCall) DoAndReturn ¶
func (c *MockConfigMongoInfoCall) DoAndReturn(f func() (*mongo.MongoInfo, bool)) *MockConfigMongoInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigMongoInfoCall) Return ¶
func (c *MockConfigMongoInfoCall) Return(arg0 *mongo.MongoInfo, arg1 bool) *MockConfigMongoInfoCall
Return rewrite *gomock.Call.Return
type MockConfigMongoMemoryProfileCall ¶
MockConfigMongoMemoryProfileCall wrap *gomock.Call
func (*MockConfigMongoMemoryProfileCall) Do ¶
func (c *MockConfigMongoMemoryProfileCall) Do(f func() mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
Do rewrite *gomock.Call.Do
func (*MockConfigMongoMemoryProfileCall) DoAndReturn ¶
func (c *MockConfigMongoMemoryProfileCall) DoAndReturn(f func() mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigMongoMemoryProfileCall) Return ¶
func (c *MockConfigMongoMemoryProfileCall) Return(arg0 mongo.MemoryProfile) *MockConfigMongoMemoryProfileCall
Return rewrite *gomock.Call.Return
type MockConfigNonceCall ¶
MockConfigNonceCall wrap *gomock.Call
func (*MockConfigNonceCall) Do ¶
func (c *MockConfigNonceCall) Do(f func() string) *MockConfigNonceCall
Do rewrite *gomock.Call.Do
func (*MockConfigNonceCall) DoAndReturn ¶
func (c *MockConfigNonceCall) DoAndReturn(f func() string) *MockConfigNonceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigNonceCall) Return ¶
func (c *MockConfigNonceCall) Return(arg0 string) *MockConfigNonceCall
Return rewrite *gomock.Call.Return
type MockConfigObjectStoreTypeCall ¶
MockConfigObjectStoreTypeCall wrap *gomock.Call
func (*MockConfigObjectStoreTypeCall) Do ¶
func (c *MockConfigObjectStoreTypeCall) Do(f func() objectstore.BackendType) *MockConfigObjectStoreTypeCall
Do rewrite *gomock.Call.Do
func (*MockConfigObjectStoreTypeCall) DoAndReturn ¶
func (c *MockConfigObjectStoreTypeCall) DoAndReturn(f func() objectstore.BackendType) *MockConfigObjectStoreTypeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigObjectStoreTypeCall) Return ¶
func (c *MockConfigObjectStoreTypeCall) Return(arg0 objectstore.BackendType) *MockConfigObjectStoreTypeCall
Return rewrite *gomock.Call.Return
type MockConfigOldPasswordCall ¶
MockConfigOldPasswordCall wrap *gomock.Call
func (*MockConfigOldPasswordCall) Do ¶
func (c *MockConfigOldPasswordCall) Do(f func() string) *MockConfigOldPasswordCall
Do rewrite *gomock.Call.Do
func (*MockConfigOldPasswordCall) DoAndReturn ¶
func (c *MockConfigOldPasswordCall) DoAndReturn(f func() string) *MockConfigOldPasswordCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOldPasswordCall) Return ¶
func (c *MockConfigOldPasswordCall) Return(arg0 string) *MockConfigOldPasswordCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetryEnabledCall ¶
MockConfigOpenTelemetryEnabledCall wrap *gomock.Call
func (*MockConfigOpenTelemetryEnabledCall) Do ¶
func (c *MockConfigOpenTelemetryEnabledCall) Do(f func() bool) *MockConfigOpenTelemetryEnabledCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetryEnabledCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetryEnabledCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryEnabledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetryEnabledCall) Return ¶
func (c *MockConfigOpenTelemetryEnabledCall) Return(arg0 bool) *MockConfigOpenTelemetryEnabledCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetryEndpointCall ¶
MockConfigOpenTelemetryEndpointCall wrap *gomock.Call
func (*MockConfigOpenTelemetryEndpointCall) Do ¶
func (c *MockConfigOpenTelemetryEndpointCall) Do(f func() string) *MockConfigOpenTelemetryEndpointCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetryEndpointCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetryEndpointCall) DoAndReturn(f func() string) *MockConfigOpenTelemetryEndpointCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetryEndpointCall) Return ¶
func (c *MockConfigOpenTelemetryEndpointCall) Return(arg0 string) *MockConfigOpenTelemetryEndpointCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetryInsecureCall ¶
MockConfigOpenTelemetryInsecureCall wrap *gomock.Call
func (*MockConfigOpenTelemetryInsecureCall) Do ¶
func (c *MockConfigOpenTelemetryInsecureCall) Do(f func() bool) *MockConfigOpenTelemetryInsecureCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetryInsecureCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetryInsecureCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryInsecureCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetryInsecureCall) Return ¶
func (c *MockConfigOpenTelemetryInsecureCall) Return(arg0 bool) *MockConfigOpenTelemetryInsecureCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetrySampleRatioCall ¶
MockConfigOpenTelemetrySampleRatioCall wrap *gomock.Call
func (*MockConfigOpenTelemetrySampleRatioCall) Do ¶
func (c *MockConfigOpenTelemetrySampleRatioCall) Do(f func() float64) *MockConfigOpenTelemetrySampleRatioCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetrySampleRatioCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetrySampleRatioCall) DoAndReturn(f func() float64) *MockConfigOpenTelemetrySampleRatioCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetrySampleRatioCall) Return ¶
func (c *MockConfigOpenTelemetrySampleRatioCall) Return(arg0 float64) *MockConfigOpenTelemetrySampleRatioCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetryStackTracesCall ¶
MockConfigOpenTelemetryStackTracesCall wrap *gomock.Call
func (*MockConfigOpenTelemetryStackTracesCall) Do ¶
func (c *MockConfigOpenTelemetryStackTracesCall) Do(f func() bool) *MockConfigOpenTelemetryStackTracesCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetryStackTracesCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetryStackTracesCall) DoAndReturn(f func() bool) *MockConfigOpenTelemetryStackTracesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetryStackTracesCall) Return ¶
func (c *MockConfigOpenTelemetryStackTracesCall) Return(arg0 bool) *MockConfigOpenTelemetryStackTracesCall
Return rewrite *gomock.Call.Return
type MockConfigOpenTelemetryTailSamplingThresholdCall ¶
MockConfigOpenTelemetryTailSamplingThresholdCall wrap *gomock.Call
func (*MockConfigOpenTelemetryTailSamplingThresholdCall) Do ¶
func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) Do(f func() time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
Do rewrite *gomock.Call.Do
func (*MockConfigOpenTelemetryTailSamplingThresholdCall) DoAndReturn ¶
func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) DoAndReturn(f func() time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigOpenTelemetryTailSamplingThresholdCall) Return ¶
func (c *MockConfigOpenTelemetryTailSamplingThresholdCall) Return(arg0 time.Duration) *MockConfigOpenTelemetryTailSamplingThresholdCall
Return rewrite *gomock.Call.Return
type MockConfigQueryTracingEnabledCall ¶
MockConfigQueryTracingEnabledCall wrap *gomock.Call
func (*MockConfigQueryTracingEnabledCall) Do ¶
func (c *MockConfigQueryTracingEnabledCall) Do(f func() bool) *MockConfigQueryTracingEnabledCall
Do rewrite *gomock.Call.Do
func (*MockConfigQueryTracingEnabledCall) DoAndReturn ¶
func (c *MockConfigQueryTracingEnabledCall) DoAndReturn(f func() bool) *MockConfigQueryTracingEnabledCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigQueryTracingEnabledCall) Return ¶
func (c *MockConfigQueryTracingEnabledCall) Return(arg0 bool) *MockConfigQueryTracingEnabledCall
Return rewrite *gomock.Call.Return
type MockConfigQueryTracingThresholdCall ¶
MockConfigQueryTracingThresholdCall wrap *gomock.Call
func (*MockConfigQueryTracingThresholdCall) Do ¶
func (c *MockConfigQueryTracingThresholdCall) Do(f func() time.Duration) *MockConfigQueryTracingThresholdCall
Do rewrite *gomock.Call.Do
func (*MockConfigQueryTracingThresholdCall) DoAndReturn ¶
func (c *MockConfigQueryTracingThresholdCall) DoAndReturn(f func() time.Duration) *MockConfigQueryTracingThresholdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigQueryTracingThresholdCall) Return ¶
func (c *MockConfigQueryTracingThresholdCall) Return(arg0 time.Duration) *MockConfigQueryTracingThresholdCall
Return rewrite *gomock.Call.Return
type MockConfigStateServingInfoCall ¶
MockConfigStateServingInfoCall wrap *gomock.Call
func (*MockConfigStateServingInfoCall) Do ¶
func (c *MockConfigStateServingInfoCall) Do(f func() (controller.StateServingInfo, bool)) *MockConfigStateServingInfoCall
Do rewrite *gomock.Call.Do
func (*MockConfigStateServingInfoCall) DoAndReturn ¶
func (c *MockConfigStateServingInfoCall) DoAndReturn(f func() (controller.StateServingInfo, bool)) *MockConfigStateServingInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigStateServingInfoCall) Return ¶
func (c *MockConfigStateServingInfoCall) Return(arg0 controller.StateServingInfo, arg1 bool) *MockConfigStateServingInfoCall
Return rewrite *gomock.Call.Return
type MockConfigSystemIdentityPathCall ¶
MockConfigSystemIdentityPathCall wrap *gomock.Call
func (*MockConfigSystemIdentityPathCall) Do ¶
func (c *MockConfigSystemIdentityPathCall) Do(f func() string) *MockConfigSystemIdentityPathCall
Do rewrite *gomock.Call.Do
func (*MockConfigSystemIdentityPathCall) DoAndReturn ¶
func (c *MockConfigSystemIdentityPathCall) DoAndReturn(f func() string) *MockConfigSystemIdentityPathCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigSystemIdentityPathCall) Return ¶
func (c *MockConfigSystemIdentityPathCall) Return(arg0 string) *MockConfigSystemIdentityPathCall
Return rewrite *gomock.Call.Return
type MockConfigTagCall ¶
MockConfigTagCall wrap *gomock.Call
func (*MockConfigTagCall) Do ¶
func (c *MockConfigTagCall) Do(f func() names.Tag) *MockConfigTagCall
Do rewrite *gomock.Call.Do
func (*MockConfigTagCall) DoAndReturn ¶
func (c *MockConfigTagCall) DoAndReturn(f func() names.Tag) *MockConfigTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigTagCall) Return ¶
func (c *MockConfigTagCall) Return(arg0 names.Tag) *MockConfigTagCall
Return rewrite *gomock.Call.Return
type MockConfigTransientDataDirCall ¶
MockConfigTransientDataDirCall wrap *gomock.Call
func (*MockConfigTransientDataDirCall) Do ¶
func (c *MockConfigTransientDataDirCall) Do(f func() string) *MockConfigTransientDataDirCall
Do rewrite *gomock.Call.Do
func (*MockConfigTransientDataDirCall) DoAndReturn ¶
func (c *MockConfigTransientDataDirCall) DoAndReturn(f func() string) *MockConfigTransientDataDirCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigTransientDataDirCall) Return ¶
func (c *MockConfigTransientDataDirCall) Return(arg0 string) *MockConfigTransientDataDirCall
Return rewrite *gomock.Call.Return
type MockConfigUpgradedToVersionCall ¶
MockConfigUpgradedToVersionCall wrap *gomock.Call
func (*MockConfigUpgradedToVersionCall) Do ¶
func (c *MockConfigUpgradedToVersionCall) Do(f func() version.Number) *MockConfigUpgradedToVersionCall
Do rewrite *gomock.Call.Do
func (*MockConfigUpgradedToVersionCall) DoAndReturn ¶
func (c *MockConfigUpgradedToVersionCall) DoAndReturn(f func() version.Number) *MockConfigUpgradedToVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigUpgradedToVersionCall) Return ¶
func (c *MockConfigUpgradedToVersionCall) Return(arg0 version.Number) *MockConfigUpgradedToVersionCall
Return rewrite *gomock.Call.Return
type MockConfigValueCall ¶
MockConfigValueCall wrap *gomock.Call
func (*MockConfigValueCall) Do ¶
func (c *MockConfigValueCall) Do(f func(string) string) *MockConfigValueCall
Do rewrite *gomock.Call.Do
func (*MockConfigValueCall) DoAndReturn ¶
func (c *MockConfigValueCall) DoAndReturn(f func(string) string) *MockConfigValueCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigValueCall) Return ¶
func (c *MockConfigValueCall) Return(arg0 string) *MockConfigValueCall
Return rewrite *gomock.Call.Return
type MockConfigWriteCommandsCall ¶
MockConfigWriteCommandsCall wrap *gomock.Call
func (*MockConfigWriteCommandsCall) Do ¶
func (c *MockConfigWriteCommandsCall) Do(f func(shell.Renderer) ([]string, error)) *MockConfigWriteCommandsCall
Do rewrite *gomock.Call.Do
func (*MockConfigWriteCommandsCall) DoAndReturn ¶
func (c *MockConfigWriteCommandsCall) DoAndReturn(f func(shell.Renderer) ([]string, error)) *MockConfigWriteCommandsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConfigWriteCommandsCall) Return ¶
func (c *MockConfigWriteCommandsCall) Return(arg0 []string, arg1 error) *MockConfigWriteCommandsCall
Return rewrite *gomock.Call.Return
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 envcontext.ProviderCallContext, arg1 string, arg2 version.Number) error
AdoptResources mocks base method.
func (*MockEnviron) AllInstances ¶
func (m *MockEnviron) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method.
func (*MockEnviron) AllRunningInstances ¶
func (m *MockEnviron) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method.
func (*MockEnviron) Bootstrap ¶
func (m *MockEnviron) Bootstrap(arg0 environs.BootstrapContext, arg1 envcontext.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 envcontext.ProviderCallContext) (constraints.Validator, error)
ConstraintsValidator mocks base method.
func (*MockEnviron) ControllerInstances ¶
func (m *MockEnviron) ControllerInstances(arg0 envcontext.ProviderCallContext, arg1 string) ([]instance.Id, error)
ControllerInstances mocks base method.
func (*MockEnviron) Create ¶
func (m *MockEnviron) Create(arg0 envcontext.ProviderCallContext, arg1 environs.CreateParams) error
Create mocks base method.
func (*MockEnviron) Destroy ¶
func (m *MockEnviron) Destroy(arg0 envcontext.ProviderCallContext) error
Destroy mocks base method.
func (*MockEnviron) DestroyController ¶
func (m *MockEnviron) DestroyController(arg0 envcontext.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 envcontext.ProviderCallContext, arg1 constraints.Value) (instances.InstanceTypesWithCostMetadata, error)
InstanceTypes mocks base method.
func (*MockEnviron) Instances ¶
func (m *MockEnviron) Instances(arg0 envcontext.ProviderCallContext, arg1 []instance.Id) ([]instances.Instance, error)
Instances mocks base method.
func (*MockEnviron) PrecheckInstance ¶
func (m *MockEnviron) PrecheckInstance(arg0 envcontext.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) StartInstance ¶
func (m *MockEnviron) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method.
func (*MockEnviron) StopInstances ¶
func (m *MockEnviron) StopInstances(arg0 envcontext.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 MockEnvironAdoptResourcesCall ¶
MockEnvironAdoptResourcesCall wrap *gomock.Call
func (*MockEnvironAdoptResourcesCall) Do ¶
func (c *MockEnvironAdoptResourcesCall) Do(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockEnvironAdoptResourcesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironAdoptResourcesCall) DoAndReturn ¶
func (c *MockEnvironAdoptResourcesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string, version.Number) error) *MockEnvironAdoptResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironAdoptResourcesCall) Return ¶
func (c *MockEnvironAdoptResourcesCall) Return(arg0 error) *MockEnvironAdoptResourcesCall
Return rewrite *gomock.Call.Return
type MockEnvironAllInstancesCall ¶
MockEnvironAllInstancesCall wrap *gomock.Call
func (*MockEnvironAllInstancesCall) Do ¶
func (c *MockEnvironAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllInstancesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironAllInstancesCall) DoAndReturn ¶
func (c *MockEnvironAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironAllInstancesCall) Return ¶
func (c *MockEnvironAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockEnvironAllInstancesCall
Return rewrite *gomock.Call.Return
type MockEnvironAllRunningInstancesCall ¶
MockEnvironAllRunningInstancesCall wrap *gomock.Call
func (*MockEnvironAllRunningInstancesCall) Do ¶
func (c *MockEnvironAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllRunningInstancesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironAllRunningInstancesCall) DoAndReturn ¶
func (c *MockEnvironAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockEnvironAllRunningInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironAllRunningInstancesCall) Return ¶
func (c *MockEnvironAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockEnvironAllRunningInstancesCall
Return rewrite *gomock.Call.Return
type MockEnvironBootstrapCall ¶
MockEnvironBootstrapCall wrap *gomock.Call
func (*MockEnvironBootstrapCall) Do ¶
func (c *MockEnvironBootstrapCall) Do(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockEnvironBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockEnvironBootstrapCall) DoAndReturn ¶
func (c *MockEnvironBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, envcontext.ProviderCallContext, environs.BootstrapParams) (*environs.BootstrapResult, error)) *MockEnvironBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironBootstrapCall) Return ¶
func (c *MockEnvironBootstrapCall) Return(arg0 *environs.BootstrapResult, arg1 error) *MockEnvironBootstrapCall
Return rewrite *gomock.Call.Return
type MockEnvironConfigCall ¶
MockEnvironConfigCall wrap *gomock.Call
func (*MockEnvironConfigCall) Do ¶
func (c *MockEnvironConfigCall) Do(f func() *config.Config) *MockEnvironConfigCall
Do rewrite *gomock.Call.Do
func (*MockEnvironConfigCall) DoAndReturn ¶
func (c *MockEnvironConfigCall) DoAndReturn(f func() *config.Config) *MockEnvironConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironConfigCall) Return ¶
func (c *MockEnvironConfigCall) Return(arg0 *config.Config) *MockEnvironConfigCall
Return rewrite *gomock.Call.Return
type MockEnvironConstraintsValidatorCall ¶
MockEnvironConstraintsValidatorCall wrap *gomock.Call
func (*MockEnvironConstraintsValidatorCall) Do ¶
func (c *MockEnvironConstraintsValidatorCall) Do(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockEnvironConstraintsValidatorCall
Do rewrite *gomock.Call.Do
func (*MockEnvironConstraintsValidatorCall) DoAndReturn ¶
func (c *MockEnvironConstraintsValidatorCall) DoAndReturn(f func(envcontext.ProviderCallContext) (constraints.Validator, error)) *MockEnvironConstraintsValidatorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironConstraintsValidatorCall) Return ¶
func (c *MockEnvironConstraintsValidatorCall) Return(arg0 constraints.Validator, arg1 error) *MockEnvironConstraintsValidatorCall
Return rewrite *gomock.Call.Return
type MockEnvironControllerInstancesCall ¶
MockEnvironControllerInstancesCall wrap *gomock.Call
func (*MockEnvironControllerInstancesCall) Do ¶
func (c *MockEnvironControllerInstancesCall) Do(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockEnvironControllerInstancesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironControllerInstancesCall) DoAndReturn ¶
func (c *MockEnvironControllerInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) ([]instance.Id, error)) *MockEnvironControllerInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironControllerInstancesCall) Return ¶
func (c *MockEnvironControllerInstancesCall) Return(arg0 []instance.Id, arg1 error) *MockEnvironControllerInstancesCall
Return rewrite *gomock.Call.Return
type MockEnvironCreateCall ¶
MockEnvironCreateCall wrap *gomock.Call
func (*MockEnvironCreateCall) Do ¶
func (c *MockEnvironCreateCall) Do(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockEnvironCreateCall
Do rewrite *gomock.Call.Do
func (*MockEnvironCreateCall) DoAndReturn ¶
func (c *MockEnvironCreateCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.CreateParams) error) *MockEnvironCreateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironCreateCall) Return ¶
func (c *MockEnvironCreateCall) Return(arg0 error) *MockEnvironCreateCall
Return rewrite *gomock.Call.Return
type MockEnvironDestroyCall ¶
MockEnvironDestroyCall wrap *gomock.Call
func (*MockEnvironDestroyCall) Do ¶
func (c *MockEnvironDestroyCall) Do(f func(envcontext.ProviderCallContext) error) *MockEnvironDestroyCall
Do rewrite *gomock.Call.Do
func (*MockEnvironDestroyCall) DoAndReturn ¶
func (c *MockEnvironDestroyCall) DoAndReturn(f func(envcontext.ProviderCallContext) error) *MockEnvironDestroyCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironDestroyCall) Return ¶
func (c *MockEnvironDestroyCall) Return(arg0 error) *MockEnvironDestroyCall
Return rewrite *gomock.Call.Return
type MockEnvironDestroyControllerCall ¶
MockEnvironDestroyControllerCall wrap *gomock.Call
func (*MockEnvironDestroyControllerCall) Do ¶
func (c *MockEnvironDestroyControllerCall) Do(f func(envcontext.ProviderCallContext, string) error) *MockEnvironDestroyControllerCall
Do rewrite *gomock.Call.Do
func (*MockEnvironDestroyControllerCall) DoAndReturn ¶
func (c *MockEnvironDestroyControllerCall) DoAndReturn(f func(envcontext.ProviderCallContext, string) error) *MockEnvironDestroyControllerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironDestroyControllerCall) Return ¶
func (c *MockEnvironDestroyControllerCall) Return(arg0 error) *MockEnvironDestroyControllerCall
Return rewrite *gomock.Call.Return
type MockEnvironInstanceTypesCall ¶
MockEnvironInstanceTypesCall wrap *gomock.Call
func (*MockEnvironInstanceTypesCall) Do ¶
func (c *MockEnvironInstanceTypesCall) Do(f func(envcontext.ProviderCallContext, constraints.Value) (instances.InstanceTypesWithCostMetadata, error)) *MockEnvironInstanceTypesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironInstanceTypesCall) DoAndReturn ¶
func (c *MockEnvironInstanceTypesCall) DoAndReturn(f func(envcontext.ProviderCallContext, constraints.Value) (instances.InstanceTypesWithCostMetadata, error)) *MockEnvironInstanceTypesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironInstanceTypesCall) Return ¶
func (c *MockEnvironInstanceTypesCall) Return(arg0 instances.InstanceTypesWithCostMetadata, arg1 error) *MockEnvironInstanceTypesCall
Return rewrite *gomock.Call.Return
type MockEnvironInstancesCall ¶
MockEnvironInstancesCall wrap *gomock.Call
func (*MockEnvironInstancesCall) Do ¶
func (c *MockEnvironInstancesCall) Do(f func(envcontext.ProviderCallContext, []instance.Id) ([]instances.Instance, error)) *MockEnvironInstancesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironInstancesCall) DoAndReturn ¶
func (c *MockEnvironInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, []instance.Id) ([]instances.Instance, error)) *MockEnvironInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironInstancesCall) Return ¶
func (c *MockEnvironInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockEnvironInstancesCall
Return rewrite *gomock.Call.Return
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) *MockEnvironAdoptResourcesCall
AdoptResources indicates an expected call of AdoptResources.
func (*MockEnvironMockRecorder) AllInstances ¶
func (mr *MockEnvironMockRecorder) AllInstances(arg0 any) *MockEnvironAllInstancesCall
AllInstances indicates an expected call of AllInstances.
func (*MockEnvironMockRecorder) AllRunningInstances ¶
func (mr *MockEnvironMockRecorder) AllRunningInstances(arg0 any) *MockEnvironAllRunningInstancesCall
AllRunningInstances indicates an expected call of AllRunningInstances.
func (*MockEnvironMockRecorder) Bootstrap ¶
func (mr *MockEnvironMockRecorder) Bootstrap(arg0, arg1, arg2 any) *MockEnvironBootstrapCall
Bootstrap indicates an expected call of Bootstrap.
func (*MockEnvironMockRecorder) Config ¶
func (mr *MockEnvironMockRecorder) Config() *MockEnvironConfigCall
Config indicates an expected call of Config.
func (*MockEnvironMockRecorder) ConstraintsValidator ¶
func (mr *MockEnvironMockRecorder) ConstraintsValidator(arg0 any) *MockEnvironConstraintsValidatorCall
ConstraintsValidator indicates an expected call of ConstraintsValidator.
func (*MockEnvironMockRecorder) ControllerInstances ¶
func (mr *MockEnvironMockRecorder) ControllerInstances(arg0, arg1 any) *MockEnvironControllerInstancesCall
ControllerInstances indicates an expected call of ControllerInstances.
func (*MockEnvironMockRecorder) Create ¶
func (mr *MockEnvironMockRecorder) Create(arg0, arg1 any) *MockEnvironCreateCall
Create indicates an expected call of Create.
func (*MockEnvironMockRecorder) Destroy ¶
func (mr *MockEnvironMockRecorder) Destroy(arg0 any) *MockEnvironDestroyCall
Destroy indicates an expected call of Destroy.
func (*MockEnvironMockRecorder) DestroyController ¶
func (mr *MockEnvironMockRecorder) DestroyController(arg0, arg1 any) *MockEnvironDestroyControllerCall
DestroyController indicates an expected call of DestroyController.
func (*MockEnvironMockRecorder) InstanceTypes ¶
func (mr *MockEnvironMockRecorder) InstanceTypes(arg0, arg1 any) *MockEnvironInstanceTypesCall
InstanceTypes indicates an expected call of InstanceTypes.
func (*MockEnvironMockRecorder) Instances ¶
func (mr *MockEnvironMockRecorder) Instances(arg0, arg1 any) *MockEnvironInstancesCall
Instances indicates an expected call of Instances.
func (*MockEnvironMockRecorder) PrecheckInstance ¶
func (mr *MockEnvironMockRecorder) PrecheckInstance(arg0, arg1 any) *MockEnvironPrecheckInstanceCall
PrecheckInstance indicates an expected call of PrecheckInstance.
func (*MockEnvironMockRecorder) PrepareForBootstrap ¶
func (mr *MockEnvironMockRecorder) PrepareForBootstrap(arg0, arg1 any) *MockEnvironPrepareForBootstrapCall
PrepareForBootstrap indicates an expected call of PrepareForBootstrap.
func (*MockEnvironMockRecorder) Provider ¶
func (mr *MockEnvironMockRecorder) Provider() *MockEnvironProviderCall
Provider indicates an expected call of Provider.
func (*MockEnvironMockRecorder) SetConfig ¶
func (mr *MockEnvironMockRecorder) SetConfig(arg0, arg1 any) *MockEnvironSetConfigCall
SetConfig indicates an expected call of SetConfig.
func (*MockEnvironMockRecorder) StartInstance ¶
func (mr *MockEnvironMockRecorder) StartInstance(arg0, arg1 any) *MockEnvironStartInstanceCall
StartInstance indicates an expected call of StartInstance.
func (*MockEnvironMockRecorder) StopInstances ¶
func (mr *MockEnvironMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockEnvironStopInstancesCall
StopInstances indicates an expected call of StopInstances.
func (*MockEnvironMockRecorder) StorageProvider ¶
func (mr *MockEnvironMockRecorder) StorageProvider(arg0 any) *MockEnvironStorageProviderCall
StorageProvider indicates an expected call of StorageProvider.
func (*MockEnvironMockRecorder) StorageProviderTypes ¶
func (mr *MockEnvironMockRecorder) StorageProviderTypes() *MockEnvironStorageProviderTypesCall
StorageProviderTypes indicates an expected call of StorageProviderTypes.
type MockEnvironPrecheckInstanceCall ¶
MockEnvironPrecheckInstanceCall wrap *gomock.Call
func (*MockEnvironPrecheckInstanceCall) Do ¶
func (c *MockEnvironPrecheckInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockEnvironPrecheckInstanceCall
Do rewrite *gomock.Call.Do
func (*MockEnvironPrecheckInstanceCall) DoAndReturn ¶
func (c *MockEnvironPrecheckInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.PrecheckInstanceParams) error) *MockEnvironPrecheckInstanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironPrecheckInstanceCall) Return ¶
func (c *MockEnvironPrecheckInstanceCall) Return(arg0 error) *MockEnvironPrecheckInstanceCall
Return rewrite *gomock.Call.Return
type MockEnvironPrepareForBootstrapCall ¶
MockEnvironPrepareForBootstrapCall wrap *gomock.Call
func (*MockEnvironPrepareForBootstrapCall) Do ¶
func (c *MockEnvironPrepareForBootstrapCall) Do(f func(environs.BootstrapContext, string) error) *MockEnvironPrepareForBootstrapCall
Do rewrite *gomock.Call.Do
func (*MockEnvironPrepareForBootstrapCall) DoAndReturn ¶
func (c *MockEnvironPrepareForBootstrapCall) DoAndReturn(f func(environs.BootstrapContext, string) error) *MockEnvironPrepareForBootstrapCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironPrepareForBootstrapCall) Return ¶
func (c *MockEnvironPrepareForBootstrapCall) Return(arg0 error) *MockEnvironPrepareForBootstrapCall
Return rewrite *gomock.Call.Return
type MockEnvironProviderCall ¶
MockEnvironProviderCall wrap *gomock.Call
func (*MockEnvironProviderCall) Do ¶
func (c *MockEnvironProviderCall) Do(f func() environs.EnvironProvider) *MockEnvironProviderCall
Do rewrite *gomock.Call.Do
func (*MockEnvironProviderCall) DoAndReturn ¶
func (c *MockEnvironProviderCall) DoAndReturn(f func() environs.EnvironProvider) *MockEnvironProviderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironProviderCall) Return ¶
func (c *MockEnvironProviderCall) Return(arg0 environs.EnvironProvider) *MockEnvironProviderCall
Return rewrite *gomock.Call.Return
type MockEnvironSetConfigCall ¶
MockEnvironSetConfigCall wrap *gomock.Call
func (*MockEnvironSetConfigCall) Do ¶
func (c *MockEnvironSetConfigCall) Do(f func(context.Context, *config.Config) error) *MockEnvironSetConfigCall
Do rewrite *gomock.Call.Do
func (*MockEnvironSetConfigCall) DoAndReturn ¶
func (c *MockEnvironSetConfigCall) DoAndReturn(f func(context.Context, *config.Config) error) *MockEnvironSetConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironSetConfigCall) Return ¶
func (c *MockEnvironSetConfigCall) Return(arg0 error) *MockEnvironSetConfigCall
Return rewrite *gomock.Call.Return
type MockEnvironStartInstanceCall ¶
MockEnvironStartInstanceCall wrap *gomock.Call
func (*MockEnvironStartInstanceCall) Do ¶
func (c *MockEnvironStartInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockEnvironStartInstanceCall
Do rewrite *gomock.Call.Do
func (*MockEnvironStartInstanceCall) DoAndReturn ¶
func (c *MockEnvironStartInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockEnvironStartInstanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironStartInstanceCall) Return ¶
func (c *MockEnvironStartInstanceCall) Return(arg0 *environs.StartInstanceResult, arg1 error) *MockEnvironStartInstanceCall
Return rewrite *gomock.Call.Return
type MockEnvironStopInstancesCall ¶
MockEnvironStopInstancesCall wrap *gomock.Call
func (*MockEnvironStopInstancesCall) Do ¶
func (c *MockEnvironStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockEnvironStopInstancesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironStopInstancesCall) DoAndReturn ¶
func (c *MockEnvironStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockEnvironStopInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironStopInstancesCall) Return ¶
func (c *MockEnvironStopInstancesCall) Return(arg0 error) *MockEnvironStopInstancesCall
Return rewrite *gomock.Call.Return
type MockEnvironStorageProviderCall ¶
MockEnvironStorageProviderCall wrap *gomock.Call
func (*MockEnvironStorageProviderCall) Do ¶
func (c *MockEnvironStorageProviderCall) Do(f func(storage.ProviderType) (storage.Provider, error)) *MockEnvironStorageProviderCall
Do rewrite *gomock.Call.Do
func (*MockEnvironStorageProviderCall) DoAndReturn ¶
func (c *MockEnvironStorageProviderCall) DoAndReturn(f func(storage.ProviderType) (storage.Provider, error)) *MockEnvironStorageProviderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironStorageProviderCall) Return ¶
func (c *MockEnvironStorageProviderCall) Return(arg0 storage.Provider, arg1 error) *MockEnvironStorageProviderCall
Return rewrite *gomock.Call.Return
type MockEnvironStorageProviderTypesCall ¶
MockEnvironStorageProviderTypesCall wrap *gomock.Call
func (*MockEnvironStorageProviderTypesCall) Do ¶
func (c *MockEnvironStorageProviderTypesCall) Do(f func() ([]storage.ProviderType, error)) *MockEnvironStorageProviderTypesCall
Do rewrite *gomock.Call.Do
func (*MockEnvironStorageProviderTypesCall) DoAndReturn ¶
func (c *MockEnvironStorageProviderTypesCall) DoAndReturn(f func() ([]storage.ProviderType, error)) *MockEnvironStorageProviderTypesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEnvironStorageProviderTypesCall) Return ¶
func (c *MockEnvironStorageProviderTypesCall) Return(arg0 []storage.ProviderType, arg1 error) *MockEnvironStorageProviderTypesCall
Return rewrite *gomock.Call.Return
type MockGetter ¶
type MockGetter struct {
// contains filtered or unexported fields
}
MockGetter is a mock of Getter interface.
func NewMockGetter ¶
func NewMockGetter(ctrl *gomock.Controller) *MockGetter
NewMockGetter creates a new mock instance.
func (*MockGetter) EXPECT ¶
func (m *MockGetter) EXPECT() *MockGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGetterGetCall ¶
MockGetterGetCall wrap *gomock.Call
func (*MockGetterGetCall) Do ¶
func (c *MockGetterGetCall) Do(f func(string, any) error) *MockGetterGetCall
Do rewrite *gomock.Call.Do
func (*MockGetterGetCall) DoAndReturn ¶
func (c *MockGetterGetCall) DoAndReturn(f func(string, any) error) *MockGetterGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGetterGetCall) Return ¶
func (c *MockGetterGetCall) Return(arg0 error) *MockGetterGetCall
Return rewrite *gomock.Call.Return
type MockGetterMockRecorder ¶
type MockGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockGetterMockRecorder is the mock recorder for MockGetter.
func (*MockGetterMockRecorder) Get ¶
func (mr *MockGetterMockRecorder) Get(arg0, arg1 any) *MockGetterGetCall
Get indicates an expected call of Get.
type MockInstanceBroker ¶
type MockInstanceBroker struct {
// contains filtered or unexported fields
}
MockInstanceBroker is a mock of InstanceBroker interface.
func NewMockInstanceBroker ¶
func NewMockInstanceBroker(ctrl *gomock.Controller) *MockInstanceBroker
NewMockInstanceBroker creates a new mock instance.
func (*MockInstanceBroker) AllInstances ¶
func (m *MockInstanceBroker) AllInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllInstances mocks base method.
func (*MockInstanceBroker) AllRunningInstances ¶
func (m *MockInstanceBroker) AllRunningInstances(arg0 envcontext.ProviderCallContext) ([]instances.Instance, error)
AllRunningInstances mocks base method.
func (*MockInstanceBroker) EXPECT ¶
func (m *MockInstanceBroker) EXPECT() *MockInstanceBrokerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceBroker) StartInstance ¶
func (m *MockInstanceBroker) StartInstance(arg0 envcontext.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error)
StartInstance mocks base method.
func (*MockInstanceBroker) StopInstances ¶
func (m *MockInstanceBroker) StopInstances(arg0 envcontext.ProviderCallContext, arg1 ...instance.Id) error
StopInstances mocks base method.
type MockInstanceBrokerAllInstancesCall ¶
MockInstanceBrokerAllInstancesCall wrap *gomock.Call
func (*MockInstanceBrokerAllInstancesCall) Do ¶
func (c *MockInstanceBrokerAllInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllInstancesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceBrokerAllInstancesCall) DoAndReturn ¶
func (c *MockInstanceBrokerAllInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceBrokerAllInstancesCall) Return ¶
func (c *MockInstanceBrokerAllInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockInstanceBrokerAllInstancesCall
Return rewrite *gomock.Call.Return
type MockInstanceBrokerAllRunningInstancesCall ¶
MockInstanceBrokerAllRunningInstancesCall wrap *gomock.Call
func (*MockInstanceBrokerAllRunningInstancesCall) Do ¶
func (c *MockInstanceBrokerAllRunningInstancesCall) Do(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllRunningInstancesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceBrokerAllRunningInstancesCall) DoAndReturn ¶
func (c *MockInstanceBrokerAllRunningInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext) ([]instances.Instance, error)) *MockInstanceBrokerAllRunningInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceBrokerAllRunningInstancesCall) Return ¶
func (c *MockInstanceBrokerAllRunningInstancesCall) Return(arg0 []instances.Instance, arg1 error) *MockInstanceBrokerAllRunningInstancesCall
Return rewrite *gomock.Call.Return
type MockInstanceBrokerMockRecorder ¶
type MockInstanceBrokerMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceBrokerMockRecorder is the mock recorder for MockInstanceBroker.
func (*MockInstanceBrokerMockRecorder) AllInstances ¶
func (mr *MockInstanceBrokerMockRecorder) AllInstances(arg0 any) *MockInstanceBrokerAllInstancesCall
AllInstances indicates an expected call of AllInstances.
func (*MockInstanceBrokerMockRecorder) AllRunningInstances ¶
func (mr *MockInstanceBrokerMockRecorder) AllRunningInstances(arg0 any) *MockInstanceBrokerAllRunningInstancesCall
AllRunningInstances indicates an expected call of AllRunningInstances.
func (*MockInstanceBrokerMockRecorder) StartInstance ¶
func (mr *MockInstanceBrokerMockRecorder) StartInstance(arg0, arg1 any) *MockInstanceBrokerStartInstanceCall
StartInstance indicates an expected call of StartInstance.
func (*MockInstanceBrokerMockRecorder) StopInstances ¶
func (mr *MockInstanceBrokerMockRecorder) StopInstances(arg0 any, arg1 ...any) *MockInstanceBrokerStopInstancesCall
StopInstances indicates an expected call of StopInstances.
type MockInstanceBrokerStartInstanceCall ¶
MockInstanceBrokerStartInstanceCall wrap *gomock.Call
func (*MockInstanceBrokerStartInstanceCall) Do ¶
func (c *MockInstanceBrokerStartInstanceCall) Do(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockInstanceBrokerStartInstanceCall
Do rewrite *gomock.Call.Do
func (*MockInstanceBrokerStartInstanceCall) DoAndReturn ¶
func (c *MockInstanceBrokerStartInstanceCall) DoAndReturn(f func(envcontext.ProviderCallContext, environs.StartInstanceParams) (*environs.StartInstanceResult, error)) *MockInstanceBrokerStartInstanceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceBrokerStartInstanceCall) Return ¶
func (c *MockInstanceBrokerStartInstanceCall) Return(arg0 *environs.StartInstanceResult, arg1 error) *MockInstanceBrokerStartInstanceCall
Return rewrite *gomock.Call.Return
type MockInstanceBrokerStopInstancesCall ¶
MockInstanceBrokerStopInstancesCall wrap *gomock.Call
func (*MockInstanceBrokerStopInstancesCall) Do ¶
func (c *MockInstanceBrokerStopInstancesCall) Do(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockInstanceBrokerStopInstancesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceBrokerStopInstancesCall) DoAndReturn ¶
func (c *MockInstanceBrokerStopInstancesCall) DoAndReturn(f func(envcontext.ProviderCallContext, ...instance.Id) error) *MockInstanceBrokerStopInstancesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceBrokerStopInstancesCall) Return ¶
func (c *MockInstanceBrokerStopInstancesCall) Return(arg0 error) *MockInstanceBrokerStopInstancesCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterAPI ¶
type MockInstanceMutaterAPI struct {
// contains filtered or unexported fields
}
MockInstanceMutaterAPI is a mock of InstanceMutaterAPI interface.
func NewMockInstanceMutaterAPI ¶
func NewMockInstanceMutaterAPI(ctrl *gomock.Controller) *MockInstanceMutaterAPI
NewMockInstanceMutaterAPI creates a new mock instance.
func (*MockInstanceMutaterAPI) EXPECT ¶
func (m *MockInstanceMutaterAPI) EXPECT() *MockInstanceMutaterAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceMutaterAPI) Machine ¶
func (m *MockInstanceMutaterAPI) Machine(arg0 context.Context, arg1 names.MachineTag) (instancemutater.MutaterMachine, error)
Machine mocks base method.
func (*MockInstanceMutaterAPI) WatchModelMachines ¶
func (m *MockInstanceMutaterAPI) WatchModelMachines(arg0 context.Context) (watcher.Watcher[[]string], error)
WatchModelMachines mocks base method.
type MockInstanceMutaterAPIMachineCall ¶
MockInstanceMutaterAPIMachineCall wrap *gomock.Call
func (*MockInstanceMutaterAPIMachineCall) Do ¶
func (c *MockInstanceMutaterAPIMachineCall) Do(f func(context.Context, names.MachineTag) (instancemutater.MutaterMachine, error)) *MockInstanceMutaterAPIMachineCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterAPIMachineCall) DoAndReturn ¶
func (c *MockInstanceMutaterAPIMachineCall) DoAndReturn(f func(context.Context, names.MachineTag) (instancemutater.MutaterMachine, error)) *MockInstanceMutaterAPIMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterAPIMachineCall) Return ¶
func (c *MockInstanceMutaterAPIMachineCall) Return(arg0 instancemutater.MutaterMachine, arg1 error) *MockInstanceMutaterAPIMachineCall
Return rewrite *gomock.Call.Return
type MockInstanceMutaterAPIMockRecorder ¶
type MockInstanceMutaterAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMutaterAPIMockRecorder is the mock recorder for MockInstanceMutaterAPI.
func (*MockInstanceMutaterAPIMockRecorder) Machine ¶
func (mr *MockInstanceMutaterAPIMockRecorder) Machine(arg0, arg1 any) *MockInstanceMutaterAPIMachineCall
Machine indicates an expected call of Machine.
func (*MockInstanceMutaterAPIMockRecorder) WatchModelMachines ¶
func (mr *MockInstanceMutaterAPIMockRecorder) WatchModelMachines(arg0 any) *MockInstanceMutaterAPIWatchModelMachinesCall
WatchModelMachines indicates an expected call of WatchModelMachines.
type MockInstanceMutaterAPIWatchModelMachinesCall ¶
MockInstanceMutaterAPIWatchModelMachinesCall wrap *gomock.Call
func (*MockInstanceMutaterAPIWatchModelMachinesCall) Do ¶
func (c *MockInstanceMutaterAPIWatchModelMachinesCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockInstanceMutaterAPIWatchModelMachinesCall
Do rewrite *gomock.Call.Do
func (*MockInstanceMutaterAPIWatchModelMachinesCall) DoAndReturn ¶
func (c *MockInstanceMutaterAPIWatchModelMachinesCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockInstanceMutaterAPIWatchModelMachinesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInstanceMutaterAPIWatchModelMachinesCall) Return ¶
func (c *MockInstanceMutaterAPIWatchModelMachinesCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockInstanceMutaterAPIWatchModelMachinesCall
Return rewrite *gomock.Call.Return
type MockLXDProfiler ¶
type MockLXDProfiler struct {
// contains filtered or unexported fields
}
MockLXDProfiler is a mock of LXDProfiler interface.
func NewMockLXDProfiler ¶
func NewMockLXDProfiler(ctrl *gomock.Controller) *MockLXDProfiler
NewMockLXDProfiler creates a new mock instance.
func (*MockLXDProfiler) AssignLXDProfiles ¶
func (m *MockLXDProfiler) AssignLXDProfiles(arg0 string, arg1 []string, arg2 []lxdprofile.ProfilePost) ([]string, error)
AssignLXDProfiles mocks base method.
func (*MockLXDProfiler) EXPECT ¶
func (m *MockLXDProfiler) EXPECT() *MockLXDProfilerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLXDProfiler) LXDProfileNames ¶
func (m *MockLXDProfiler) LXDProfileNames(arg0 string) ([]string, error)
LXDProfileNames mocks base method.
func (*MockLXDProfiler) MaybeWriteLXDProfile ¶
func (m *MockLXDProfiler) MaybeWriteLXDProfile(arg0 string, arg1 lxdprofile.Profile) error
MaybeWriteLXDProfile mocks base method.
type MockLXDProfilerAssignLXDProfilesCall ¶
MockLXDProfilerAssignLXDProfilesCall wrap *gomock.Call
func (*MockLXDProfilerAssignLXDProfilesCall) Do ¶
func (c *MockLXDProfilerAssignLXDProfilesCall) Do(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockLXDProfilerAssignLXDProfilesCall
Do rewrite *gomock.Call.Do
func (*MockLXDProfilerAssignLXDProfilesCall) DoAndReturn ¶
func (c *MockLXDProfilerAssignLXDProfilesCall) DoAndReturn(f func(string, []string, []lxdprofile.ProfilePost) ([]string, error)) *MockLXDProfilerAssignLXDProfilesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLXDProfilerAssignLXDProfilesCall) Return ¶
func (c *MockLXDProfilerAssignLXDProfilesCall) Return(arg0 []string, arg1 error) *MockLXDProfilerAssignLXDProfilesCall
Return rewrite *gomock.Call.Return
type MockLXDProfilerLXDProfileNamesCall ¶
MockLXDProfilerLXDProfileNamesCall wrap *gomock.Call
func (*MockLXDProfilerLXDProfileNamesCall) Do ¶
func (c *MockLXDProfilerLXDProfileNamesCall) Do(f func(string) ([]string, error)) *MockLXDProfilerLXDProfileNamesCall
Do rewrite *gomock.Call.Do
func (*MockLXDProfilerLXDProfileNamesCall) DoAndReturn ¶
func (c *MockLXDProfilerLXDProfileNamesCall) DoAndReturn(f func(string) ([]string, error)) *MockLXDProfilerLXDProfileNamesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLXDProfilerLXDProfileNamesCall) Return ¶
func (c *MockLXDProfilerLXDProfileNamesCall) Return(arg0 []string, arg1 error) *MockLXDProfilerLXDProfileNamesCall
Return rewrite *gomock.Call.Return
type MockLXDProfilerMaybeWriteLXDProfileCall ¶
MockLXDProfilerMaybeWriteLXDProfileCall wrap *gomock.Call
func (*MockLXDProfilerMaybeWriteLXDProfileCall) Do ¶
func (c *MockLXDProfilerMaybeWriteLXDProfileCall) Do(f func(string, lxdprofile.Profile) error) *MockLXDProfilerMaybeWriteLXDProfileCall
Do rewrite *gomock.Call.Do
func (*MockLXDProfilerMaybeWriteLXDProfileCall) DoAndReturn ¶
func (c *MockLXDProfilerMaybeWriteLXDProfileCall) DoAndReturn(f func(string, lxdprofile.Profile) error) *MockLXDProfilerMaybeWriteLXDProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockLXDProfilerMaybeWriteLXDProfileCall) Return ¶
func (c *MockLXDProfilerMaybeWriteLXDProfileCall) Return(arg0 error) *MockLXDProfilerMaybeWriteLXDProfileCall
Return rewrite *gomock.Call.Return
type MockLXDProfilerMockRecorder ¶
type MockLXDProfilerMockRecorder struct {
// contains filtered or unexported fields
}
MockLXDProfilerMockRecorder is the mock recorder for MockLXDProfiler.
func (*MockLXDProfilerMockRecorder) AssignLXDProfiles ¶
func (mr *MockLXDProfilerMockRecorder) AssignLXDProfiles(arg0, arg1, arg2 any) *MockLXDProfilerAssignLXDProfilesCall
AssignLXDProfiles indicates an expected call of AssignLXDProfiles.
func (*MockLXDProfilerMockRecorder) LXDProfileNames ¶
func (mr *MockLXDProfilerMockRecorder) LXDProfileNames(arg0 any) *MockLXDProfilerLXDProfileNamesCall
LXDProfileNames indicates an expected call of LXDProfileNames.
func (*MockLXDProfilerMockRecorder) MaybeWriteLXDProfile ¶
func (mr *MockLXDProfilerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 any) *MockLXDProfilerMaybeWriteLXDProfileCall
MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile.
type MockMutaterContext ¶
type MockMutaterContext struct {
// contains filtered or unexported fields
}
MockMutaterContext is a mock of MutaterContext interface.
func NewMockMutaterContext ¶
func NewMockMutaterContext(ctrl *gomock.Controller) *MockMutaterContext
NewMockMutaterContext creates a new mock instance.
func (*MockMutaterContext) EXPECT ¶
func (m *MockMutaterContext) EXPECT() *MockMutaterContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMutaterContext) KillWithError ¶
func (m *MockMutaterContext) KillWithError(arg0 error)
KillWithError mocks base method.
type MockMutaterContextKillWithErrorCall ¶
MockMutaterContextKillWithErrorCall wrap *gomock.Call
func (*MockMutaterContextKillWithErrorCall) Do ¶
func (c *MockMutaterContextKillWithErrorCall) Do(f func(error)) *MockMutaterContextKillWithErrorCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextKillWithErrorCall) DoAndReturn ¶
func (c *MockMutaterContextKillWithErrorCall) DoAndReturn(f func(error)) *MockMutaterContextKillWithErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextKillWithErrorCall) Return ¶
func (c *MockMutaterContextKillWithErrorCall) Return() *MockMutaterContextKillWithErrorCall
Return rewrite *gomock.Call.Return
type MockMutaterContextMockRecorder ¶
type MockMutaterContextMockRecorder struct {
// contains filtered or unexported fields
}
MockMutaterContextMockRecorder is the mock recorder for MockMutaterContext.
func (*MockMutaterContextMockRecorder) KillWithError ¶
func (mr *MockMutaterContextMockRecorder) KillWithError(arg0 any) *MockMutaterContextKillWithErrorCall
KillWithError indicates an expected call of KillWithError.
type MockMutaterContextaddCall ¶
MockMutaterContextaddCall wrap *gomock.Call
func (*MockMutaterContextaddCall) Do ¶
func (c *MockMutaterContextaddCall) Do(f func(worker.Worker) error) *MockMutaterContextaddCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextaddCall) DoAndReturn ¶
func (c *MockMutaterContextaddCall) DoAndReturn(f func(worker.Worker) error) *MockMutaterContextaddCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextaddCall) Return ¶
func (c *MockMutaterContextaddCall) Return(arg0 error) *MockMutaterContextaddCall
Return rewrite *gomock.Call.Return
type MockMutaterContextdyingCall ¶
MockMutaterContextdyingCall wrap *gomock.Call
func (*MockMutaterContextdyingCall) Do ¶
func (c *MockMutaterContextdyingCall) Do(f func() <-chan struct{}) *MockMutaterContextdyingCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextdyingCall) DoAndReturn ¶
func (c *MockMutaterContextdyingCall) DoAndReturn(f func() <-chan struct{}) *MockMutaterContextdyingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextdyingCall) Return ¶
func (c *MockMutaterContextdyingCall) Return(arg0 <-chan struct{}) *MockMutaterContextdyingCall
Return rewrite *gomock.Call.Return
type MockMutaterContexterrDyingCall ¶
MockMutaterContexterrDyingCall wrap *gomock.Call
func (*MockMutaterContexterrDyingCall) Do ¶
func (c *MockMutaterContexterrDyingCall) Do(f func() error) *MockMutaterContexterrDyingCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContexterrDyingCall) DoAndReturn ¶
func (c *MockMutaterContexterrDyingCall) DoAndReturn(f func() error) *MockMutaterContexterrDyingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContexterrDyingCall) Return ¶
func (c *MockMutaterContexterrDyingCall) Return(arg0 error) *MockMutaterContexterrDyingCall
Return rewrite *gomock.Call.Return
type MockMutaterContextgetBrokerCall ¶
MockMutaterContextgetBrokerCall wrap *gomock.Call
func (*MockMutaterContextgetBrokerCall) Do ¶
func (c *MockMutaterContextgetBrokerCall) Do(f func() environs.LXDProfiler) *MockMutaterContextgetBrokerCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextgetBrokerCall) DoAndReturn ¶
func (c *MockMutaterContextgetBrokerCall) DoAndReturn(f func() environs.LXDProfiler) *MockMutaterContextgetBrokerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextgetBrokerCall) Return ¶
func (c *MockMutaterContextgetBrokerCall) Return(arg0 environs.LXDProfiler) *MockMutaterContextgetBrokerCall
Return rewrite *gomock.Call.Return
type MockMutaterContextgetMachineCall ¶
MockMutaterContextgetMachineCall wrap *gomock.Call
func (*MockMutaterContextgetMachineCall) Do ¶
func (c *MockMutaterContextgetMachineCall) Do(f func(context.Context, names.MachineTag) (instancemutater.MutaterMachine, error)) *MockMutaterContextgetMachineCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextgetMachineCall) DoAndReturn ¶
func (c *MockMutaterContextgetMachineCall) DoAndReturn(f func(context.Context, names.MachineTag) (instancemutater.MutaterMachine, error)) *MockMutaterContextgetMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextgetMachineCall) Return ¶
func (c *MockMutaterContextgetMachineCall) Return(arg0 instancemutater.MutaterMachine, arg1 error) *MockMutaterContextgetMachineCall
Return rewrite *gomock.Call.Return
type MockMutaterContextgetRequiredLXDProfilesCall ¶
MockMutaterContextgetRequiredLXDProfilesCall wrap *gomock.Call
func (*MockMutaterContextgetRequiredLXDProfilesCall) Do ¶
func (c *MockMutaterContextgetRequiredLXDProfilesCall) Do(f func(string) []string) *MockMutaterContextgetRequiredLXDProfilesCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextgetRequiredLXDProfilesCall) DoAndReturn ¶
func (c *MockMutaterContextgetRequiredLXDProfilesCall) DoAndReturn(f func(string) []string) *MockMutaterContextgetRequiredLXDProfilesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextgetRequiredLXDProfilesCall) Return ¶
func (c *MockMutaterContextgetRequiredLXDProfilesCall) Return(arg0 []string) *MockMutaterContextgetRequiredLXDProfilesCall
Return rewrite *gomock.Call.Return
type MockMutaterContextnewMachineContextCall ¶
MockMutaterContextnewMachineContextCall wrap *gomock.Call
func (*MockMutaterContextnewMachineContextCall) Do ¶
func (c *MockMutaterContextnewMachineContextCall) Do(f func() instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
Do rewrite *gomock.Call.Do
func (*MockMutaterContextnewMachineContextCall) DoAndReturn ¶
func (c *MockMutaterContextnewMachineContextCall) DoAndReturn(f func() instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterContextnewMachineContextCall) Return ¶
func (c *MockMutaterContextnewMachineContextCall) Return(arg0 instancemutater0.MachineContext) *MockMutaterContextnewMachineContextCall
Return rewrite *gomock.Call.Return
type MockMutaterMachine ¶
type MockMutaterMachine struct {
// contains filtered or unexported fields
}
MockMutaterMachine is a mock of MutaterMachine interface.
func NewMockMutaterMachine ¶
func NewMockMutaterMachine(ctrl *gomock.Controller) *MockMutaterMachine
NewMockMutaterMachine creates a new mock instance.
func (*MockMutaterMachine) CharmProfilingInfo ¶
func (m *MockMutaterMachine) CharmProfilingInfo(arg0 context.Context) (*instancemutater.UnitProfileInfo, error)
CharmProfilingInfo mocks base method.
func (*MockMutaterMachine) ContainerType ¶
func (m *MockMutaterMachine) ContainerType(arg0 context.Context) (instance.ContainerType, error)
ContainerType mocks base method.
func (*MockMutaterMachine) EXPECT ¶
func (m *MockMutaterMachine) EXPECT() *MockMutaterMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMutaterMachine) InstanceId ¶
func (m *MockMutaterMachine) InstanceId(arg0 context.Context) (string, error)
InstanceId mocks base method.
func (*MockMutaterMachine) Life ¶
func (m *MockMutaterMachine) Life() life.Value
Life mocks base method.
func (*MockMutaterMachine) Refresh ¶
func (m *MockMutaterMachine) Refresh(arg0 context.Context) error
Refresh mocks base method.
func (*MockMutaterMachine) SetCharmProfiles ¶
func (m *MockMutaterMachine) SetCharmProfiles(arg0 context.Context, arg1 []string) error
SetCharmProfiles mocks base method.
func (*MockMutaterMachine) SetModificationStatus ¶
func (m *MockMutaterMachine) SetModificationStatus(arg0 context.Context, arg1 status.Status, arg2 string, arg3 map[string]any) error
SetModificationStatus mocks base method.
func (*MockMutaterMachine) Tag ¶
func (m *MockMutaterMachine) Tag() names.MachineTag
Tag mocks base method.
func (*MockMutaterMachine) WatchContainers ¶
func (m *MockMutaterMachine) WatchContainers(arg0 context.Context) (watcher.Watcher[[]string], error)
WatchContainers mocks base method.
func (*MockMutaterMachine) WatchLXDProfileVerificationNeeded ¶
func (m *MockMutaterMachine) WatchLXDProfileVerificationNeeded(arg0 context.Context) (watcher.Watcher[struct{}], error)
WatchLXDProfileVerificationNeeded mocks base method.
func (*MockMutaterMachine) WatchUnits ¶
WatchUnits mocks base method.
type MockMutaterMachineCharmProfilingInfoCall ¶
MockMutaterMachineCharmProfilingInfoCall wrap *gomock.Call
func (*MockMutaterMachineCharmProfilingInfoCall) Do ¶
func (c *MockMutaterMachineCharmProfilingInfoCall) Do(f func(context.Context) (*instancemutater.UnitProfileInfo, error)) *MockMutaterMachineCharmProfilingInfoCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineCharmProfilingInfoCall) DoAndReturn ¶
func (c *MockMutaterMachineCharmProfilingInfoCall) DoAndReturn(f func(context.Context) (*instancemutater.UnitProfileInfo, error)) *MockMutaterMachineCharmProfilingInfoCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineCharmProfilingInfoCall) Return ¶
func (c *MockMutaterMachineCharmProfilingInfoCall) Return(arg0 *instancemutater.UnitProfileInfo, arg1 error) *MockMutaterMachineCharmProfilingInfoCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineContainerTypeCall ¶
MockMutaterMachineContainerTypeCall wrap *gomock.Call
func (*MockMutaterMachineContainerTypeCall) Do ¶
func (c *MockMutaterMachineContainerTypeCall) Do(f func(context.Context) (instance.ContainerType, error)) *MockMutaterMachineContainerTypeCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineContainerTypeCall) DoAndReturn ¶
func (c *MockMutaterMachineContainerTypeCall) DoAndReturn(f func(context.Context) (instance.ContainerType, error)) *MockMutaterMachineContainerTypeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineContainerTypeCall) Return ¶
func (c *MockMutaterMachineContainerTypeCall) Return(arg0 instance.ContainerType, arg1 error) *MockMutaterMachineContainerTypeCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineInstanceIdCall ¶
MockMutaterMachineInstanceIdCall wrap *gomock.Call
func (*MockMutaterMachineInstanceIdCall) Do ¶
func (c *MockMutaterMachineInstanceIdCall) Do(f func(context.Context) (string, error)) *MockMutaterMachineInstanceIdCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineInstanceIdCall) DoAndReturn ¶
func (c *MockMutaterMachineInstanceIdCall) DoAndReturn(f func(context.Context) (string, error)) *MockMutaterMachineInstanceIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineInstanceIdCall) Return ¶
func (c *MockMutaterMachineInstanceIdCall) Return(arg0 string, arg1 error) *MockMutaterMachineInstanceIdCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineLifeCall ¶
MockMutaterMachineLifeCall wrap *gomock.Call
func (*MockMutaterMachineLifeCall) Do ¶
func (c *MockMutaterMachineLifeCall) Do(f func() life.Value) *MockMutaterMachineLifeCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineLifeCall) DoAndReturn ¶
func (c *MockMutaterMachineLifeCall) DoAndReturn(f func() life.Value) *MockMutaterMachineLifeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineLifeCall) Return ¶
func (c *MockMutaterMachineLifeCall) Return(arg0 life.Value) *MockMutaterMachineLifeCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineMockRecorder ¶
type MockMutaterMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMutaterMachineMockRecorder is the mock recorder for MockMutaterMachine.
func (*MockMutaterMachineMockRecorder) CharmProfilingInfo ¶
func (mr *MockMutaterMachineMockRecorder) CharmProfilingInfo(arg0 any) *MockMutaterMachineCharmProfilingInfoCall
CharmProfilingInfo indicates an expected call of CharmProfilingInfo.
func (*MockMutaterMachineMockRecorder) ContainerType ¶
func (mr *MockMutaterMachineMockRecorder) ContainerType(arg0 any) *MockMutaterMachineContainerTypeCall
ContainerType indicates an expected call of ContainerType.
func (*MockMutaterMachineMockRecorder) InstanceId ¶
func (mr *MockMutaterMachineMockRecorder) InstanceId(arg0 any) *MockMutaterMachineInstanceIdCall
InstanceId indicates an expected call of InstanceId.
func (*MockMutaterMachineMockRecorder) Life ¶
func (mr *MockMutaterMachineMockRecorder) Life() *MockMutaterMachineLifeCall
Life indicates an expected call of Life.
func (*MockMutaterMachineMockRecorder) Refresh ¶
func (mr *MockMutaterMachineMockRecorder) Refresh(arg0 any) *MockMutaterMachineRefreshCall
Refresh indicates an expected call of Refresh.
func (*MockMutaterMachineMockRecorder) SetCharmProfiles ¶
func (mr *MockMutaterMachineMockRecorder) SetCharmProfiles(arg0, arg1 any) *MockMutaterMachineSetCharmProfilesCall
SetCharmProfiles indicates an expected call of SetCharmProfiles.
func (*MockMutaterMachineMockRecorder) SetModificationStatus ¶
func (mr *MockMutaterMachineMockRecorder) SetModificationStatus(arg0, arg1, arg2, arg3 any) *MockMutaterMachineSetModificationStatusCall
SetModificationStatus indicates an expected call of SetModificationStatus.
func (*MockMutaterMachineMockRecorder) Tag ¶
func (mr *MockMutaterMachineMockRecorder) Tag() *MockMutaterMachineTagCall
Tag indicates an expected call of Tag.
func (*MockMutaterMachineMockRecorder) WatchContainers ¶
func (mr *MockMutaterMachineMockRecorder) WatchContainers(arg0 any) *MockMutaterMachineWatchContainersCall
WatchContainers indicates an expected call of WatchContainers.
func (*MockMutaterMachineMockRecorder) WatchLXDProfileVerificationNeeded ¶
func (mr *MockMutaterMachineMockRecorder) WatchLXDProfileVerificationNeeded(arg0 any) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
WatchLXDProfileVerificationNeeded indicates an expected call of WatchLXDProfileVerificationNeeded.
func (*MockMutaterMachineMockRecorder) WatchUnits ¶
func (mr *MockMutaterMachineMockRecorder) WatchUnits(arg0 any) *MockMutaterMachineWatchUnitsCall
WatchUnits indicates an expected call of WatchUnits.
type MockMutaterMachineRefreshCall ¶
MockMutaterMachineRefreshCall wrap *gomock.Call
func (*MockMutaterMachineRefreshCall) Do ¶
func (c *MockMutaterMachineRefreshCall) Do(f func(context.Context) error) *MockMutaterMachineRefreshCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineRefreshCall) DoAndReturn ¶
func (c *MockMutaterMachineRefreshCall) DoAndReturn(f func(context.Context) error) *MockMutaterMachineRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineRefreshCall) Return ¶
func (c *MockMutaterMachineRefreshCall) Return(arg0 error) *MockMutaterMachineRefreshCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineSetCharmProfilesCall ¶
MockMutaterMachineSetCharmProfilesCall wrap *gomock.Call
func (*MockMutaterMachineSetCharmProfilesCall) Do ¶
func (c *MockMutaterMachineSetCharmProfilesCall) Do(f func(context.Context, []string) error) *MockMutaterMachineSetCharmProfilesCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineSetCharmProfilesCall) DoAndReturn ¶
func (c *MockMutaterMachineSetCharmProfilesCall) DoAndReturn(f func(context.Context, []string) error) *MockMutaterMachineSetCharmProfilesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineSetCharmProfilesCall) Return ¶
func (c *MockMutaterMachineSetCharmProfilesCall) Return(arg0 error) *MockMutaterMachineSetCharmProfilesCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineSetModificationStatusCall ¶
MockMutaterMachineSetModificationStatusCall wrap *gomock.Call
func (*MockMutaterMachineSetModificationStatusCall) Do ¶
func (c *MockMutaterMachineSetModificationStatusCall) Do(f func(context.Context, status.Status, string, map[string]any) error) *MockMutaterMachineSetModificationStatusCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineSetModificationStatusCall) DoAndReturn ¶
func (c *MockMutaterMachineSetModificationStatusCall) DoAndReturn(f func(context.Context, status.Status, string, map[string]any) error) *MockMutaterMachineSetModificationStatusCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineSetModificationStatusCall) Return ¶
func (c *MockMutaterMachineSetModificationStatusCall) Return(arg0 error) *MockMutaterMachineSetModificationStatusCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineTagCall ¶
MockMutaterMachineTagCall wrap *gomock.Call
func (*MockMutaterMachineTagCall) Do ¶
func (c *MockMutaterMachineTagCall) Do(f func() names.MachineTag) *MockMutaterMachineTagCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineTagCall) DoAndReturn ¶
func (c *MockMutaterMachineTagCall) DoAndReturn(f func() names.MachineTag) *MockMutaterMachineTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineTagCall) Return ¶
func (c *MockMutaterMachineTagCall) Return(arg0 names.MachineTag) *MockMutaterMachineTagCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineWatchContainersCall ¶
MockMutaterMachineWatchContainersCall wrap *gomock.Call
func (*MockMutaterMachineWatchContainersCall) Do ¶
func (c *MockMutaterMachineWatchContainersCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchContainersCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineWatchContainersCall) DoAndReturn ¶
func (c *MockMutaterMachineWatchContainersCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchContainersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineWatchContainersCall) Return ¶
func (c *MockMutaterMachineWatchContainersCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMutaterMachineWatchContainersCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineWatchLXDProfileVerificationNeededCall ¶
MockMutaterMachineWatchLXDProfileVerificationNeededCall wrap *gomock.Call
func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) Do ¶
func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) Do(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) DoAndReturn ¶
func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) DoAndReturn(f func(context.Context) (watcher.Watcher[struct{}], error)) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineWatchLXDProfileVerificationNeededCall) Return ¶
func (c *MockMutaterMachineWatchLXDProfileVerificationNeededCall) Return(arg0 watcher.Watcher[struct{}], arg1 error) *MockMutaterMachineWatchLXDProfileVerificationNeededCall
Return rewrite *gomock.Call.Return
type MockMutaterMachineWatchUnitsCall ¶
MockMutaterMachineWatchUnitsCall wrap *gomock.Call
func (*MockMutaterMachineWatchUnitsCall) Do ¶
func (c *MockMutaterMachineWatchUnitsCall) Do(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchUnitsCall
Do rewrite *gomock.Call.Do
func (*MockMutaterMachineWatchUnitsCall) DoAndReturn ¶
func (c *MockMutaterMachineWatchUnitsCall) DoAndReturn(f func(context.Context) (watcher.Watcher[[]string], error)) *MockMutaterMachineWatchUnitsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMutaterMachineWatchUnitsCall) Return ¶
func (c *MockMutaterMachineWatchUnitsCall) Return(arg0 watcher.Watcher[[]string], arg1 error) *MockMutaterMachineWatchUnitsCall
Return rewrite *gomock.Call.Return
type MockWorker ¶
type MockWorker struct {
// contains filtered or unexported fields
}
MockWorker is a mock of Worker interface.
func NewMockWorker ¶
func NewMockWorker(ctrl *gomock.Controller) *MockWorker
NewMockWorker creates a new mock instance.
func (*MockWorker) EXPECT ¶
func (m *MockWorker) EXPECT() *MockWorkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWorkerKillCall ¶
MockWorkerKillCall wrap *gomock.Call
func (*MockWorkerKillCall) Do ¶
func (c *MockWorkerKillCall) Do(f func()) *MockWorkerKillCall
Do rewrite *gomock.Call.Do
func (*MockWorkerKillCall) DoAndReturn ¶
func (c *MockWorkerKillCall) DoAndReturn(f func()) *MockWorkerKillCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWorkerKillCall) Return ¶
func (c *MockWorkerKillCall) Return() *MockWorkerKillCall
Return rewrite *gomock.Call.Return
type MockWorkerMockRecorder ¶
type MockWorkerMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerMockRecorder is the mock recorder for MockWorker.
func (*MockWorkerMockRecorder) Kill ¶
func (mr *MockWorkerMockRecorder) Kill() *MockWorkerKillCall
Kill indicates an expected call of Kill.
func (*MockWorkerMockRecorder) Wait ¶
func (mr *MockWorkerMockRecorder) Wait() *MockWorkerWaitCall
Wait indicates an expected call of Wait.
type MockWorkerWaitCall ¶
MockWorkerWaitCall wrap *gomock.Call
func (*MockWorkerWaitCall) Do ¶
func (c *MockWorkerWaitCall) Do(f func() error) *MockWorkerWaitCall
Do rewrite *gomock.Call.Do
func (*MockWorkerWaitCall) DoAndReturn ¶
func (c *MockWorkerWaitCall) DoAndReturn(f func() error) *MockWorkerWaitCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockWorkerWaitCall) Return ¶
func (c *MockWorkerWaitCall) Return(arg0 error) *MockWorkerWaitCall
Return rewrite *gomock.Call.Return