mocks

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 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 SecretClient

type SecretClient struct {
	mock.Mock
}

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

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

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

Jump to

Keyboard shortcuts

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