Documentation
¶
Index ¶
- Constants
- func Keystore(kvs KVS) keystore.KVS
- type Backend
- type IdentityConfigurationsIterator
- type IdentityStore
- func (s *IdentityStore) AddConfiguration(ctx context.Context, wp driver.IdentityConfiguration) error
- func (s *IdentityStore) Close() error
- func (s *IdentityStore) ConfigurationExists(ctx context.Context, id, configurationType, url string) (bool, error)
- func (s *IdentityStore) GetAuditInfo(ctx context.Context, identity []byte) ([]byte, error)
- func (s *IdentityStore) GetExistingSignerInfo(ctx context.Context, identities ...driver2.Identity) ([]string, error)
- func (s *IdentityStore) GetSignerInfo(ctx context.Context, identity []byte) ([]byte, error)
- func (s *IdentityStore) GetTokenInfo(ctx context.Context, identity []byte) ([]byte, []byte, error)
- func (s *IdentityStore) IteratorConfigurations(ctx context.Context, configurationType string) (driver3.IdentityConfigurationIterator, error)
- func (s *IdentityStore) SignerInfoExists(ctx context.Context, id []byte) (bool, error)
- func (s *IdentityStore) StoreIdentityData(ctx context.Context, id []byte, identityAudit []byte, tokenMetadata []byte, ...) error
- func (s *IdentityStore) StoreSignerInfo(ctx context.Context, id, info []byte) error
- type KVS
- type KeyValuePair
- type RecipientData
- type TrackedKVS
- type WalletStore
- func (s *WalletStore) Close() error
- func (s *WalletStore) GetWalletID(ctx context.Context, identity driver2.Identity, roleID int) (driver.WalletID, error)
- func (s *WalletStore) GetWalletIDs(ctx context.Context, roleID int) ([]driver.WalletID, error)
- func (s *WalletStore) IdentityExists(ctx context.Context, identity driver2.Identity, wID driver.WalletID, ...) bool
- func (s *WalletStore) LoadMeta(ctx context.Context, identity driver2.Identity, wID driver.WalletID, ...) ([]byte, error)
- func (s *WalletStore) StoreIdentity(ctx context.Context, identity driver2.Identity, eID string, ...) error
Constants ¶
View Source
const ( IdentityDBPrefix = "idb" IdentityDBConfigurationPrefix = "configuration" IdentityDBData = "data" IdentityDBSigner = "signer" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface { Put(ctx context.Context, id string, value interface{}) error Get(ctx context.Context, id string, entry interface{}) error }
Backend interface for key-value storage
type IdentityConfigurationsIterator ¶
func (*IdentityConfigurationsIterator) Next ¶
func (w *IdentityConfigurationsIterator) Next() (driver.IdentityConfiguration, error)
type IdentityStore ¶
type IdentityStore struct {
// contains filtered or unexported fields
}
func NewIdentityStore ¶
func NewIdentityStore(kvs KVS, tmsID token.TMSID) *IdentityStore
func (*IdentityStore) AddConfiguration ¶
func (s *IdentityStore) AddConfiguration(ctx context.Context, wp driver.IdentityConfiguration) error
func (*IdentityStore) Close ¶
func (s *IdentityStore) Close() error
func (*IdentityStore) ConfigurationExists ¶
func (*IdentityStore) GetAuditInfo ¶
func (*IdentityStore) GetExistingSignerInfo ¶
func (*IdentityStore) GetSignerInfo ¶
func (*IdentityStore) GetTokenInfo ¶
func (*IdentityStore) IteratorConfigurations ¶
func (s *IdentityStore) IteratorConfigurations(ctx context.Context, configurationType string) (driver3.IdentityConfigurationIterator, error)
func (*IdentityStore) SignerInfoExists ¶
func (*IdentityStore) StoreIdentityData ¶
func (*IdentityStore) StoreSignerInfo ¶
func (s *IdentityStore) StoreSignerInfo(ctx context.Context, id, info []byte) error
type KVS ¶
type KVS interface { Exists(ctx context.Context, id string) bool GetExisting(ctx context.Context, ids ...string) []string Put(ctx context.Context, id string, state interface{}) error Get(ctx context.Context, id string, state interface{}) error GetByPartialCompositeID(ctx context.Context, prefix string, attrs []string) (kvs.Iterator, error) }
func NewInMemory ¶
type KeyValuePair ¶
KeyValuePair stores tracking info
type RecipientData ¶
type RecipientData struct { // AuditInfo contains private information Identity AuditInfo []byte // TokenMetadata contains public information related to the token to be assigned to this Recipient. TokenMetadata []byte // TokenMetadataAuditInfo contains private information TokenMetadata TokenMetadataAuditInfo []byte }
RecipientData contains information about the identity of a token owner
type TrackedKVS ¶
type TrackedKVS struct { Backend Backend PutCounter int GetCounter int PutHistory []KeyValuePair GetHistory []KeyValuePair }
TrackedKVS wraps a Backend and tracks operations
func NewTrackedMemory ¶
func NewTrackedMemory() *TrackedKVS
func NewTrackedMemoryFrom ¶
func NewTrackedMemoryFrom(backend Backend) *TrackedKVS
func (*TrackedKVS) Get ¶
func (f *TrackedKVS) Get(id string, entry interface{}) error
func (*TrackedKVS) Put ¶
func (f *TrackedKVS) Put(id string, entry interface{}) error
type WalletStore ¶
type WalletStore struct {
// contains filtered or unexported fields
}
func NewWalletStore ¶
func NewWalletStore(kvs KVS, tmsID token.TMSID) *WalletStore
func (*WalletStore) Close ¶
func (s *WalletStore) Close() error
func (*WalletStore) GetWalletID ¶
func (*WalletStore) GetWalletIDs ¶
func (*WalletStore) IdentityExists ¶
Click to show internal directories.
Click to hide internal directories.