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
- type SecretStoreClient
- func (_m *SecretStoreClient) BindUserToIdentity(token string, identityId string, authHandle string, username string) error
- func (_m *SecretStoreClient) CheckAuthMethodEnabled(token string, mountPoint string, authType string) (bool, error)
- func (_m *SecretStoreClient) CheckIdentityKeyExists(token string, keyName string) (bool, error)
- func (_m *SecretStoreClient) CheckSecretEngineInstalled(token string, mountPoint string, engine string) (bool, error)
- func (_m *SecretStoreClient) CreateNamedIdentityKey(token string, keyName string, algorithm string) error
- func (_m *SecretStoreClient) CreateOrUpdateIdentity(token string, name string, metadata map[string]string, policies []string) (string, error)
- func (_m *SecretStoreClient) CreateOrUpdateIdentityRole(token string, roleName string, keyName string, template string, ...) error
- func (_m *SecretStoreClient) CreateOrUpdateUser(token string, mountPoint string, username string, password string, ...) error
- func (_m *SecretStoreClient) CreateToken(token string, parameters map[string]interface{}) (map[string]interface{}, error)
- func (_m *SecretStoreClient) DeleteIdentity(token string, name string) error
- func (_m *SecretStoreClient) DeleteUser(token string, mountPoint string, username string) error
- func (_m *SecretStoreClient) EnableKVSecretEngine(token string, mountPoint string, kvVersion string) error
- func (_m *SecretStoreClient) EnablePasswordAuth(token string, mountPoint 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) InternalServiceLogin(token string, authEngine string, username string, password string) (map[string]interface{}, error)
- func (_m *SecretStoreClient) ListTokenAccessors(token string) ([]string, error)
- func (_m *SecretStoreClient) LookupAuthHandle(token string, mountPoint string) (string, error)
- func (_m *SecretStoreClient) LookupIdentity(token string, name 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 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
type SecretStoreClient ¶
SecretStoreClient is an autogenerated mock type for the SecretStoreClient type
func NewSecretStoreClient ¶
func NewSecretStoreClient(t interface { mock.TestingT Cleanup(func()) }) *SecretStoreClient
NewSecretStoreClient creates a new instance of SecretStoreClient. 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 (*SecretStoreClient) BindUserToIdentity ¶
func (_m *SecretStoreClient) BindUserToIdentity(token string, identityId string, authHandle string, username string) error
BindUserToIdentity provides a mock function with given fields: token, identityId, authHandle, username
func (*SecretStoreClient) CheckAuthMethodEnabled ¶
func (_m *SecretStoreClient) CheckAuthMethodEnabled(token string, mountPoint string, authType string) (bool, error)
CheckAuthMethodEnabled provides a mock function with given fields: token, mountPoint, authType
func (*SecretStoreClient) CheckIdentityKeyExists ¶
func (_m *SecretStoreClient) CheckIdentityKeyExists(token string, keyName string) (bool, error)
CheckIdentityKeyExists provides a mock function with given fields: token, keyName
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) CreateNamedIdentityKey ¶
func (_m *SecretStoreClient) CreateNamedIdentityKey(token string, keyName string, algorithm string) error
CreateNamedIdentityKey provides a mock function with given fields: token, keyName, algorithm
func (*SecretStoreClient) CreateOrUpdateIdentity ¶
func (_m *SecretStoreClient) CreateOrUpdateIdentity(token string, name string, metadata map[string]string, policies []string) (string, error)
CreateOrUpdateIdentity provides a mock function with given fields: token, name, metadata, policies
func (*SecretStoreClient) CreateOrUpdateIdentityRole ¶
func (_m *SecretStoreClient) CreateOrUpdateIdentityRole(token string, roleName string, keyName string, template string, audience string, jwtTTL string) error
CreateOrUpdateIdentityRole provides a mock function with given fields: token, roleName, keyName, template, audience, jwtTTL
func (*SecretStoreClient) CreateOrUpdateUser ¶
func (_m *SecretStoreClient) CreateOrUpdateUser(token string, mountPoint string, username string, password string, tokenTTL string, tokenPolicies []string) error
CreateOrUpdateUser provides a mock function with given fields: token, mountPoint, username, password, tokenTTL, tokenPolicies
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) DeleteIdentity ¶
func (_m *SecretStoreClient) DeleteIdentity(token string, name string) error
DeleteIdentity provides a mock function with given fields: token, name
func (*SecretStoreClient) DeleteUser ¶
func (_m *SecretStoreClient) DeleteUser(token string, mountPoint string, username string) error
DeleteUser provides a mock function with given fields: token, mountPoint, username
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) EnablePasswordAuth ¶
func (_m *SecretStoreClient) EnablePasswordAuth(token string, mountPoint string) error
EnablePasswordAuth provides a mock function with given fields: token, mountPoint
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) InternalServiceLogin ¶
func (_m *SecretStoreClient) InternalServiceLogin(token string, authEngine string, username string, password string) (map[string]interface{}, error)
InternalServiceLogin provides a mock function with given fields: token, authEngine, username, password
func (*SecretStoreClient) ListTokenAccessors ¶
func (_m *SecretStoreClient) ListTokenAccessors(token string) ([]string, error)
ListTokenAccessors provides a mock function with given fields: token
func (*SecretStoreClient) LookupAuthHandle ¶
func (_m *SecretStoreClient) LookupAuthHandle(token string, mountPoint string) (string, error)
LookupAuthHandle provides a mock function with given fields: token, mountPoint
func (*SecretStoreClient) LookupIdentity ¶
func (_m *SecretStoreClient) LookupIdentity(token string, name string) (string, error)
LookupIdentity provides a mock function with given fields: token, name
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