mocks

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 3 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 mockConstructorTestingTNewSecretClient) *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.

func (*SecretClient) GenerateConsulToken

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

GenerateConsulToken provides a mock function with given fields: serviceKey

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

type SecretStoreClient

type SecretStoreClient struct {
	mock.Mock
}

SecretStoreClient is an autogenerated mock type for the SecretStoreClient type

func NewSecretStoreClient

func NewSecretStoreClient(t mockConstructorTestingTNewSecretStoreClient) *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.

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) ConfigureConsulAccess

func (_m *SecretStoreClient) ConfigureConsulAccess(secretStoreToken string, bootstrapACLToken string, consulHost string, consulPort int) error

ConfigureConsulAccess provides a mock function with given fields: secretStoreToken, bootstrapACLToken, consulHost, consulPort

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) CreateRole

func (_m *SecretStoreClient) CreateRole(secretStoreToken string, consulRole types.ConsulRole) error

CreateRole provides a mock function with given fields: secretStoreToken, consulRole

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) 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) 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

Jump to

Keyboard shortcuts

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