Documentation ¶
Index ¶
- type SecretProvider
- func (_m *SecretProvider) DeregisterSecretUpdatedCallback(secretName string)
- func (_m *SecretProvider) GetSecret(secretName string, keys ...string) (map[string]string, error)
- func (_m *SecretProvider) HasSecret(secretName string) (bool, error)
- func (_m *SecretProvider) ListSecretNames() ([]string, error)
- func (_m *SecretProvider) RegisterSecretUpdatedCallback(secretName string, callback func(string)) error
- func (_m *SecretProvider) SecretsLastUpdated() time.Time
- func (_m *SecretProvider) StoreSecret(secretName string, secrets map[string]string) error
- type SecretProviderExt
- func (_m *SecretProviderExt) DeregisterSecretUpdatedCallback(secretName string)
- func (_m *SecretProviderExt) GetAccessToken(tokenType string, serviceKey string) (string, error)
- func (_m *SecretProviderExt) GetMetricsToRegister() map[string]interface{}
- func (_m *SecretProviderExt) GetSecret(secretName string, keys ...string) (map[string]string, error)
- func (_m *SecretProviderExt) GetSelfJWT() (string, error)
- func (_m *SecretProviderExt) HasSecret(secretName string) (bool, error)
- func (_m *SecretProviderExt) IsJWTValid(jwt string) (bool, error)
- func (_m *SecretProviderExt) ListSecretNames() ([]string, error)
- func (_m *SecretProviderExt) RegisterSecretUpdatedCallback(secretName string, callback func(string)) error
- func (_m *SecretProviderExt) SecretUpdatedAtSecretName(secretName string)
- func (_m *SecretProviderExt) SecretsLastUpdated() time.Time
- func (_m *SecretProviderExt) SecretsUpdated()
- func (_m *SecretProviderExt) StoreSecret(secretName string, secrets map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretProvider ¶
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 ¶
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 ¶
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