Documentation ¶
Overview ¶
Package store provides a sample storage handler based on local-disk.
Index ¶
- type LocalStore
- func (ls *LocalStore) Delete(name string) error
- func (ls *LocalStore) Get(name string) (*did.Identifier, error)
- func (ls *LocalStore) List() map[string]*did.Identifier
- func (ls *LocalStore) Save(name string, id *did.Identifier) error
- func (ls *LocalStore) Update(name string, id *did.Identifier) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStore ¶
type LocalStore struct {
// contains filtered or unexported fields
}
LocalStore provides a filesystem-backed store.
func NewLocalStore ¶
func NewLocalStore(home string) (*LocalStore, error)
NewLocalStore returns a local store handler.
func (*LocalStore) Delete ¶
func (ls *LocalStore) Delete(name string) error
Delete a previously stored entry.
func (*LocalStore) Get ¶
func (ls *LocalStore) Get(name string) (*did.Identifier, error)
Get an existing entry based on its reference name.
func (*LocalStore) List ¶
func (ls *LocalStore) List() map[string]*did.Identifier
List currently registered entries.
func (*LocalStore) Save ¶
func (ls *LocalStore) Save(name string, id *did.Identifier) error
Save add a new entry to the store.
func (*LocalStore) Update ¶
func (ls *LocalStore) Update(name string, id *did.Identifier) error
Update the contents of an existing entry.
Click to show internal directories.
Click to hide internal directories.