pfs

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadOnly  = "ro"
	ReadWrite = "rw"

	UIDOption       = "--uid=%d"
	GIDOption       = "--gid=%d"
	MountPoint      = "--mount-point=%s"
	MountOptions    = "--mount-options=%s"
	UserNameOption  = "--user-name=%s"
	FSIDOptions     = "--fs-id=%s"
	PFSServerOption = "--server=%s"
)

Variables

This section is empty.

Functions

func GetOptions

func GetOptions(readOnly bool) []string

Types

type FSMountParameter

type FSMountParameter struct {
	FSID   string
	Server string
	UserID string
}

type MountInfo

type MountInfo struct {
	Server       string
	FSID         string
	TargetPath   string
	LocalPath    string
	UsernameRoot string
	PasswordRoot string
	ClusterID    string
	UID          int
	GID          int
	Options      []string
}

func GetMountInfo

func GetMountInfo(id, server string, readOnly bool) MountInfo

func (*MountInfo) GetMountCmd

func (m *MountInfo) GetMountCmd() (string, []string)

Jump to

Keyboard shortcuts

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