Documentation ¶
Index ¶
- type SecretClient
- type SecretStoreClient
- func (_m *SecretStoreClient) CheckSecretEngineInstalled(token string, mountPoint string, engine string) (bool, error)
- func (_m *SecretStoreClient) CreateToken(token string, parameters map[string]interface{}) (map[string]interface{}, error)
- func (_m *SecretStoreClient) EnableConsulSecretEngine(token string, mountPoint string, defaultLeaseTTL string) error
- func (_m *SecretStoreClient) EnableKVSecretEngine(token string, mountPoint string, kvVersion string) error
- func (_m *SecretStoreClient) HealthCheck() (int, error)
- func (_m *SecretStoreClient) Init(secretThreshold int, secretShares int) (types.InitResponse, error)
- func (_m *SecretStoreClient) InstallPolicy(token string, policyName string, policyDocument string) error
- func (_m *SecretStoreClient) ListTokenAccessors(token string) ([]string, error)
- func (_m *SecretStoreClient) LookupToken(token string) (types.TokenMetadata, error)
- func (_m *SecretStoreClient) LookupTokenAccessor(token string, accessor string) (types.TokenMetadata, error)
- func (_m *SecretStoreClient) RegenRootToken(keys []string) (string, error)
- func (_m *SecretStoreClient) RevokeToken(token string) error
- func (_m *SecretStoreClient) RevokeTokenAccessor(token string, accessor string) error
- func (_m *SecretStoreClient) Unseal(keysBase64 []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 (*SecretClient) GetSecrets ¶
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 ¶
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