cistore

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound indicates the instance doesn't exist.
	ErrNotFound = errors.New("cid 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(c cid.Cid) (ffs.StorageInfo, error)

Get gets the current stored state of a Cid.

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