Documentation
¶
Index ¶
- func CreateIdentityBackend(params storage.Parameters, resolver cmdbase.ParameterResolver) (storage.IdentityBackend, error)
- type InMemoryBackend
- func (be *InMemoryBackend) Close() error
- func (be *InMemoryBackend) CreateAccount(ctx context.Context, acct *account.Account) error
- func (be *InMemoryBackend) CreateDIDDocument(ctx context.Context, ddoc *model.DIDDocument) error
- func (be *InMemoryBackend) CreateRecoveryCode(ctx context.Context, c *account.RecoveryCode) error
- func (be *InMemoryBackend) DeleteAccessKey(ctx context.Context, keyID string) error
- func (be *InMemoryBackend) DeleteAccount(ctx context.Context, id string) error
- func (be *InMemoryBackend) DeleteProperty(ctx context.Context, accountID string, hash string) error
- func (be *InMemoryBackend) DeleteRecoveryCode(ctx context.Context, code string) error
- func (be *InMemoryBackend) GetAccessKey(ctx context.Context, keyID string) (*model.AccessKey, error)
- func (be *InMemoryBackend) GetAccount(ctx context.Context, id string) (*account.Account, error)
- func (be *InMemoryBackend) GetDIDDocument(ctx context.Context, iid string) (*model.DIDDocument, error)
- func (be *InMemoryBackend) GetIdentity(ctx context.Context, accountID string, hash string) (*account.DataEnvelope, error)
- func (be *InMemoryBackend) GetLocker(ctx context.Context, accountID string, hash string) (*account.DataEnvelope, error)
- func (be *InMemoryBackend) GetProperty(ctx context.Context, accountID string, hash string) (*account.DataEnvelope, error)
- func (be *InMemoryBackend) GetRecoveryCode(ctx context.Context, code string) (*account.RecoveryCode, error)
- func (be *InMemoryBackend) HasAccountAccess(ctx context.Context, accountID, targetAccountID string) (bool, error)
- func (be *InMemoryBackend) IsNew() bool
- func (be *InMemoryBackend) ListAccessKeys(ctx context.Context, accountID string) ([]*model.AccessKey, error)
- func (be *InMemoryBackend) ListAccounts(ctx context.Context, parentAccountID, stateFilter string) ([]*account.Account, error)
- func (be *InMemoryBackend) ListDIDDocuments(ctx context.Context) ([]*model.DIDDocument, error)
- func (be *InMemoryBackend) ListIdentities(ctx context.Context, accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)
- func (be *InMemoryBackend) ListLockers(ctx context.Context, accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)
- func (be *InMemoryBackend) ListProperties(ctx context.Context, accountID string, lvl model.AccessLevel) ([]*account.DataEnvelope, error)
- func (be *InMemoryBackend) StoreAccessKey(ctx context.Context, accessKey *model.AccessKey) error
- func (be *InMemoryBackend) StoreIdentity(ctx context.Context, accountID string, idy *account.DataEnvelope) error
- func (be *InMemoryBackend) StoreLocker(ctx context.Context, accountID string, l *account.DataEnvelope) error
- func (be *InMemoryBackend) StoreProperty(ctx context.Context, accountID string, prop *account.DataEnvelope) error
- func (be *InMemoryBackend) UpdateAccount(ctx context.Context, acct *account.Account) error
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 (*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 (*InMemoryBackend) DeleteRecoveryCode ¶
func (be *InMemoryBackend) DeleteRecoveryCode(ctx context.Context, code string) error
func (*InMemoryBackend) GetAccessKey ¶
func (*InMemoryBackend) GetAccount ¶
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 (*InMemoryBackend) IsNew ¶
func (be *InMemoryBackend) IsNew() bool
func (*InMemoryBackend) ListAccessKeys ¶
func (*InMemoryBackend) ListAccounts ¶
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.