mount

package
v0.1.147 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MountPoint  string
	ConfigPath  string
	GatewayAddr string
	Token       string
	Verbose     bool
	Backend     string // "fuse", "nfs", or "" for platform auto-detect
	Compression string // compression strategy: "strip", "distill", "chain", or "" (disabled)
	Session     string // custom access session ID; defaults to workspace ID if empty
	AccessLog   bool   // enable access logging; when false, no session header is sent
}

type MountManager

type MountManager struct {
	// contains filtered or unexported fields
}

func NewMountManager

func NewMountManager(cfg Config, cb StateCallback) *MountManager

func (*MountManager) Err

func (m *MountManager) Err() error

func (*MountManager) GatewayAddr

func (m *MountManager) GatewayAddr() string

func (*MountManager) Reload

func (m *MountManager) Reload() error

func (*MountManager) Start

func (m *MountManager) Start() error

func (*MountManager) State

func (m *MountManager) State() State

func (*MountManager) Stop

func (m *MountManager) Stop()

func (*MountManager) Wait

func (m *MountManager) Wait() error

type State

type State int

State represents the current state of the mount lifecycle.

const (
	Idle       State = iota // Not mounted, no activity
	Mounting                // Mount in progress
	Mounted                 // Filesystem is mounted and operational
	Unmounting              // Unmount in progress
	Error                   // An error occurred
)

func (State) String

func (s State) String() string

type StateCallback

type StateCallback func(State, error)

Jump to

Keyboard shortcuts

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