chubaofs

package
v0.0.0-...-7ace829 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KVolumeName   = "volName"
	KMasterAddr   = "masterAddr"
	KLogLevel     = "logLevel"
	KLogDir       = "logDir"
	KOwner        = "owner"
	KMountPoint   = "mountPoint"
	KExporterPort = "exporterPort"
	KProfPort     = "profPort"
	KCrossZone    = "crossZone"
	KEnableToken  = "enableToken"
	KZoneName     = "zoneName"
	KConsulAddr   = "consulAddr"
)
View Source
const (
	CfsClientBin = "/cfs/bin/cfs-client"
)
View Source
const DriverName = "csi.chubaofs.com"

Variables

This section is empty.

Functions

func CleanPath

func CleanPath(targetPath string) error

remove the parent path of targetPath

func IsMountPoint

func IsMountPoint(p string) (bool, error)

IsMountPoint judges whether the given path is a mount point or not

func NewControllerServer

func NewControllerServer(d *driver) *controllerServer

func NewDriver

func NewDriver(conf Config) (*driver, error)

func NewIdentityServer

func NewIdentityServer(d *driver) *identityServer

func NewNodeServer

func NewNodeServer(d *driver) *nodeServer

Types

type Config

type Config struct {
	NodeID         string
	DriverName     string
	KubeConfig     string
	Version        string
	RemountDamaged bool
	KubeletRootDir string
}

Jump to

Keyboard shortcuts

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