store

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package store provides a sample storage handler based on local-disk.

Index

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.

Jump to

Keyboard shortcuts

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