Documentation ¶
Index ¶
- Constants
- Variables
- 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) 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) 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) Lock()
- 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 ¶
View Source
var (
// DefaultAskPass is the default password cache
DefaultAskPass = newAskPass()
)
Functions ¶
This section is empty.
Types ¶
type Age ¶
type Age struct {
// contains filtered or unexported fields
}
Age is an age backend
func (*Age) FindIdentities ¶
FindIdentities returns all usable identities (SSH and native)
func (*Age) FindRecipients ¶
FindRecipients is TODO
func (*Age) Fingerprint ¶
Fingerprint returns the id
func (*Age) GenerateIdentity ¶
GenerateIdentity will create a new native private key
func (*Age) Initialized ¶
Initialized returns nil
func (*Age) ListIdentities ¶
ListIdentities lists all identities
func (*Age) ListRecipients ¶
ListRecipients is not supported for the age backend
func (*Age) ReadNamesFromKey ¶
ReadNamesFromKey is not supported for the age backend
func (*Age) RecipientIDs ¶
RecipientIDs is not supported for the age backend
Click to show internal directories.
Click to hide internal directories.