Documentation ¶
Index ¶
- Constants
- func IdentitiesFromStrings(workingDir string, keys []string) (ids []age.Identity, recipients []age.Recipient, err error)
- func ParsePrivateKey(arg string) ([]age.Identity, []age.Recipient, error)
- func ParsePublicKey(arg string) (recipients []age.Recipient, err error)
- func RecipientsFromStrings(workingDir string, keys []string) (ret []age.Recipient, err error)
- func SSHParseIdentity(pemBytes []byte) (age.Identity, age.Recipient, error)
- type CryptBlock
- type InputInfo
- func (in InputInfo) ContentName() string
- func (inf *InputInfo) Decrypt(forEditing bool) error
- func (in *InputInfo) Edit() error
- func (inf *InputInfo) Encrypt() error
- func (in InputInfo) Identities() []age.Identity
- func (in InputInfo) IsCue() bool
- func (in InputInfo) IsEnv() bool
- func (in InputInfo) IsJson() bool
- func (in InputInfo) IsYaml() bool
- func (in InputInfo) Recipients() []age.Recipient
- func (in InputInfo) Save(output string) error
- func (in InputInfo) TmpExt() string
- func (in InputInfo) Validate() error
Constants ¶
View Source
const ( VaultTag = "!vault" AgeTag = "!age" TripleQuote = "\"\"\"" )
Variables ¶
This section is empty.
Functions ¶
func IdentitiesFromStrings ¶
func RecipientsFromStrings ¶
Types ¶
type CryptBlock ¶ added in v1.0.1
type CryptBlock struct { Match string Mode string Spacing string Value string // contains filtered or unexported fields }
func NewCryptBlock ¶ added in v1.0.1
func NewCryptBlock(matches []string) *CryptBlock
func (*CryptBlock) Decrypt ¶ added in v1.0.1
func (cb *CryptBlock) Decrypt(identities []age.Identity, vaultKey string) error
func (*CryptBlock) Encrypt ¶ added in v1.0.1
func (cb *CryptBlock) Encrypt(recipients []age.Recipient, vaultKey string) error
func (CryptBlock) String ¶ added in v1.0.1
func (cb CryptBlock) String(forEditing bool) string
type InputInfo ¶
type InputInfo struct {
// contains filtered or unexported fields
}
func NewInputInfo ¶
func (InputInfo) ContentName ¶
func (InputInfo) Identities ¶
func (InputInfo) Recipients ¶
Click to show internal directories.
Click to hide internal directories.