Documentation
¶
Index ¶
- func GPGDecryption(encryptedData string, vaultPath string) (string, error)
- func GPGDecryptionWithPassphrase(encryptedData string, vaultPath string, passphrase string) (string, error)
- func GPGEncryption(data string, vaultConfig config.VaultConfig) (string, error)
- func GPGEncryptionWithPassphrase(data string, vaultConfig config.VaultConfig, passphrase string) (string, error)
- func GetGPGKeyFingerprint(keyID string) (string, error)
- func IsGPGAvailable() bool
- func PromptGPGOptions(configuration *config.VaultConfig) error
- func ValidateGPGKey(keyID string) error
- type GPGKeyInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GPGDecryption ¶
GPGDecryption decrypts GPG-encrypted data
func GPGDecryptionWithPassphrase ¶
func GPGDecryptionWithPassphrase(encryptedData string, vaultPath string, passphrase string) (string, error)
GPGDecryptionWithPassphrase decrypts GPG-encrypted data using a passphrase
func GPGEncryption ¶
func GPGEncryption(data string, vaultConfig config.VaultConfig) (string, error)
GPGEncryption encrypts data using GPG with the configured recipient
func GPGEncryptionWithPassphrase ¶
func GPGEncryptionWithPassphrase(data string, vaultConfig config.VaultConfig, passphrase string) (string, error)
GPGEncryptionWithPassphrase encrypts data using GPG with passphrase support
func GetGPGKeyFingerprint ¶
GetGPGKeyFingerprint retrieves the fingerprint for a given key ID
func IsGPGAvailable ¶
func IsGPGAvailable() bool
IsGPGAvailable checks if GPG is installed and available
func PromptGPGOptions ¶
func PromptGPGOptions(configuration *config.VaultConfig) error
func ValidateGPGKey ¶
ValidateGPGKey validates that a GPG key exists and can be used for encryption
Types ¶
type GPGKeyInfo ¶
type GPGKeyInfo struct {
KeyID string
Fingerprint string
UserID string
Email string
KeyType string
Expired bool
}
GPGKeyInfo represents information about a GPG key
func ListGPGKeys ¶
func ListGPGKeys() ([]*GPGKeyInfo, error)
ListGPGKeys retrieves available GPG keys from the keyring
Click to show internal directories.
Click to hide internal directories.