Versions in this module Expand all Collapse all v0 v0.0.4 Jan 6, 2024 v0.0.3 Jan 6, 2024 v0.0.2 Jan 6, 2024 v0.0.1 Jan 5, 2024 Changes in this version + func EncodeKey(key *Key, password string) (string, error) + type Ext map[string]interface + func (e *Ext) Scan(val interface{}) error + func (e Ext) Value() (driver.Value, error) + type Key struct + CreatedAt int64 + Deleted bool + Ext Ext + ID keys.ID + Labels Labels + Notes string + Private []byte + Public []byte + Type string + UpdatedAt int64 + func DecodeKey(msg string, password string) (*Key, error) + func NewKey(k keys.Key) *Key + func ParseKey(b []byte, password string) (*Key, error) + func (k *Key) As() keys.Key + func (k *Key) AsEdX25519() *keys.EdX25519Key + func (k *Key) AsEdX25519Public() *keys.EdX25519PublicKey + func (k *Key) AsPublic() keys.Key + func (k *Key) AsRSA() *keys.RSAKey + func (k *Key) AsRSAPublic() *keys.RSAPublicKey + func (k *Key) AsX25519() *keys.X25519Key + func (k *Key) AsX25519Public() *keys.X25519PublicKey + func (k *Key) Check() error + func (k *Key) Copy() *Key + func (k *Key) Created(ts int64) *Key + func (k *Key) Equal(o *Key) bool + func (k *Key) ExtBool(key string) bool + func (k *Key) ExtString(key string) string + func (k *Key) IsEdX25519() bool + func (k *Key) IsX25519() bool + func (k *Key) SetExtBool(key string, val bool) + func (k *Key) SetExtString(key string, val string) + func (k *Key) Updated(ts int64) *Key + func (k *Key) WithLabels(labels ...string) *Key + func (k *Key) WithNotes(notes string) *Key + func (k Key) HasLabel(label string) bool + type Labels []string + func (p *Labels) Scan(src interface{}) error + func (p Labels) Value() (driver.Value, error)