Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2020 Changes in this version + var ErrNoRepairNeeded = errors.New("no repair needed") + type AlwaysSuccessContractManager struct + func (c *AlwaysSuccessContractManager) HostHealthMap() storage.HostHealthInfoTable + func (c *AlwaysSuccessContractManager) HostHealthMapByID(ids []enode.ID) storage.HostHealthInfoTable + type FileSystem interface + Close func() error + DeleteDxFile func(dxPath storage.DxPath) error + InitAndUpdateDirMetadata func(path storage.DxPath) error + NewDxDir func(path storage.DxPath) (*dxdir.DirSetEntryWithID, error) + NewDxFile func(dxPath storage.DxPath, sourcePath storage.SysPath, force bool, ...) (*dxfile.FileSetEntryWithID, error) + OldestLastTimeHealthCheck func() (storage.DxPath, time.Time, error) + OpenDxDir func(path storage.DxPath) (*dxdir.DirSetEntryWithID, error) + OpenDxFile func(path storage.DxPath) (*dxfile.FileSetEntryWithID, error) + PersistDir func() storage.SysPath + RandomStuckDirectory func() (*dxdir.DirSetEntryWithID, error) + RenameDxFile func(prevDxPath, curDxPath storage.DxPath) error + RepairNeededChan func() chan struct{} + RootDir func() storage.SysPath + SelectDxFileToFix func() (*dxfile.FileSetEntryWithID, error) + Start func() error + StuckFoundChan func() chan struct{} + func New(persistDir string, contractor contractManager) FileSystem + type PublicFileSystemAPI struct + func NewPublicFileSystemAPI(fs FileSystem) *PublicFileSystemAPI + func (api *PublicFileSystemAPI) Delete(path string) string + func (api *PublicFileSystemAPI) DetailedFileInfo(path string) storage.FileInfo + func (api *PublicFileSystemAPI) FileList() []storage.FileBriefInfo + func (api *PublicFileSystemAPI) PersistDir() string + func (api *PublicFileSystemAPI) Rename(prevPath, newPath string) string + func (api *PublicFileSystemAPI) RootDir() string + func (api *PublicFileSystemAPI) Uploads() []storage.FileBriefInfo + type PublicFileSystemDebugAPI struct + func NewPublicFileSystemDebugAPI(fs *fileSystem) *PublicFileSystemDebugAPI + func (api *PublicFileSystemDebugAPI) CreateRandomFiles(numFiles int) string