mount

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: 22 Imported by: 0

Documentation

Index

Constants

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

	CacheWorkerBin = "/home/paddleflow/cache-worker"
	MountPoint     = schema.PodMntDir + "/storage"
	CachePath      = "/home/paddleflow/pfs-cache"
	DataCacheDir   = "/data-cache"
	MetaCacheDir   = "/meta-cache"

	AnnoKeyServer = "server"
	AnnoKeyFsID   = "fsID"
)

Variables

This section is empty.

Functions

func BuildMountPod

func BuildMountPod(volumeID string, mountInfo pfs.MountInfo, cacheConf common.FsCacheConfig) *v1.Pod

func GeneratePodNameByFsID

func GeneratePodNameByFsID(volumeID string) string

func PodMount

func PodMount(volumeID string, mountInfo pfs.MountInfo) error

func PodUnmount

func PodUnmount(volumeID, targetPath string, mountInfo pfs.MountInfo) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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