Documentation ¶
Index ¶
- Constants
- type Age
- func (a *Age) CreatePrivateKey(ctx context.Context) error
- func (a *Age) CreatePrivateKeyBatch(ctx context.Context, name, email, pw string) error
- func (a *Age) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)
- func (a *Age) EmailFromKey(context.Context, string) string
- 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) FindPrivateKeys(ctx context.Context, keys ...string) ([]string, error)
- func (a *Age) FindPublicKeys(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 string) string
- 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) ListPrivateKeyIDs(ctx context.Context) ([]string, error)
- func (a *Age) ListPublicKeyIDs(context.Context) ([]string, error)
- func (a *Age) Name() string
- func (a *Age) NameFromKey(context.Context, string) 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) Sign(ctx context.Context, in string, sigf string) error
- func (a *Age) Version(ctx context.Context) semver.Version
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) CreatePrivateKey ¶
CreatePrivateKey is TODO
func (*Age) CreatePrivateKeyBatch ¶
CreatePrivateKeyBatch will create a new native private key
func (*Age) EmailFromKey ¶
EmailFromKey is TODO
func (*Age) ExportPublicKey ¶
ExportPublicKey is not implemented
func (*Age) FindPrivateKeys ¶
FindPrivateKeys is TODO
func (*Age) FindPublicKeys ¶
FindPublicKeys it TODO
func (*Age) Fingerprint ¶
Fingerprint is TODO
func (*Age) ImportPublicKey ¶
ImportPublicKey is TODO
func (*Age) Initialized ¶
Initialized returns nil
func (*Age) ListPrivateKeyIDs ¶
ListPrivateKeyIDs is TODO
func (*Age) ListPublicKeyIDs ¶
ListPublicKeyIDs is TODO
func (*Age) NameFromKey ¶
NameFromKey is TODO
func (*Age) ReadNamesFromKey ¶
ReadNamesFromKey is TODO
func (*Age) RecipientIDs ¶
RecipientIDs is TODO
Click to show internal directories.
Click to hide internal directories.