Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SchedulerHostTag tag
SchedulerHostTag = "SCHEDULER_HOST"
)
Variables ¶
View Source
var URLHost = "http://127.0.0.1:23000"
URLHost default value
Functions ¶
This section is empty.
Types ¶
type BindingInfo ¶
type BindingInfo struct { // node is the name of selected node Node string `json:"node"` // path for mount point Disk string `json:"disk"` // VgName is the name of selected volume group VgName string `json:"vgName"` // Device is the name for raw block device: /dev/vdb Device string `json:"device"` // [lvm] or [disk] or [device] or [quota] VolumeType string `json:"volumeType"` // PersistentVolumeClaim is the metakey for pvc: {namespace}/{name} PersistentVolumeClaim string `json:"persistentVolumeClaim"` }
BindingInfo represents the pvc and disk/lvm mapping
func ScheduleVolume ¶
func ScheduleVolume(volumeType, pvcName, pvcNamespace, vgName, nodeID string) (*BindingInfo, error)
ScheduleVolume make request and get expect schedule topology
Click to show internal directories.
Click to hide internal directories.