Documentation ¶
Overview ¶
Package sshprivatekey provides access to the username and ssh private key stored in a Vault secret.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
func Extract(d data, usernameAttr, privateKeyAttr, passphraseAttr string) (string, credential.PrivateKey, []byte)
Extract attempts to extract the values of the username, private key and optional passphrase stored within the provided data using the given attribute names.
Extract does not return partial results, i.e. if one of the attributes were extracted but not the other ("", nil) will be returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.