Documentation ¶
Index ¶
- type Storage
- func (storage *Storage) ActivateSharedPeer(sharingKey string, pubkey string) (int64, error)
- func (storage *Storage) AsKeystore() auth.KeyStore
- func (storage *Storage) CreatePeer(peer types.PeerInfo) (int64, error)
- func (storage *Storage) DeleteAuthorizerKey(id string) error
- func (storage *Storage) DeletePeer(id int64) error
- func (storage *Storage) GetAuthorizerKeyByID(id string) (types.AuthorizerKey, error)
- func (storage *Storage) GetPeer(id int64) (types.PeerInfo, error)
- func (storage *Storage) ListAuthorizerKeys() ([]types.AuthorizerKey, error)
- func (storage *Storage) Running() bool
- func (storage *Storage) SearchPeers(filter *types.PeerInfo) ([]types.PeerInfo, error)
- func (storage *Storage) Shutdown() error
- func (storage *Storage) UpdateAuthorizerKeys(keys []types.AuthorizerKey) error
- func (storage *Storage) UpdatePeer(peer types.PeerInfo) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ActivateSharedPeer ¶
func (*Storage) AsKeystore ¶
func (*Storage) DeleteAuthorizerKey ¶
func (*Storage) DeletePeer ¶
func (*Storage) GetAuthorizerKeyByID ¶
func (storage *Storage) GetAuthorizerKeyByID(id string) (types.AuthorizerKey, error)
func (*Storage) ListAuthorizerKeys ¶
func (storage *Storage) ListAuthorizerKeys() ([]types.AuthorizerKey, error)
func (*Storage) SearchPeers ¶
func (*Storage) UpdateAuthorizerKeys ¶
func (storage *Storage) UpdateAuthorizerKeys(keys []types.AuthorizerKey) error
UpdateAuthorizerKeys updates or inserts the given keys. The methods do not validate the key content.
Click to show internal directories.
Click to hide internal directories.