cistore

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotFound indicates the instance doesn't exist.
	ErrNotFound = errors.New("storage info not found")
)

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is an Datastore implementation of StorageInfoStore.

func New

func New(ds datastore.Datastore) *Store

New returns a new JobStore backed by the Datastore.

func (*Store) Get

func (s *Store) Get(iid ffs.APIID, c cid.Cid) (ffs.StorageInfo, error)

Get gets the current stored state of a Cid.

func (*Store) List

func (s *Store) List(iids []ffs.APIID, cids []cid.Cid) ([]ffs.StorageInfo, error)

List returns a list of StorageInfo matching any provided query options.

func (*Store) Put

func (s *Store) Put(ci ffs.StorageInfo) error

Put saves a new storage state for a Cid.

Jump to

Keyboard shortcuts

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