Documentation
¶
Overview ¶
Package skiffdata provides Curio-PDP storage candidate discovery and path helpers.
Index ¶
- Constants
- func CanonicalLocalPath(path string) (string, error)
- func CanonicalPathUnderDataRoot(path, dataRoot string) (string, error)
- func DiscoverStorageCandidates(dataRoot string) ([]string, error)
- func EnsurePDPSectorstore(storagePath string) error
- func ResolveDataRoot(cfg *config.CurioConfig) string
Constants ¶
View Source
const (
DefaultDataPath = "/data"
)
Variables ¶
This section is empty.
Functions ¶
func CanonicalLocalPath ¶
CanonicalLocalPath expands path to an absolute, symlink-resolved directory path.
func CanonicalPathUnderDataRoot ¶
CanonicalPathUnderDataRoot expands path and requires it to be dataRoot or a subdirectory.
func DiscoverStorageCandidates ¶
DiscoverStorageCandidates lists writable directories under dataRoot for UI selection.
func EnsurePDPSectorstore ¶
EnsurePDPSectorstore creates sectorstore.json with PDP defaults when missing.
func ResolveDataRoot ¶
func ResolveDataRoot(cfg *config.CurioConfig) string
ResolveDataRoot returns the preferred storage candidate root for Curio-PDP. Precedence: DATA_STORAGE, SKIFF_DATA, CURIO_DATA, [Subsystems].DataPath, /data.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.