mocks

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v2.2.0

type Configuration struct {
	mock.Mock
}

Configuration is an autogenerated mock type for the Configuration type

func (*Configuration) EmptyWritablePtr added in v2.2.0

func (_m *Configuration) EmptyWritablePtr() interface{}

EmptyWritablePtr provides a mock function with given fields:

func (*Configuration) GetBootstrap added in v2.2.0

func (_m *Configuration) GetBootstrap() config.BootstrapConfiguration

GetBootstrap provides a mock function with given fields:

func (*Configuration) GetInsecureSecrets added in v2.2.0

func (_m *Configuration) GetInsecureSecrets() config.InsecureSecrets

GetInsecureSecrets provides a mock function with given fields:

func (*Configuration) GetLogLevel added in v2.2.0

func (_m *Configuration) GetLogLevel() string

GetLogLevel provides a mock function with given fields:

func (*Configuration) GetRegistryInfo added in v2.2.0

func (_m *Configuration) GetRegistryInfo() config.RegistryInfo

GetRegistryInfo provides a mock function with given fields:

func (*Configuration) GetTelemetryInfo added in v2.2.0

func (_m *Configuration) GetTelemetryInfo() *config.TelemetryInfo

GetTelemetryInfo provides a mock function with given fields:

func (*Configuration) UpdateFromRaw added in v2.2.0

func (_m *Configuration) UpdateFromRaw(rawConfig interface{}) bool

UpdateFromRaw provides a mock function with given fields: rawConfig

func (*Configuration) UpdateWritableFromRaw added in v2.2.0

func (_m *Configuration) UpdateWritableFromRaw(rawWritableConfig interface{}) bool

UpdateWritableFromRaw provides a mock function with given fields: rawWritableConfig

type MetricsManager added in v2.2.0

type MetricsManager struct {
	mock.Mock
}

MetricsManager is an autogenerated mock type for the MetricsManager type

func (*MetricsManager) GetCounter added in v2.2.0

func (_m *MetricsManager) GetCounter(name string) metrics.Counter

GetCounter provides a mock function with given fields: name

func (*MetricsManager) GetGauge added in v2.2.0

func (_m *MetricsManager) GetGauge(name string) metrics.Gauge

GetGauge provides a mock function with given fields: name

func (*MetricsManager) GetGaugeFloat64 added in v2.2.0

func (_m *MetricsManager) GetGaugeFloat64(name string) metrics.GaugeFloat64

GetGaugeFloat64 provides a mock function with given fields: name

func (*MetricsManager) GetTimer added in v2.2.0

func (_m *MetricsManager) GetTimer(name string) metrics.Timer

GetTimer provides a mock function with given fields: name

func (*MetricsManager) Register added in v2.2.0

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 added in v2.2.0

func (_m *MetricsManager) ResetInterval(interval time.Duration)

ResetInterval provides a mock function with given fields: interval

func (*MetricsManager) Run added in v2.2.0

func (_m *MetricsManager) Run(ctx context.Context, wg *sync.WaitGroup)

Run provides a mock function with given fields: ctx, wg

func (*MetricsManager) Unregister added in v2.2.0

func (_m *MetricsManager) Unregister(name string)

Unregister provides a mock function with given fields: name

type MetricsReporter added in v2.2.0

type MetricsReporter struct {
	mock.Mock
}

MetricsReporter is an autogenerated mock type for the MetricsReporter type

func (*MetricsReporter) Report added in v2.2.0

func (_m *MetricsReporter) Report(registry metrics.Registry, metricTags map[string]map[string]string) error

Report provides a mock function with given fields: registry, metricTags

type SecretProvider

type SecretProvider struct {
	mock.Mock
}

SecretProvider is an autogenerated mock type for the SecretProvider type

func (*SecretProvider) DeregisterSecretUpdatedCallback added in v2.3.0

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 added in v2.3.0

func (_m *SecretProvider) GetMetricsToRegister() map[string]interface{}

GetMetricsToRegister provides a mock function with given fields:

func (*SecretProvider) GetSecret

func (_m *SecretProvider) GetSecret(path string, keys ...string) (map[string]string, error)

GetSecret provides a mock function with given fields: path, keys

func (*SecretProvider) HasSecret added in v2.3.0

func (_m *SecretProvider) HasSecret(path string) (bool, error)

HasSecret provides a mock function with given fields: path

func (*SecretProvider) ListSecretPaths added in v2.3.0

func (_m *SecretProvider) ListSecretPaths() ([]string, error)

ListSecretPaths provides a mock function with given fields:

func (*SecretProvider) RegisteredSecretUpdatedCallback added in v2.3.0

func (_m *SecretProvider) RegisteredSecretUpdatedCallback(path string, callback func(string)) error

RegisteredSecretUpdatedCallback provides a mock function with given fields: path, callback

func (*SecretProvider) SecretUpdatedAtPath added in v2.3.0

func (_m *SecretProvider) SecretUpdatedAtPath(path string)

SecretUpdatedAtPath provides a mock function with given fields: path

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL