mgddb

package
v0.30.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 NewPackager(
	agentStorage *Storage,
	registry vdr.Registry,
) (
	p *Packager,
	err error,
)

func NewPackagerFromStorage added in v0.30.4

func NewPackagerFromStorage(
	agentStorage api.AgentStorage,
	registry vdr.Registry,
) (
	p *Packager,
	err error,
)

func (*Packager) Crypto added in v0.30.4

func (p *Packager) Crypto() cryptoapi.Crypto

func (*Packager) KMS added in v0.30.4

func (p *Packager) KMS() kms.KeyManager

func (*Packager) PackMessage added in v0.30.4

func (p *Packager) PackMessage(messageEnvelope *transport.Envelope) ([]byte, error)

func (*Packager) Packers added in v0.30.4

func (p *Packager) Packers() []packer.Packer

func (*Packager) PrimaryPacker added in v0.30.4

func (p *Packager) PrimaryPacker() packer.Packer

func (*Packager) StorageProvider added in v0.30.4

func (p *Packager) StorageProvider() storage.Provider

func (*Packager) UnpackMessage added in v0.30.4

func (p *Packager) UnpackMessage(encMessage []byte) (*transport.Envelope, error)

func (*Packager) VDRegistry added in v0.30.4

func (p *Packager) VDRegistry() vdr.Registry

type Storage

type Storage struct {
	*wrapper.StorageProvider
	// contains filtered or unexported fields
}

func New

func New(config api.AgentStorageConfig) (a *Storage, err error)

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) GetDID

func (s *Storage) GetDID(id string) (did *api.DID, err error)

func (*Storage) GetOpenStores added in v0.30.4

func (s *Storage) GetOpenStores() []storage.Store

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) Open

func (s *Storage) Open() error

agent storage

func (*Storage) OpenStore added in v0.30.4

func (s *Storage) OpenStore(name string) (storage.Store, error)

func (*Storage) OurPackager added in v0.30.4

func (s *Storage) OurPackager() api.Packager

func (*Storage) SaveConnection added in v0.30.3

func (s *Storage) SaveConnection(conn api.Connection) error

ConnectionStorage

func (*Storage) SaveDID added in v0.30.3

func (s *Storage) SaveDID(did api.DID) (err error)

DIDStorage

func (*Storage) SetStoreConfig added in v0.30.4

func (s *Storage) SetStoreConfig(name string, config storage.StoreConfiguration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL