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