Documentation ¶
Index ¶
- Constants
- type Age
- func (a *Age) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)
- func (a *Age) Encrypt(ctx context.Context, plaintext []byte, recipients []string) ([]byte, error)
- func (a *Age) ExportPublicKey(ctx context.Context, id string) ([]byte, error)
- func (a *Age) Ext() string
- func (a *Age) FindIdentities(ctx context.Context, keys ...string) ([]string, error)
- func (a *Age) FindRecipients(ctx context.Context, keys ...string) ([]string, error)
- func (a *Age) Fingerprint(ctx context.Context, id string) string
- func (a *Age) FormatKey(ctx context.Context, id, tpl string) string
- func (a *Age) GenerateIdentity(ctx context.Context, name, email, _ string) error
- func (a *Age) IDFile() string
- func (a *Age) ImportPublicKey(ctx context.Context, buf []byte) error
- func (a *Age) Initialized(ctx context.Context) error
- func (a *Age) ListIdentities(ctx context.Context) ([]string, error)
- func (a *Age) ListRecipients(context.Context) ([]string, error)
- func (a *Age) Name() string
- func (a *Age) ReadNamesFromKey(ctx context.Context, buf []byte) ([]string, error)
- func (a *Age) RecipientIDs(ctx context.Context, buf []byte) ([]string, error)
- func (a *Age) Version(ctx context.Context) semver.Version
- type Keypair
- type Keyring
Constants ¶
View Source
const ( // Ext is the file extension for age encrypted secrets Ext = "age" // IDFile is the name for age recipients IDFile = ".age-ids" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Age ¶
type Age struct {
// contains filtered or unexported fields
}
Age is an age backend
func (*Age) ExportPublicKey ¶ added in v1.10.0
ExportPublicKey is not implemented
func (*Age) FindIdentities ¶
FindIdentities is TODO
func (*Age) FindRecipients ¶
FindRecipients it TODO
func (*Age) Fingerprint ¶
Fingerprint return the id
func (*Age) GenerateIdentity ¶
GenerateIdentity will create a new native private key
func (*Age) ImportPublicKey ¶ added in v1.10.0
ImportPublicKey is TODO
func (*Age) Initialized ¶
Initialized returns nil
func (*Age) ListIdentities ¶
ListIdentities is TODO
func (*Age) ListRecipients ¶
ListRecipients is TODO
func (*Age) ReadNamesFromKey ¶
ReadNamesFromKey is TODO
func (*Age) RecipientIDs ¶
RecipientIDs is TODO
Click to show internal directories.
Click to hide internal directories.