importmgr

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LSource   = "source"   // Function which created the import
	LRootCid  = "root"     // Root CID
	LFileName = "filename" // Local file path
	LMTime    = "mtime"    // File modification timestamp
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label string

type Mgr

type Mgr struct {
	Blockstore blockstore.Blockstore
	// contains filtered or unexported fields
}

func New

func New(mds *multistore.MultiStore, ds datastore.Batching) *Mgr

func (*Mgr) AddLabel

func (m *Mgr) AddLabel(id multistore.StoreID, key, value string) error

func (*Mgr) Info

func (m *Mgr) Info(id multistore.StoreID) (*StoreMeta, error)

func (*Mgr) List

func (m *Mgr) List() []multistore.StoreID

func (*Mgr) NewStore

func (m *Mgr) NewStore() (multistore.StoreID, *multistore.Store, error)

func (*Mgr) Remove

func (m *Mgr) Remove(id multistore.StoreID) error

type StoreMeta

type StoreMeta struct {
	Labels map[string]string
}

Jump to

Keyboard shortcuts

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