memory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIdentityBackend

func CreateIdentityBackend(params storage.Parameters, resolver cmdbase.ParameterResolver) (storage.IdentityBackend, error)

Types

type InMemoryBackend

type InMemoryBackend struct {
	// contains filtered or unexported fields
}

func (*InMemoryBackend) Close

func (be *InMemoryBackend) Close() error

func (*InMemoryBackend) CreateAccount

func (be *InMemoryBackend) CreateAccount(acct *account.Account) error

func (*InMemoryBackend) CreateDIDDocument

func (be *InMemoryBackend) CreateDIDDocument(ddoc *model.DIDDocument) error

func (*InMemoryBackend) CreateRecoveryCode

func (be *InMemoryBackend) CreateRecoveryCode(c *account.RecoveryCode) error

func (*InMemoryBackend) DeleteAccessKey

func (be *InMemoryBackend) DeleteAccessKey(keyID string) error

func (*InMemoryBackend) DeleteAccount

func (be *InMemoryBackend) DeleteAccount(id string) error

func (*InMemoryBackend) DeleteProperty

func (be *InMemoryBackend) DeleteProperty(accountID string, hash string) error

func (*InMemoryBackend) DeleteRecoveryCode

func (be *InMemoryBackend) DeleteRecoveryCode(code string) error

func (*InMemoryBackend) GetAccessKey

func (be *InMemoryBackend) GetAccessKey(keyID string) (*model.AccessKey, error)

func (*InMemoryBackend) GetAccount

func (be *InMemoryBackend) GetAccount(id string) (*account.Account, error)

func (*InMemoryBackend) GetDIDDocument

func (be *InMemoryBackend) GetDIDDocument(iid string) (*model.DIDDocument, error)

func (*InMemoryBackend) GetIdentity

func (be *InMemoryBackend) GetIdentity(accountID string, hash string) (*account.DataEnvelope, error)

func (*InMemoryBackend) GetLocker

func (be *InMemoryBackend) GetLocker(accountID string, hash string) (*account.DataEnvelope, error)

func (*InMemoryBackend) GetProperty

func (be *InMemoryBackend) GetProperty(accountID string, hash string) (*account.DataEnvelope, error)

func (*InMemoryBackend) GetRecoveryCode

func (be *InMemoryBackend) GetRecoveryCode(code string) (*account.RecoveryCode, error)

func (*InMemoryBackend) HasAccountAccess

func (be *InMemoryBackend) HasAccountAccess(accountID, targetAccountID string) (bool, error)

func (*InMemoryBackend) IsNew

func (be *InMemoryBackend) IsNew() bool

func (*InMemoryBackend) ListAccessKeys

func (be *InMemoryBackend) ListAccessKeys(accountID string) ([]*model.AccessKey, error)

func (*InMemoryBackend) ListAccounts

func (be *InMemoryBackend) ListAccounts(parentAccountID, stateFilter string) ([]*account.Account, error)

func (*InMemoryBackend) ListDIDDocuments

func (be *InMemoryBackend) ListDIDDocuments() ([]*model.DIDDocument, error)

func (*InMemoryBackend) ListIdentities

func (be *InMemoryBackend) ListIdentities(accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)

func (*InMemoryBackend) ListLockerHashes

func (be *InMemoryBackend) ListLockerHashes(accountID string, lvl model.AccessLevel) ([]string, error)

func (*InMemoryBackend) ListLockers

func (be *InMemoryBackend) ListLockers(accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)

func (*InMemoryBackend) ListProperties

func (be *InMemoryBackend) ListProperties(accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)

func (*InMemoryBackend) StoreAccessKey

func (be *InMemoryBackend) StoreAccessKey(accessKey *model.AccessKey) error

func (*InMemoryBackend) StoreIdentity

func (be *InMemoryBackend) StoreIdentity(accountID string, idy *account.DataEnvelope) error

func (*InMemoryBackend) StoreLocker

func (be *InMemoryBackend) StoreLocker(accountID string, l *account.DataEnvelope) error

func (*InMemoryBackend) StoreProperty

func (be *InMemoryBackend) StoreProperty(accountID string, prop *account.DataEnvelope) error

func (*InMemoryBackend) UpdateAccount

func (be *InMemoryBackend) UpdateAccount(acct *account.Account) error

Jump to

Keyboard shortcuts

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