Versions in this module Expand all Collapse all v1 v1.0.3 Nov 19, 2026 Changes in this version + func DefaultPaths() (backendPath, metadataPath, cacheRoot string, err error) + func MetadataDiskSize(path string) (int64, error) + func OpenCodec(opts *Profile) (codec.Codec, func() error, error) + func PrintMetadataResult(asJSON bool, result map[string]any) error + func RedactS3Credentials(settings map[string]any, prefix string) + type BackendConfig struct + Array backend.ArrayConfig + Kind string + Root string + S3 backend.S3Config + func (o *BackendConfig) Description() string + func (o *BackendConfig) Flags(flags *lfhflag.FlagSet, storageGroup, defaultRoot string) + func (o *BackendConfig) Open(ctx context.Context) (backend.Backend, error) + func (o *BackendConfig) Validate() error + type Budget struct + Cache bool + ChunkBytes int64 + Disk int64 + Quota int64 + Raw int64 + Read int64 + Workers int + Writeback bool + type CodecConfig struct + Concurrency int + FPGAC2H string + FPGACores int + FPGAH2C string + FPGAUser string + GzipLevel int + MaxChunk string + Name string + OpenGuard func() error + Timeout time.Duration + WorkerBinary string + WorkerMode string + WorkerProcs int + WorkerSocket string + ZstdLevel int + type Export struct + Description string + FileSystem core.Access + func OpenExport(opts *Profile) (*Export, error) + func (r *Export) Close() error + func (r *Export) StartDiagnostics(path string) error + type FUSEConfig struct + AllowDev bool + AllowOther bool + DefaultPermissions bool + DirectIO bool + GID int64 + Kernel string + KernelMetadataCache bool + MaxWrite int + ReadDirPlusAuto bool + UID int64 + func (o *FUSEConfig) Flags(f *lfhflag.FlagSet) + func (o *FUSEConfig) Options() (fuse.Options, error) + func (o *FUSEConfig) Settings() map[string]any + type LocalSettings struct + CachePath string + HistoryMode string + SyncMode string + type MaintenanceConfig struct + Block bool + JSON bool + Path string + Prefix string + Snapshot string + Timeout time.Duration + VolumeID string + func (opts *MaintenanceConfig) Flags(flags *lfhflag.FlagSet) error + type MaintenancePolicy struct + History bool + RequireExisting bool + type MetadataSelection struct + func (o *MetadataSelection) Flags(flags *lfhflag.FlagSet, group string) + func (o MetadataSelection) Options(path string) (meta.Options, error) + type MountConfig struct + AutoMount bool + Daemon bool + DaemonLog string + Foreground bool + Mountpoint string + Profile *Profile + StartupTimeout time.Duration + func MountFlags(name string, args []string) (*MountConfig, *lfhflag.FlagSet, error) + func ParseMount(name string, args []string, gateway conf.GatewayOptions) (*MountConfig, *lfhflag.FlagSet, error) + type NamespaceConfig struct + Admission func(context.Context) (func(), error) + Backend backend.Backend + Budget *Budget + CoordinatedBackup bool + ID string + Metadata meta.Engine + type PredictionOptions struct + func (o *PredictionOptions) Flags(flags *lfhflag.FlagSet, prefix string) + func (o PredictionOptions) Build() (*codec.Predictor, error) + type Profile struct + func Flags(command string, blockMode bool) (*Profile, *lfhflag.FlagSet, error) + func NewCodecProfile(c CodecConfig) *Profile + func (o *Profile) HistoryConfig() (option.HistoryConfig, error) + func (opts *Profile) ApplyGateway(gateway conf.GatewayOptions, explicitServer bool) + func (opts *Profile) Validate() error + func (p *Profile) BackupOptions() option.MetadataBackupConfig + func (p *Profile) Budget() (Budget, error) + func (p *Profile) ChunkSize() (int64, error) + func (p *Profile) CodecName() string + func (p *Profile) ForMaintenance(policy MaintenancePolicy) *Profile + func (p *Profile) ForNamespace(n NamespaceConfig) *Profile + func (p *Profile) ForNewVolume() *Profile + func (p *Profile) LocalCodec(name string) (codec.Codec, func() error, error) + func (p *Profile) MetadataClientCache() (*option.MetadataCacheConfig, error) + func (p *Profile) MetadataOptions() (meta.Options, error) + func (p *Profile) MetadataPath() string + func (p *Profile) NamespaceID() string + func (p *Profile) Remote() RemoteConfig + func (p *Profile) RemoteConsistency() (option.ConsistencyConfig, error) + func (p *Profile) Settings() LocalSettings + func (p *Profile) WithoutMetadataBackup() *Profile + func (p *Profile) Workers() int + type RemoteConfig struct + Consistency option.ConsistencyConfig + Credentials string + DataRoute string + Server string + type Runtime struct + Backend backend.Backend + Codec codec.Codec + FileSystem *core.FileSystem + func Open(opts *Profile) (_ *Runtime, err error) + func OpenWithCodec(opts *Profile, primary codec.Codec, closeCodec func() error) (_ *Runtime, err error) + func (r *Runtime) Close() error