Documentation ¶
Index ¶
- Constants
- func GenerateKey() string
- type Packager
- func (p *Packager) Crypto() cryptoapi.Crypto
- func (p *Packager) KMS() kms.KeyManager
- func (p *Packager) PackMessage(messageEnvelope *transport.Envelope) ([]byte, error)
- func (p *Packager) Packers() []packer.Packer
- func (p *Packager) PrimaryPacker() packer.Packer
- func (p *Packager) StorageProvider() storage.Provider
- func (p *Packager) UnpackMessage(encMessage []byte) (*transport.Envelope, error)
- func (p *Packager) VDRegistry() vdr.Registry
- 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) GetOpenStores() []storage.Store
- func (s *Storage) GetStoreConfig(name string) (storage.StoreConfiguration, error)
- func (s *Storage) KMS() kms.KeyManager
- func (s *Storage) ListConnections() (res []api.Connection, err error)
- func (s *Storage) Open() error
- func (s *Storage) OpenStore(name string) (storage.Store, error)
- func (s *Storage) OurPackager() api.Packager
- func (s *Storage) SaveConnection(conn api.Connection) error
- func (s *Storage) SaveDID(did api.DID) (err error)
- func (s *Storage) SetStoreConfig(name string, config storage.StoreConfiguration) 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 Packager ¶ added in v0.30.4
type Packager struct {
// contains filtered or unexported fields
}
func NewPackager ¶ added in v0.30.4
func NewPackagerFromStorage ¶ added in v0.30.4
func (*Packager) KMS ¶ added in v0.30.4
func (p *Packager) KMS() kms.KeyManager
func (*Packager) PackMessage ¶ added in v0.30.4
func (*Packager) PrimaryPacker ¶ added in v0.30.4
func (*Packager) StorageProvider ¶ added in v0.30.4
func (*Packager) UnpackMessage ¶ added in v0.30.4
func (*Packager) VDRegistry ¶ added in v0.30.4
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) GetOpenStores ¶ added in v0.30.4
func (*Storage) GetStoreConfig ¶ added in v0.30.4
func (s *Storage) GetStoreConfig(name string) (storage.StoreConfiguration, error)
func (*Storage) KMS ¶
func (s *Storage) KMS() kms.KeyManager
func (*Storage) ListConnections ¶
func (s *Storage) ListConnections() (res []api.Connection, err error)
func (*Storage) OurPackager ¶ added in v0.30.4
func (*Storage) SaveConnection ¶ added in v0.30.3
func (s *Storage) SaveConnection(conn api.Connection) error
ConnectionStorage
func (*Storage) SetStoreConfig ¶ added in v0.30.4
func (s *Storage) SetStoreConfig(name string, config storage.StoreConfiguration) error
Click to show internal directories.
Click to hide internal directories.