skiffdata

package
v1.29.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Overview

Package skiffdata provides Curio-PDP storage candidate discovery and path helpers.

Index

Constants

View Source
const (
	DefaultDataPath = "/data"
)

Variables

This section is empty.

Functions

func CanonicalLocalPath

func CanonicalLocalPath(path string) (string, error)

CanonicalLocalPath expands path to an absolute, symlink-resolved directory path.

func CanonicalPathUnderDataRoot

func CanonicalPathUnderDataRoot(path, dataRoot string) (string, error)

CanonicalPathUnderDataRoot expands path and requires it to be dataRoot or a subdirectory.

func DiscoverStorageCandidates

func DiscoverStorageCandidates(dataRoot string) ([]string, error)

DiscoverStorageCandidates lists writable directories under dataRoot for UI selection.

func EnsurePDPSectorstore

func EnsurePDPSectorstore(storagePath string) error

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.

Jump to

Keyboard shortcuts

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