Documentation
¶
Index ¶
- Variables
- func EnvStrings(entries []Entry) []string
- func HasKey(entries []Entry, name string) bool
- func ReadCiphertext(root string, sf SecretFile) ([]byte, error)
- func ValidateKey(name string) error
- func WriteCiphertext(root string, sf SecretFile, data []byte) error
- type Entry
- type Keyring
- type SecretFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNeedUnlock = errors.New("no age identity in the keyring can decrypt this file")
Functions ¶
func EnvStrings ¶ added in v0.2.0
func ReadCiphertext ¶
func ReadCiphertext(root string, sf SecretFile) ([]byte, error)
func ValidateKey ¶ added in v0.2.0
func WriteCiphertext ¶ added in v0.2.0
func WriteCiphertext(root string, sf SecretFile, data []byte) error
Types ¶
type Keyring ¶
type Keyring struct {
// contains filtered or unexported fields
}
func NewKeyring ¶
func NewKeyring() *Keyring
func (*Keyring) EncryptFile ¶ added in v0.2.0
type SecretFile ¶
func DiscoverSecretFiles ¶
func DiscoverSecretFiles(root string) ([]SecretFile, error)
Click to show internal directories.
Click to hide internal directories.