Versions in this module Expand all Collapse all v0 v0.2.0 Jun 5, 2026 Changes in this version + func EnvStrings(entries []Entry) []string + func HasKey(entries []Entry, name string) bool + func ValidateKey(name string) error + func WriteCiphertext(root string, sf SecretFile, data []byte) error type Keyring + func (k *Keyring) EncryptFile(ciphertext []byte, entries []Entry, now time.Time) ([]byte, error) v0.1.0 Jun 5, 2026 Changes in this version + var ErrNeedUnlock = errors.New("no age identity in the keyring can decrypt this file") + func ReadCiphertext(root string, sf SecretFile) ([]byte, error) + type Entry struct + Key string + Value string + type Keyring struct + func NewKeyring() *Keyring + func (k *Keyring) DecryptFile(ciphertext []byte) ([]Entry, error) + func (k *Keyring) Empty() bool + func (k *Keyring) Unlock(secret string) error + type SecretFile struct + Abs string + Rel string + func DiscoverSecretFiles(root string) ([]SecretFile, error)