cpfs

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

resourcemode is selected by: subpath/filesystem

View Source
const (
	CPFS_TEMP_MNTPath = "/mnt/acs_mnt/k8s_cpfs/temp" // used for create sub directory;
)
View Source
const (
	INSTANCE_ID = "instance-id"
)

Variables

This section is empty.

Functions

func CreateDest

func CreateDest(dest string) error

func NewControllerServer

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

NewControllerServer is to create controller server

func NewDriver

func NewDriver(nodeID, endpoint string) *cpfs

func NewNodeServer

func NewNodeServer(d *cpfs) *nodeServer

Types

type CpfsOptions

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

Jump to

Keyboard shortcuts

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