Documentation ¶
Index ¶
- Constants
- func GenerateKey() string
- type Storage
- func (s *Storage) AddConnection(conn api.Connection) error
- func (s *Storage) AddDID(did api.DID) (err error)
- func (s *Storage) ConnectionStorage() api.ConnectionStorage
- func (s *Storage) CredentialStorage() api.CredentialStorage
- func (s *Storage) DIDStorage() api.DIDStorage
- func (s *Storage) GetConnection(id string) (conn *api.Connection, err error)
- func (s *Storage) GetDID(id string) (did *api.DID, err error)
- func (s *Storage) KMS() kms.KeyManager
- func (s *Storage) ListConnections() (res []api.Connection, err error)
- func (s *Storage) Open() error
Constants ¶
View Source
const ( NameKey = "kmsdb" NameDID = "did" NameConnection = "connection" NameCredential = "credential" NameVDRPeer = "peer" )
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
func GenerateKey() string
Types ¶
type Storage ¶
type Storage struct { *wrapper.StorageProvider // contains filtered or unexported fields }
func (*Storage) AddConnection ¶
func (s *Storage) AddConnection(conn api.Connection) error
ConnectionStorage
func (*Storage) ConnectionStorage ¶
func (s *Storage) ConnectionStorage() api.ConnectionStorage
func (*Storage) CredentialStorage ¶
func (s *Storage) CredentialStorage() api.CredentialStorage
func (*Storage) DIDStorage ¶
func (s *Storage) DIDStorage() api.DIDStorage
func (*Storage) GetConnection ¶
func (s *Storage) GetConnection(id string) (conn *api.Connection, err error)
func (*Storage) KMS ¶
func (s *Storage) KMS() kms.KeyManager
func (*Storage) ListConnections ¶
func (s *Storage) ListConnections() (res []api.Connection, err error)
Click to show internal directories.
Click to hide internal directories.