mocks

package
v2.0.0-dev.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 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 (*SecretClient) GenerateConsulToken

func (_m *SecretClient) GenerateConsulToken(serviceKey string) (string, error)

GenerateConsulToken provides a mock function with given fields: serviceKey

func (*SecretClient) GetSecrets

func (_m *SecretClient) GetSecrets(subPath string, keys ...string) (map[string]string, error)

GetSecrets provides a mock function with given fields: subPath, keys

func (*SecretClient) StoreSecrets

func (_m *SecretClient) StoreSecrets(subPath string, _a1 map[string]string) error

StoreSecrets provides a mock function with given fields: subPath, _a1

type SecretStoreClient

type SecretStoreClient struct {
	mock.Mock
}

SecretStoreClient is an autogenerated mock type for the SecretStoreClient type

func (*SecretStoreClient) CheckSecretEngineInstalled

func (_m *SecretStoreClient) CheckSecretEngineInstalled(token string, mountPoint string, engine string) (bool, error)

CheckSecretEngineInstalled provides a mock function with given fields: token, mountPoint, engine

func (*SecretStoreClient) CreateToken

func (_m *SecretStoreClient) CreateToken(token string, parameters map[string]interface{}) (map[string]interface{}, error)

CreateToken provides a mock function with given fields: token, parameters

func (*SecretStoreClient) EnableConsulSecretEngine

func (_m *SecretStoreClient) EnableConsulSecretEngine(token string, mountPoint string, defaultLeaseTTL string) error

EnableConsulSecretEngine provides a mock function with given fields: token, mountPoint, defaultLeaseTTL

func (*SecretStoreClient) EnableKVSecretEngine

func (_m *SecretStoreClient) EnableKVSecretEngine(token string, mountPoint string, kvVersion string) error

EnableKVSecretEngine provides a mock function with given fields: token, mountPoint, kvVersion

func (*SecretStoreClient) HealthCheck

func (_m *SecretStoreClient) HealthCheck() (int, error)

HealthCheck provides a mock function with given fields:

func (*SecretStoreClient) Init

func (_m *SecretStoreClient) Init(secretThreshold int, secretShares int) (types.InitResponse, error)

Init provides a mock function with given fields: secretThreshold, secretShares

func (*SecretStoreClient) InstallPolicy

func (_m *SecretStoreClient) InstallPolicy(token string, policyName string, policyDocument string) error

InstallPolicy provides a mock function with given fields: token, policyName, policyDocument

func (*SecretStoreClient) ListTokenAccessors

func (_m *SecretStoreClient) ListTokenAccessors(token string) ([]string, error)

ListTokenAccessors provides a mock function with given fields: token

func (*SecretStoreClient) LookupToken

func (_m *SecretStoreClient) LookupToken(token string) (types.TokenMetadata, error)

LookupToken provides a mock function with given fields: token

func (*SecretStoreClient) LookupTokenAccessor

func (_m *SecretStoreClient) LookupTokenAccessor(token string, accessor string) (types.TokenMetadata, error)

LookupTokenAccessor provides a mock function with given fields: token, accessor

func (*SecretStoreClient) RegenRootToken

func (_m *SecretStoreClient) RegenRootToken(keys []string) (string, error)

RegenRootToken provides a mock function with given fields: keys

func (*SecretStoreClient) RevokeToken

func (_m *SecretStoreClient) RevokeToken(token string) error

RevokeToken provides a mock function with given fields: token

func (*SecretStoreClient) RevokeTokenAccessor

func (_m *SecretStoreClient) RevokeTokenAccessor(token string, accessor string) error

RevokeTokenAccessor provides a mock function with given fields: token, accessor

func (*SecretStoreClient) Unseal

func (_m *SecretStoreClient) Unseal(keysBase64 []string) error

Unseal provides a mock function with given fields: keysBase64

Jump to

Keyboard shortcuts

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