Documentation
¶
Index ¶
- func IsNoIdentityMatchError(err error) bool
- type Age
- func (a *Age) AddIdentity(identity Identity) (err error)
- func (a *Age) AddIdentityOrGenerateIfNecessary(identity Identity) (err error)
- func (a *Age) GetBlobEncryption() interfaces.BlobEncryption
- func (a *Age) GetRecipients() []age.Recipient
- func (a *Age) Set(v string) (err error)
- func (a *Age) String() string
- func (a *Age) WrapReader(src io.Reader) (out io.ReadCloser, err error)
- func (a *Age) WrapWriter(dst io.Writer) (out io.WriteCloser, err error)
- type Identity
- func (i *Identity) GenerateIfNecessary() (err error)
- func (i *Identity) IsDisabled() bool
- func (i *Identity) IsEmpty() bool
- func (i *Identity) MarshalText() (b []byte, err error)
- 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) UnmarshalText(b []byte) (err error)
- func (i Identity) Unwrap(stanzas []*age.Stanza) (fileKey []byte, err error)
- type NoIdentityMatchError
- type Recipient
- type Recipients
- type X25519Identity
- type X25519Recipient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoIdentityMatchError ¶
Types ¶
type Age ¶
type Age struct {
// Recipients []Recipient `toml:"recipients,omitempty"`
Identities []*Identity `toml:"identities,omitempty"`
}
func MakeFromIdentity ¶
func MakeFromIdentityFile ¶
func MakeFromIdentityString ¶
func (*Age) AddIdentity ¶
func (*Age) AddIdentityOrGenerateIfNecessary ¶
func (*Age) GetBlobEncryption ¶
func (a *Age) GetBlobEncryption() interfaces.BlobEncryption
func (*Age) GetRecipients ¶
func (*Age) WrapReader ¶
func (*Age) WrapWriter ¶
type Identity ¶
func (*Identity) GenerateIfNecessary ¶
func (*Identity) IsDisabled ¶
func (*Identity) MarshalText ¶
func (*Identity) SetFromPath ¶
func (*Identity) SetFromX25519Identity ¶
func (*Identity) SetX25519Identity ¶
func (i *Identity) SetX25519Identity(x *age.X25519Identity)
func (*Identity) UnmarshalText ¶
type NoIdentityMatchError ¶
type NoIdentityMatchError = age.NoIdentityMatchError
type Recipients ¶
type X25519Identity ¶
type X25519Identity = age.X25519Identity
type X25519Recipient ¶
type X25519Recipient = age.X25519Recipient
Click to show internal directories.
Click to hide internal directories.