mocks

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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