Documentation ¶
Index ¶
- type Configuration
- func (_m *Configuration) EmptyWritablePtr() interface{}
- func (_m *Configuration) GetBootstrap() config.BootstrapConfiguration
- func (_m *Configuration) GetInsecureSecrets() config.InsecureSecrets
- func (_m *Configuration) GetLogLevel() string
- func (_m *Configuration) GetRegistryInfo() config.RegistryInfo
- func (_m *Configuration) GetTelemetryInfo() *config.TelemetryInfo
- func (_m *Configuration) UpdateFromRaw(rawConfig interface{}) bool
- func (_m *Configuration) UpdateWritableFromRaw(rawWritableConfig interface{}) bool
- type MetricsManager
- func (_m *MetricsManager) GetCounter(name string) metrics.Counter
- func (_m *MetricsManager) GetGauge(name string) metrics.Gauge
- func (_m *MetricsManager) GetGaugeFloat64(name string) metrics.GaugeFloat64
- func (_m *MetricsManager) GetTimer(name string) metrics.Timer
- func (_m *MetricsManager) IsRegistered(name string) bool
- func (_m *MetricsManager) Register(name string, item interface{}, tags map[string]string) error
- func (_m *MetricsManager) ResetInterval(interval time.Duration)
- func (_m *MetricsManager) Run(ctx context.Context, wg *sync.WaitGroup)
- func (_m *MetricsManager) Unregister(name string)
- type MetricsReporter
- type SecretProvider
- func (_m *SecretProvider) DeregisterSecretUpdatedCallback(path string)
- func (_m *SecretProvider) GetAccessToken(tokenType string, serviceKey string) (string, error)
- func (_m *SecretProvider) GetMetricsToRegister() map[string]interface{}
- func (_m *SecretProvider) GetSecret(path string, keys ...string) (map[string]string, error)
- func (_m *SecretProvider) GetSelfJWT() (string, error)
- func (_m *SecretProvider) HasSecret(path string) (bool, error)
- func (_m *SecretProvider) IsJWTValid(jwt string) (bool, error)
- func (_m *SecretProvider) ListSecretNames() ([]string, error)
- func (_m *SecretProvider) RegisteredSecretUpdatedCallback(path string, callback func(string)) error
- func (_m *SecretProvider) SecretUpdatedAtSecretName(secretName string)
- func (_m *SecretProvider) SecretsLastUpdated() time.Time
- func (_m *SecretProvider) SecretsUpdated()
- func (_m *SecretProvider) StoreSecret(path string, secrets map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
Configuration is an autogenerated mock type for the Configuration type
func NewConfiguration ¶
func NewConfiguration(t mockConstructorTestingTNewConfiguration) *Configuration
NewConfiguration creates a new instance of Configuration. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Configuration) EmptyWritablePtr ¶
func (_m *Configuration) EmptyWritablePtr() interface{}
EmptyWritablePtr provides a mock function with given fields:
func (*Configuration) GetBootstrap ¶
func (_m *Configuration) GetBootstrap() config.BootstrapConfiguration
GetBootstrap provides a mock function with given fields:
func (*Configuration) GetInsecureSecrets ¶
func (_m *Configuration) GetInsecureSecrets() config.InsecureSecrets
GetInsecureSecrets provides a mock function with given fields:
func (*Configuration) GetLogLevel ¶
func (_m *Configuration) GetLogLevel() string
GetLogLevel provides a mock function with given fields:
func (*Configuration) GetRegistryInfo ¶
func (_m *Configuration) GetRegistryInfo() config.RegistryInfo
GetRegistryInfo provides a mock function with given fields:
func (*Configuration) GetTelemetryInfo ¶
func (_m *Configuration) GetTelemetryInfo() *config.TelemetryInfo
GetTelemetryInfo provides a mock function with given fields:
func (*Configuration) UpdateFromRaw ¶
func (_m *Configuration) UpdateFromRaw(rawConfig interface{}) bool
UpdateFromRaw provides a mock function with given fields: rawConfig
func (*Configuration) UpdateWritableFromRaw ¶
func (_m *Configuration) UpdateWritableFromRaw(rawWritableConfig interface{}) bool
UpdateWritableFromRaw provides a mock function with given fields: rawWritableConfig
type MetricsManager ¶
MetricsManager is an autogenerated mock type for the MetricsManager type
func NewMetricsManager ¶
func NewMetricsManager(t mockConstructorTestingTNewMetricsManager) *MetricsManager
NewMetricsManager creates a new instance of MetricsManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MetricsManager) GetCounter ¶
func (_m *MetricsManager) GetCounter(name string) metrics.Counter
GetCounter provides a mock function with given fields: name
func (*MetricsManager) GetGauge ¶
func (_m *MetricsManager) GetGauge(name string) metrics.Gauge
GetGauge provides a mock function with given fields: name
func (*MetricsManager) GetGaugeFloat64 ¶
func (_m *MetricsManager) GetGaugeFloat64(name string) metrics.GaugeFloat64
GetGaugeFloat64 provides a mock function with given fields: name
func (*MetricsManager) GetTimer ¶
func (_m *MetricsManager) GetTimer(name string) metrics.Timer
GetTimer provides a mock function with given fields: name
func (*MetricsManager) IsRegistered ¶
func (_m *MetricsManager) IsRegistered(name string) bool
IsRegistered provides a mock function with given fields: name
func (*MetricsManager) Register ¶
func (_m *MetricsManager) Register(name string, item interface{}, tags map[string]string) error
Register provides a mock function with given fields: name, item, tags
func (*MetricsManager) ResetInterval ¶
func (_m *MetricsManager) ResetInterval(interval time.Duration)
ResetInterval provides a mock function with given fields: interval
func (*MetricsManager) Run ¶
func (_m *MetricsManager) Run(ctx context.Context, wg *sync.WaitGroup)
Run provides a mock function with given fields: ctx, wg
func (*MetricsManager) Unregister ¶
func (_m *MetricsManager) Unregister(name string)
Unregister provides a mock function with given fields: name
type MetricsReporter ¶
MetricsReporter is an autogenerated mock type for the MetricsReporter type
func NewMetricsReporter ¶
func NewMetricsReporter(t mockConstructorTestingTNewMetricsReporter) *MetricsReporter
NewMetricsReporter creates a new instance of MetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type SecretProvider ¶
SecretProvider is an autogenerated mock type for the SecretProvider type
func NewSecretProvider ¶
func NewSecretProvider(t mockConstructorTestingTNewSecretProvider) *SecretProvider
NewSecretProvider creates a new instance of SecretProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SecretProvider) DeregisterSecretUpdatedCallback ¶
func (_m *SecretProvider) DeregisterSecretUpdatedCallback(path string)
DeregisterSecretUpdatedCallback provides a mock function with given fields: path
func (*SecretProvider) GetAccessToken ¶
func (_m *SecretProvider) GetAccessToken(tokenType string, serviceKey string) (string, error)
GetAccessToken provides a mock function with given fields: tokenType, serviceKey
func (*SecretProvider) GetMetricsToRegister ¶
func (_m *SecretProvider) GetMetricsToRegister() map[string]interface{}
GetMetricsToRegister provides a mock function with given fields:
func (*SecretProvider) GetSelfJWT ¶
func (_m *SecretProvider) GetSelfJWT() (string, error)
GetSelfJWT provides a mock function with given fields:
func (*SecretProvider) HasSecret ¶
func (_m *SecretProvider) HasSecret(path string) (bool, error)
HasSecret provides a mock function with given fields: path
func (*SecretProvider) IsJWTValid ¶
func (_m *SecretProvider) IsJWTValid(jwt string) (bool, error)
IsJWTValid provides a mock function with given fields: jwt
func (*SecretProvider) ListSecretNames ¶
func (_m *SecretProvider) ListSecretNames() ([]string, error)
ListSecretPaths provides a mock function with given fields:
func (*SecretProvider) RegisteredSecretUpdatedCallback ¶
func (_m *SecretProvider) RegisteredSecretUpdatedCallback(path string, callback func(string)) error
RegisteredSecretUpdatedCallback provides a mock function with given fields: path, callback
func (*SecretProvider) SecretUpdatedAtSecretName ¶
func (_m *SecretProvider) SecretUpdatedAtSecretName(secretName string)
SecretUpdatedAtSecretName provides a mock function with given fields: secretName
func (*SecretProvider) SecretsLastUpdated ¶
func (_m *SecretProvider) SecretsLastUpdated() time.Time
SecretsLastUpdated provides a mock function with given fields:
func (*SecretProvider) SecretsUpdated ¶
func (_m *SecretProvider) SecretsUpdated()
SecretsUpdated provides a mock function with given fields:
func (*SecretProvider) StoreSecret ¶
func (_m *SecretProvider) StoreSecret(path string, secrets map[string]string) error
StoreSecret provides a mock function with given fields: path, secrets