mgddb

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 12 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 Storage

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

func New

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

func (*Storage) AddConnection

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

ConnectionStorage

func (*Storage) AddDID

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

DIDStorage

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

Jump to

Keyboard shortcuts

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