cpfs

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MNTROOTPATH = "/csi-persistentvolumes"
	MBSIZE      = 1024 * 1024
	DRIVER      = "driver"
	SERVER      = "server"
	MODE        = "mode"
	VOLUMEAS    = "volumeAs"
	PATH        = "path"
	SUBPATH     = "subpath"
	FILESYSTEM  = "filesystem"
)

resourcemode is selected by: subpath/filesystem

View Source
const (
	// CPFSTempMntPath used for create sub directory
	CPFSTempMntPath = "/mnt/acs_mnt/k8s_cpfs/temp"
)
View Source
const (

	// InstanceID is instance id tag
	InstanceID = "instance-id"
)

Variables

This section is empty.

Functions

func CreateDest

func CreateDest(dest string) error

CreateDest create the target

func DoMount

func DoMount(cpfsServer, cpfsFileSystem, cpfsPath, mountOptions, mountPoint, volumeID string) error

DoMount execute the mount command for cpfs dir

func GetCpfsDetails

func GetCpfsDetails(cpfsServersString string) (string, string, string)

GetCpfsDetails get cpfsServer cpfsFileSystem and cpfsPath object

func NewControllerServer

func NewControllerServer(d *csicommon.CSIDriver) csi.ControllerServer

NewControllerServer is to create controller server

Types

type CPFS

type CPFS struct {
	// contains filtered or unexported fields
}

CPFS the CPFS object

func NewDriver

func NewDriver(nodeID, endpoint string) *CPFS

NewDriver create a cpfs driver object

func (*CPFS) Run

func (d *CPFS) Run()

Run start a new NodeServer

type Options

type Options struct {
	Server     string `json:"server"`
	FileSystem string `json:"fileSystem"`
	SubPath    string `json:"subPath"`
	Options    string `json:"options"`
}

Options struct

Jump to

Keyboard shortcuts

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