mount

package
v0.14.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VolumesKeyMount     = "pfs-mount"
	VolumesKeyDataCache = "data-cache"
	VolumesKeyMetaCache = "meta-cache"

	FusePodMountPoint = schema.FusePodMntDir + "/storage"
	FusePodCachePath  = "/home/paddleflow/pfs-cache"
	DataCacheDir      = "/data-cache"
	MetaCacheDir      = "/meta-cache"
	CacheWorkerBin    = "/home/paddleflow/cache-worker"

	ContainerNameCacheWorker = "cache-worker"
	ContainerNamePfsMount    = "pfs-mount"
)
View Source
const (
	ReadOnly = "ro"
)

Variables

This section is empty.

Functions

func GeneratePodNameByVolumeID added in v0.14.3

func GeneratePodNameByVolumeID(volumeID string) string

func GetOptions added in v0.14.3

func GetOptions(mountInfo Info, readOnly bool) []string

func PFSMount added in v0.14.3

func PFSMount(volumeID string, mountInfo Info) error

func PodUnmount

func PodUnmount(volumeID string, mountInfo Info) error

Types

type Info added in v0.14.3

type Info struct {
	CacheConfig model.FSCacheConfig
	FS          model.FileSystem
	FSBase64Str string
	TargetPath  string
	Options     []string
	K8sClient   utils.Client
}

func ProcessMountInfo added in v0.14.3

func ProcessMountInfo(fsInfoBase64, fsCacheBase64, targetPath string, readOnly bool) (Info, error)

func (*Info) CacheWorkerCmd added in v0.14.3

func (mountInfo *Info) CacheWorkerCmd() string

func (*Info) MountCmd added in v0.14.3

func (mountInfo *Info) MountCmd() (string, []string)

Jump to

Keyboard shortcuts

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