mocks

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretProvider

type SecretProvider struct {
	mock.Mock
}

SecretProvider is an autogenerated mock type for the SecretProvider type

func NewSecretProvider

func NewSecretProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

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

IsJWTValid provides a mock function with given fields: jwt

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

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

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

Jump to

Keyboard shortcuts

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