dbfs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ZoneID tag
	ZoneID = "zoneId"
	// ZoneIDTag tag
	ZoneIDTag = "zone-id"
	// TopologyZoneKey tag
	TopologyZoneKey = "topology." + driverName + "/zone"
)
View Source
const (

	// InstanceID is instance id
	InstanceID = "instance-id"
	// DBFSAttachByController tag
	DBFSAttachByController = "DBFS_AD_CONTROLLER"
	// DbfsDetachDisable tag
	DbfsDetachDisable = "DBFS_DETACH_DISABLE"
)
View Source
const (
	// RegionTag is region id
	RegionTag = "region-id"
	// NsenterCmd is the nsenter command
	NsenterCmd = "/nsenter --mount=/proc/1/ns/mnt"
	// GetDBFSMountCmd get dbfs mount path
	GetDBFSMountCmd = "/usr/sbin/get_dbfs_mount_path"
)
View Source
const (
	// DbfsMetricByPlugin tag
	DbfsMetricByPlugin = "DBFS_METRIC_BY_PLUGIN"
)

Variables

This section is empty.

Functions

func GlobalConfigSet

func GlobalConfigSet(region string)

GlobalConfigSet set global config

func NewControllerServer

func NewControllerServer(d *csicommon.CSIDriver, client *dbfs.Client, region string) csi.ControllerServer

NewControllerServer is to create controller server

func NewIdentityServer

func NewIdentityServer(d *csicommon.CSIDriver) csi.IdentityServer

NewIdentityServer create identity server

Types

type DBFS

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

DBFS define driver

func NewDriver

func NewDriver(nodeID, endpoint string) *DBFS

NewDriver create the identity/node/controller server and dbfs driver

func (*DBFS) Run

func (d *DBFS) Run()

Run start a new NodeServer

type GlobalConfig

type GlobalConfig struct {
	Region       string
	DbfsClient   *dbfs.Client
	MetricEnable bool
	NodeName     string
	DBFSDomain   string
	// only useful in node
	EcsInstanceID      string
	ADControllerEnable bool
	DBFSDetachDisable  bool
}

GlobalConfig save global values for plugin

var (
	// GlobalConfigVar Global Config
	GlobalConfigVar GlobalConfig
)

type Options

type Options struct {
	FileSystemID string `json:"fileSystemID"`
	Options      string `json:"options"`
}

Options struct definition

Jump to

Keyboard shortcuts

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