Documentation ¶
Index ¶
- type Age
- func Generate(basePath string) (a *Age, err error)
- func MakeFromIdentity(identity Identity, path string) (a *Age, err error)
- func MakeFromIdentityFile(basePath string) (a *Age, err error)
- func MakeFromIdentityPathOrString(path_or_identity string) (a *Age, err error)
- func MakeFromIdentityString(contents string) (a *Age, err error)
- func (a *Age) AddIdentity(identity Identity) (err error)
- func (a *Age) AddIdentityOrGenerateIfNecessary(identity Identity, path string) (err error)
- func (a *Age) Close() error
- func (a *Age) Decrypt(src io.Reader) (out io.Reader, err error)
- func (a *Age) Encrypt(dst io.Writer) (out io.WriteCloser, err error)
- func (a *Age) Identities() []age.Identity
- func (a *Age) Recipients() []Recipient
- type Identity
- func (i *Identity) GenerateIfNecessary(basePath string) (err error)
- func (i *Identity) IsDisabled() bool
- func (i *Identity) IsEmpty() bool
- func (i *Identity) Set(path_or_identity string) (err error)
- func (i *Identity) SetFromPath(path string) (err error)
- func (i *Identity) SetFromX25519Identity(identity string) (err error)
- func (i *Identity) SetX25519Identity(x *age.X25519Identity)
- func (i *Identity) String() string
- func (i *Identity) WriteToPathIfNecessary(basePath string) (err error)
- type Recipient
- type X25519Identity
- type X25519Recipient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Age ¶
type Age struct {
// contains filtered or unexported fields
}
func MakeFromIdentityPathOrString ¶
func (*Age) AddIdentityOrGenerateIfNecessary ¶
type Identity ¶
func (*Identity) GenerateIfNecessary ¶
func (*Identity) SetFromX25519Identity ¶
func (*Identity) SetX25519Identity ¶
func (i *Identity) SetX25519Identity(x *age.X25519Identity)
type X25519Identity ¶
type X25519Identity = age.X25519Identity
type X25519Recipient ¶
type X25519Recipient = age.X25519Recipient
Click to show internal directories.
Click to hide internal directories.