Documentation ¶
Index ¶
- func IsNoSuchKey(err error) bool
- type Base64String
- type Error
- type ErrorCode
- type ID
- type Info
- type Infos
- type Key
- type KeyScheme
- type Keys
- type Metadata
- type Recipient
- type Recipients
- type Store
- func (mgr *Store) AddKey(id ID, r Recipient) error
- func (mgr *Store) GetKeys(ks KeyScheme, id ID) (Recipients, error)
- func (mgr *Store) GetKeysForMessage(ks KeyScheme, msg refs.MessageRef) (Recipients, error)
- func (mgr *Store) RmKey(ks KeyScheme, id ID, rmKey Recipient) error
- func (mgr *Store) RmKeys(ks KeyScheme, id ID) error
- func (mgr *Store) SetKey(id ID, r Recipient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoSuchKey ¶
Types ¶
type Base64String ¶
type Base64String Key
func (*Base64String) UnmarshalJSON ¶
func (s *Base64String) UnmarshalJSON(data []byte) error
type Metadata ¶
type Metadata struct { GroupRoot refs.MessageRef ForFeed refs.FeedRef }
should be either or but differently typed enums are hard in go :-/
type Recipient ¶
type Recipient struct { Key Key Scheme KeyScheme // (shared secret, diffie, etc) Metadata Metadata }
Recipient combines key data with a scheme
type Store ¶
type Store struct {
Index librarian.SetterIndex
}
func (*Store) GetKeysForMessage ¶ added in v0.2.1
func (mgr *Store) GetKeysForMessage(ks KeyScheme, msg refs.MessageRef) (Recipients, error)
Click to show internal directories.
Click to hide internal directories.