Documentation
¶
Index ¶
- func AddSecret(ctx context.Context, secstore SecretStore, secret secret.Secret, ...) error
- func CheckSecretID(ctx context.Context, secstore SecretStore, secretID string) bool
- func DeleteSecret(ctx context.Context, secstore SecretStore, secretId string) error
- func GetSecret(ctx context.Context, secstore SecretStore, secretID string) (secret.Secret, error)
- func ListSecrets(ctx context.Context, secstore SecretStore) error
- type Secret
- type SecretStore
- func ConnectVaultWithTLSConfig(ctx context.Context, tlsConfig *tls.Config) (SecretStore, error)
- func ConnectVaultWithUsernamePassword(ctx context.Context, username, password string) (SecretStore, error)
- func ConnectVaulwithYubikey(ctx context.Context, yubikey *piv.YubiKey, pin string) (SecretStore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSecret ¶
func AddSecret(ctx context.Context, secstore SecretStore, secret secret.Secret, secretID string) error
this function add a Secret to vault for the given secstore and secretID
func CheckSecretID ¶
func CheckSecretID(ctx context.Context, secstore SecretStore, secretID string) bool
check if SecretId already exist in vault
func DeleteSecret ¶
func DeleteSecret(ctx context.Context, secstore SecretStore, secretId string) error
this function will update a secret in vault for a given secstore, secret and secretID
func ListSecrets ¶
func ListSecrets(ctx context.Context, secstore SecretStore) error
this function list all secrets in vault for the given mountpath and readAPPNAME() and display them in tabuuar format
Types ¶
type SecretStore ¶
func ConnectVaultWithTLSConfig ¶
connect to vault with specific tls config
func ConnectVaultWithUsernamePassword ¶
func ConnectVaultWithUsernamePassword(ctx context.Context, username, password string) (SecretStore, error)
connect to vault using username and password and return the client
func ConnectVaulwithYubikey ¶
func ConnectVaulwithYubikey(ctx context.Context, yubikey *piv.YubiKey, pin string) (SecretStore, error)
connect to vault with yubikey
Click to show internal directories.
Click to hide internal directories.