Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + const EncScheme + const FileScheme + const PassphraseEnvVar + const SSHKeyPathEnvVar + var ErrDecryptionFailed = errors.New("credential: enc:// decryption failed (wrong passphrase or SSH key?)") + var ErrPassphraseRequired = errors.New("credential: enc:// passphrase required") + var PassphraseProvider func() string = func() string + func DefaultSSHKeyPath() (string, error) + func Encrypt(passphrase, sshKeyPath, plaintext string) (string, error) + func GenerateSSHKey(path string) error + type Resolver struct + func NewResolver(configDir string) *Resolver + func (r *Resolver) Resolve(raw string) (string, error) + type SecureStore struct + func NewSecureStore() *SecureStore + func (s *SecureStore) Clear() + func (s *SecureStore) Get() string + func (s *SecureStore) IsSet() bool + func (s *SecureStore) SetString(passphrase string) Other modules containing this package github.com/xibodev/compa/v2