Versions in this module Expand all Collapse all v1 v1.4.13 Oct 29, 2021 Changes in this version + const DefaultDirHealth + const DefaultDirRedundancy + const SiaDirExtension + func ApplyUpdates(updates ...writeaheadlog.Update) error + func CreateAndApplyTransaction(wal *writeaheadlog.WAL, updates ...writeaheadlog.Update) error + func IsSiaDirUpdate(update writeaheadlog.Update) bool + type DirReader struct + func (sdr *DirReader) Close() error + func (sdr *DirReader) Read(b []byte) (int, error) + func (sdr *DirReader) Stat() (os.FileInfo, error) + type Metadata struct + AggregateHealth float64 + AggregateLastHealthCheckTime time.Time + AggregateMinRedundancy float64 + AggregateModTime time.Time + AggregateNumFiles uint64 + AggregateNumStuckChunks uint64 + AggregateNumSubDirs uint64 + AggregateRemoteHealth float64 + AggregateSize uint64 + AggregateStuckHealth float64 + Health float64 + LastHealthCheckTime time.Time + MinRedundancy float64 + ModTime time.Time + Mode os.FileMode + NumFiles uint64 + NumStuckChunks uint64 + NumSubDirs uint64 + RemoteHealth float64 + Size uint64 + StuckHealth float64 + Version string + type SiaDir struct + func LoadSiaDir(path string, deps modules.Dependencies, wal *writeaheadlog.WAL) (sd *SiaDir, err error) + func New(path, rootPath string, mode os.FileMode, wal *writeaheadlog.WAL) (*SiaDir, error) + func (sd *SiaDir) Delete() error + func (sd *SiaDir) Deleted() bool + func (sd *SiaDir) DirReader() (*DirReader, error) + func (sd *SiaDir) MDPath() string + func (sd *SiaDir) Metadata() Metadata + func (sd *SiaDir) Path() string + func (sd *SiaDir) Rename(targetPath string) error + func (sd *SiaDir) SetPath(targetPath string) + func (sd *SiaDir) UpdateBubbledMetadata(metadata Metadata) error + func (sd *SiaDir) UpdateLastHealthCheckTime(aggregateLastHealthCheckTime, lastHealthCheckTime time.Time) error + func (sd *SiaDir) UpdateMetadata(metadata Metadata) error