Versions in this module Expand all Collapse all v0 v0.1.0 Dec 30, 2024 Changes in this version + const PluginName + var Log *log.Logger + func EncodeDefaultIdentity() string + func EncodeIdentity(i *Identity) string + func EncodeRecipient(recipient *Recipient) string + func ListSSHFingerprintsOp() (output []byte, err error) + func MarshalAllRecipients() (out string, err error) + func MarshalRecipient(pubkey *Recipient, w io.Writer) error + func ReadAllKeysOp() (privateKeyFromOpRef map[string][]byte, err error) + func ReadKeyFromPathOp(path string) (key []byte, err error) + func ReadKeyFromPubKeyOp(pubKey ssh.PublicKey) (privateKey []byte, err error) + func SetLogger(w io.Writer) + func UnmarshalItemList(output []byte) (items []map[string]interface{}, err error) + func WriteMarshalHeader(w io.Writer) + type DefaultIdentity struct + func NewDefaultIdentity() (*DefaultIdentity, error) + func (d *DefaultIdentity) Unwrap(stanzas []*age.Stanza) (fileKey []byte, err error) + type Identity struct + PubKey ssh.PublicKey + Version uint8 + func CreateIdentityFromPath(privateKeyPath string) (*Identity, error) + func DecodeIdentity(s string) (*Identity, error) + func GetAllIdentities() (identities []Identity, err error) + func NewIdentity(privateKey []byte) (*Identity, error) + func ParseIdentity(f io.Reader) (*Identity, error) + func (i *Identity) Marshal(w io.Writer) error + func (i *Identity) Recipient() *Recipient + func (i *Identity) Serialize() []any + func (i *Identity) Unwrap(stanzas []*age.Stanza) (fileKey []byte, err error) + type Recipient struct + PubKey ssh.PublicKey + func DecodeRecipient(s string) (*Recipient, error) + func NewRecipient(publicKey ssh.PublicKey) *Recipient + func (r *Recipient) MarshalWithDefaultIdentity(w io.Writer) error + func (r *Recipient) String() string + func (r *Recipient) Wrap(fileKey []byte) ([]*age.Stanza, error)