mocks

package
v4.0.0-dev.14 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapHandler

type BootstrapHandler struct {
	mock.Mock
}

BootstrapHandler is an autogenerated mock type for the BootstrapHandler type

func NewBootstrapHandler

func NewBootstrapHandler(t mockConstructorTestingTNewBootstrapHandler) *BootstrapHandler

NewBootstrapHandler creates a new instance of BootstrapHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BootstrapHandler) Execute

func (_m *BootstrapHandler) Execute(ctx context.Context, wg *sync.WaitGroup, startupTimer startup.Timer, dic *di.Container) bool

Execute provides a mock function with given fields: ctx, wg, startupTimer, dic

type CertificateProvider

type CertificateProvider struct {
	mock.Mock
}

CertificateProvider is an autogenerated mock type for the CertificateProvider type

func NewCertificateProvider

func NewCertificateProvider(t mockConstructorTestingTNewCertificateProvider) *CertificateProvider

NewCertificateProvider creates a new instance of CertificateProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CertificateProvider) GetCertificateKeyPair

func (_m *CertificateProvider) GetCertificateKeyPair(path string) (config.CertKeyPair, error)

GetCertificateKeyPair provides a mock function with given fields: path

type Configuration

type Configuration struct {
	mock.Mock
}

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) GetWritablePtr

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

GetWritablePtr 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 CredentialsProvider

type CredentialsProvider struct {
	mock.Mock
}

CredentialsProvider is an autogenerated mock type for the CredentialsProvider type

func NewCredentialsProvider

func NewCredentialsProvider(t mockConstructorTestingTNewCredentialsProvider) *CredentialsProvider

NewCredentialsProvider creates a new instance of CredentialsProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CredentialsProvider) GetDatabaseCredentials

func (_m *CredentialsProvider) GetDatabaseCredentials(database config.Database) (config.Credentials, error)

GetDatabaseCredentials provides a mock function with given fields: database

type MetricsManager

type MetricsManager struct {
	mock.Mock
}

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

type MetricsReporter struct {
	mock.Mock
}

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.

func (*MetricsReporter) Report

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 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(secretName string)

DeregisterSecretUpdatedCallback provides a mock function with given fields: secretName

func (*SecretProvider) GetSecret

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

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

func (*SecretProvider) HasSecret

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

HasSecret provides a mock function with given fields: secretName

func (*SecretProvider) ListSecretNames

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

ListSecretNames provides a mock function with given fields:

func (*SecretProvider) RegisterSecretUpdatedCallback

func (_m *SecretProvider) RegisterSecretUpdatedCallback(secretName string, callback func(string)) error

RegisterSecretUpdatedCallback provides a mock function with given fields: secretName, callback

func (*SecretProvider) SecretsLastUpdated

func (_m *SecretProvider) SecretsLastUpdated() time.Time

SecretsLastUpdated provides a mock function with given fields:

func (*SecretProvider) StoreSecret

func (_m *SecretProvider) StoreSecret(secretName string, secrets map[string]string) error

StoreSecret provides a mock function with given fields: secretName, secrets

type SecretProviderExt

type SecretProviderExt struct {
	mock.Mock
}

SecretProviderExt is an autogenerated mock type for the SecretProviderExt type

func NewSecretProviderExt

func NewSecretProviderExt(t interface {
	mock.TestingT
	Cleanup(func())
}) *SecretProviderExt

NewSecretProviderExt creates a new instance of SecretProviderExt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SecretProviderExt) DeregisterSecretUpdatedCallback

func (_m *SecretProviderExt) DeregisterSecretUpdatedCallback(secretName string)

DeregisterSecretUpdatedCallback provides a mock function with given fields: secretName

func (*SecretProviderExt) EnableZeroTrust

func (_m *SecretProviderExt) EnableZeroTrust()

EnableZeroTrust provides a mock function with given fields:

func (*SecretProviderExt) FallbackDialer

func (_m *SecretProviderExt) FallbackDialer() *net.Dialer

FallbackDialer provides a mock function with given fields:

func (*SecretProviderExt) GetAccessToken

func (_m *SecretProviderExt) GetAccessToken(tokenType string, serviceKey string) (string, error)

GetAccessToken provides a mock function with given fields: tokenType, serviceKey

func (*SecretProviderExt) GetMetricsToRegister

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

GetMetricsToRegister provides a mock function with given fields:

func (*SecretProviderExt) GetSecret

func (_m *SecretProviderExt) GetSecret(secretName string, keys ...string) (map[string]string, error)

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

func (*SecretProviderExt) GetSelfJWT

func (_m *SecretProviderExt) GetSelfJWT() (string, error)

GetSelfJWT provides a mock function with given fields:

func (*SecretProviderExt) HasSecret

func (_m *SecretProviderExt) HasSecret(secretName string) (bool, error)

HasSecret provides a mock function with given fields: secretName

func (*SecretProviderExt) HttpTransport

func (_m *SecretProviderExt) HttpTransport() http.RoundTripper

HttpTransport provides a mock function with given fields:

func (*SecretProviderExt) IsJWTValid

func (_m *SecretProviderExt) IsJWTValid(jwt string) (bool, error)

IsJWTValid provides a mock function with given fields: jwt

func (*SecretProviderExt) IsZeroTrustEnabled

func (_m *SecretProviderExt) IsZeroTrustEnabled() bool

IsZeroTrustEnabled provides a mock function with given fields:

func (*SecretProviderExt) ListSecretNames

func (_m *SecretProviderExt) ListSecretNames() ([]string, error)

ListSecretNames provides a mock function with given fields:

func (*SecretProviderExt) RegisterSecretUpdatedCallback

func (_m *SecretProviderExt) RegisterSecretUpdatedCallback(secretName string, callback func(string)) error

RegisterSecretUpdatedCallback provides a mock function with given fields: secretName, callback

func (*SecretProviderExt) SecretUpdatedAtSecretName

func (_m *SecretProviderExt) SecretUpdatedAtSecretName(secretName string)

SecretUpdatedAtSecretName provides a mock function with given fields: secretName

func (*SecretProviderExt) SecretsLastUpdated

func (_m *SecretProviderExt) SecretsLastUpdated() time.Time

SecretsLastUpdated provides a mock function with given fields:

func (*SecretProviderExt) SecretsUpdated

func (_m *SecretProviderExt) SecretsUpdated()

SecretsUpdated provides a mock function with given fields:

func (*SecretProviderExt) SetFallbackDialer

func (_m *SecretProviderExt) SetFallbackDialer(dialer *net.Dialer)

SetFallbackDialer provides a mock function with given fields: dialer

func (*SecretProviderExt) SetHttpTransport

func (_m *SecretProviderExt) SetHttpTransport(rt http.RoundTripper)

SetHttpTransport provides a mock function with given fields: rt

func (*SecretProviderExt) StoreSecret

func (_m *SecretProviderExt) StoreSecret(secretName string, secrets map[string]string) error

StoreSecret provides a mock function with given fields: secretName, secrets

type UpdatableConfig

type UpdatableConfig struct {
	mock.Mock
}

UpdatableConfig is an autogenerated mock type for the UpdatableConfig type

func NewUpdatableConfig

func NewUpdatableConfig(t mockConstructorTestingTNewUpdatableConfig) *UpdatableConfig

NewUpdatableConfig creates a new instance of UpdatableConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UpdatableConfig) UpdateFromRaw

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

UpdateFromRaw provides a mock function with given fields: rawConfig

type WritableConfig

type WritableConfig struct {
	mock.Mock
}

WritableConfig is an autogenerated mock type for the WritableConfig type

func NewWritableConfig

func NewWritableConfig(t mockConstructorTestingTNewWritableConfig) *WritableConfig

NewWritableConfig creates a new instance of WritableConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WritableConfig) UpdateWritableFromRaw

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

UpdateWritableFromRaw provides a mock function with given fields: rawWritableConfig

Jump to

Keyboard shortcuts

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