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 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
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 )
Click to show internal directories.
Click to hide internal directories.