memory

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 6 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(ctx context.Context, acct *account.Account) error

func (*InMemoryBackend) CreateDIDDocument

func (be *InMemoryBackend) CreateDIDDocument(ctx context.Context, ddoc *model.DIDDocument) error

func (*InMemoryBackend) CreateRecoveryCode

func (be *InMemoryBackend) CreateRecoveryCode(ctx context.Context, c *account.RecoveryCode) error

func (*InMemoryBackend) DeleteAccessKey

func (be *InMemoryBackend) DeleteAccessKey(ctx context.Context, keyID string) error

func (*InMemoryBackend) DeleteAccount

func (be *InMemoryBackend) DeleteAccount(ctx context.Context, id string) error

func (*InMemoryBackend) DeleteProperty

func (be *InMemoryBackend) DeleteProperty(ctx context.Context, accountID string, hash string) error

func (*InMemoryBackend) DeleteRecoveryCode

func (be *InMemoryBackend) DeleteRecoveryCode(ctx context.Context, code string) error

func (*InMemoryBackend) GetAccessKey

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

func (*InMemoryBackend) GetAccount

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

func (*InMemoryBackend) GetDIDDocument

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

func (*InMemoryBackend) GetIdentity

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

func (*InMemoryBackend) GetLocker

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

func (*InMemoryBackend) GetProperty

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

func (*InMemoryBackend) GetRecoveryCode

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

func (*InMemoryBackend) HasAccountAccess

func (be *InMemoryBackend) HasAccountAccess(ctx context.Context, accountID, targetAccountID string) (bool, error)

func (*InMemoryBackend) IsNew

func (be *InMemoryBackend) IsNew() bool

func (*InMemoryBackend) ListAccessKeys

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

func (*InMemoryBackend) ListAccounts

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

func (*InMemoryBackend) ListDIDDocuments

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

func (*InMemoryBackend) ListIdentities

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

func (*InMemoryBackend) ListLockers

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

func (*InMemoryBackend) ListProperties

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

func (*InMemoryBackend) StoreAccessKey

func (be *InMemoryBackend) StoreAccessKey(ctx context.Context, accessKey *model.AccessKey) error

func (*InMemoryBackend) StoreIdentity

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

func (*InMemoryBackend) StoreLocker

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

func (*InMemoryBackend) StoreProperty

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

func (*InMemoryBackend) UpdateAccount

func (be *InMemoryBackend) UpdateAccount(ctx context.Context, acct *account.Account) error

Jump to

Keyboard shortcuts

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