Documentation
¶
Index ¶
- type SecretClient
- func (_m *SecretClient) GetSecret(secretName string, keys ...string) (map[string]string, error)
- func (_m *SecretClient) GetSecretNames() ([]string, error)
- func (_m *SecretClient) GetSelfJWT(serviceKey string) (string, error)
- func (_m *SecretClient) IsJWTValid(jwt string) (bool, error)
- func (_m *SecretClient) SetAuthToken(ctx context.Context, token string) error
- func (_m *SecretClient) StoreSecret(secretName string, data map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretClient ¶
SecretClient is an autogenerated mock type for the SecretClient type
func NewSecretClient ¶
func NewSecretClient(t interface { mock.TestingT Cleanup(func()) }) *SecretClient
NewSecretClient creates a new instance of SecretClient. 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 (*SecretClient) GetSecret ¶
GetSecret provides a mock function with given fields: secretName, keys
func (*SecretClient) GetSecretNames ¶
func (_m *SecretClient) GetSecretNames() ([]string, error)
GetSecretNames provides a mock function with given fields:
func (*SecretClient) GetSelfJWT ¶
func (_m *SecretClient) GetSelfJWT(serviceKey string) (string, error)
GetSelfJWT provides a mock function with given fields: serviceKey
func (*SecretClient) IsJWTValid ¶
func (_m *SecretClient) IsJWTValid(jwt string) (bool, error)
IsJWTValid provides a mock function with given fields: jwt
func (*SecretClient) SetAuthToken ¶
func (_m *SecretClient) SetAuthToken(ctx context.Context, token string) error
SetAuthToken provides a mock function with given fields: ctx, token
func (*SecretClient) StoreSecret ¶
func (_m *SecretClient) StoreSecret(secretName string, data map[string]string) error
StoreSecret provides a mock function with given fields: secretName, data