Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2020 Changes in this version + var ErrNotFound = errors.New("not found") + type StorageManager interface + AddSector func(sectorRoot common.Hash, sectorData []byte) error + AddSectorBatch func(sectorRoots []common.Hash) error + AddStorageFolder func(path string, size uint64) error + AvailableSpace func() storage.HostSpace + Close func() error + DeleteFolder func(folderPath string) error + DeleteSector func(sectorRoot common.Hash) error + DeleteSectorBatch func(sectorRoots []common.Hash) error + Folders func() []storage.HostFolder + ReadSector func(sectorRoot common.Hash) ([]byte, error) + ResizeFolder func(folderPath string, size uint64) error + Start func() error + func New(persistDir string) (sm StorageManager, err error)