mount

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PfsFuseIndependentMountProcessCMDName = "/home/paddleflow/mount.sh"

	ReadOnly = "ro"
)
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"
)

Variables

This section is empty.

Functions

func GeneratePodNameByVolumeID added in v0.14.3

func GeneratePodNameByVolumeID(volumeID string) 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
	SourcePath    string
	Cmd           string
	Args          []string
	ReadOnly      bool
	K8sClient     utils.Client
	PodResource   corev1.ResourceRequirements
	ServerAddress string
	Token         string
}

func ConstructMountInfo added in v0.14.4

func ConstructMountInfo(serverAddress, fsInfoBase64, fsCacheBase64, targetPath string, k8sClient utils.Client, readOnly bool) (Info, error)

func (*Info) CacheWorkerCmd added in v0.14.3

func (mountInfo *Info) CacheWorkerCmd() string

Jump to

Keyboard shortcuts

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