lsshfs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeMountPoint

func NormalizeMountPoint(goos, mountpoint string) (string, error)

func ParseRemoteSpec

func ParseRemoteSpec(value string) (host, remotePath string, err error)

func RemoveMountRecord

func RemoveMountRecord(mountpoint string) error

func StateFilePath

func StateFilePath(mountpoint string) (string, error)

Types

type Backend

type Backend string
const (
	BackendFUSE Backend = "fuse"
	BackendNFS  Backend = "nfs"
)

type CommandSpec

type CommandSpec struct {
	Name string
	Args []string
}

func UnmountCommands

func UnmountCommands(goos, mountpoint string) ([]CommandSpec, error)

type MountRecord

type MountRecord struct {
	Host       string `json:"host"`
	RemotePath string `json:"remote_path"`
	MountPoint string `json:"mount_point"`
	Backend    string `json:"backend"`
	PID        int    `json:"pid"`
	ReadWrite  bool   `json:"read_write"`
}

func ListMountRecords

func ListMountRecords() ([]MountRecord, error)

func LoadMountRecord

func LoadMountRecord(mountpoint string) (MountRecord, error)

type Runner

type Runner struct {
	Config                conf.Config
	Host                  string
	RemotePath            string
	MountPoint            string
	ReadWrite             bool
	GOOS                  string
	ControlMasterOverride *bool
	ReadyNotifier         func()
	Stdout                io.Writer
	Stderr                io.Writer
	// contains filtered or unexported fields
}

func (*Runner) Run

func (r *Runner) Run() error

Jump to

Keyboard shortcuts

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