Documentation
¶
Index ¶
- Variables
- func CollectRecipients(root string) ([]string, error)
- func CreateFile(recipients []string, entries []Entry, now time.Time) ([]byte, error)
- func EnsureCreationRule(root, pathRegex string, recipients []string) error
- func EnvStrings(entries []Entry) []string
- func FileRuleRegex(rel string) string
- func HasKey(entries []Entry, name string) bool
- func ParseRecipients(raw string) ([]string, error)
- func ReadCiphertext(root string, sf SecretFile) ([]byte, error)
- func ValidateKey(name string) error
- func WriteCiphertext(root string, sf SecretFile, data []byte) error
- func WriteNewFile(root string, sf SecretFile, data []byte) error
- func WriteNewSecretFile(root string, sf SecretFile, recipients []string, entries []Entry, ...) error
- type Entry
- type Identity
- type Keyring
- type NewFilePlan
- 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 CollectRecipients ¶ added in v0.4.0
func CreateFile ¶ added in v0.3.0
func EnsureCreationRule ¶ added in v0.4.0
func EnvStrings ¶
func FileRuleRegex ¶ added in v0.4.0
func ParseRecipients ¶ added in v0.4.0
func ReadCiphertext ¶
func ReadCiphertext(root string, sf SecretFile) ([]byte, error)
func ValidateKey ¶
func WriteCiphertext ¶
func WriteCiphertext(root string, sf SecretFile, data []byte) error
func WriteNewFile ¶ added in v0.3.0
func WriteNewFile(root string, sf SecretFile, data []byte) error
func WriteNewSecretFile ¶ added in v0.4.0
Types ¶
type Identity ¶ added in v0.3.0
func GenerateIdentity ¶ added in v0.3.0
type Keyring ¶
type Keyring struct {
// contains filtered or unexported fields
}
func NewKeyring ¶
func NewKeyring() *Keyring
func (*Keyring) EncryptFile ¶
type NewFilePlan ¶ added in v0.3.0
type NewFilePlan struct {
File SecretFile
ExistingRecipients []string
}
func PlanNewFile ¶ added in v0.3.0
func PlanNewFile(root, name string) (NewFilePlan, error)
type SecretFile ¶
func DiscoverSecretFiles ¶
func DiscoverSecretFiles(root string) ([]SecretFile, error)
Click to show internal directories.
Click to hide internal directories.