Documentation ¶
Index ¶
- Constants
- func GenerateKey() string
- type Storage
- 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
- func (s *Storage) SaveConnection(conn api.Connection) error
- func (s *Storage) SaveDID(did api.DID) (err 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) 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)
func (*Storage) SaveConnection ¶ added in v0.30.3
func (s *Storage) SaveConnection(conn api.Connection) error
ConnectionStorage
Click to show internal directories.
Click to hide internal directories.