Documentation
¶
Index ¶
Constants ¶
View Source
const ( VolIdKey = "volumeID" HyperFlexvolumeDataFile = "hyper-flexvolume.json" // Cinder flexvolume CinderConfigKey = "cinderConfig" CinderConfigFile = "/etc/kubernetes/cinder.conf" // GCE PD flexvolume ZoneKey = "zone" ProjectKey = "project" // Build-in fsType key of flexvolume SystemFsTypeKey = "kubernetes.io/fsType" )
Variables ¶
This section is empty.
Functions ¶
func CleanUpMetadataFile ¶ added in v1.10.0
func ReadJsonOptsFile ¶ added in v1.10.0
func WriteJsonOptsFile ¶ added in v1.10.0
Types ¶
type CinderVolumeOptsData ¶ added in v1.10.0
type CinderVolumeOptsData struct {
// Needed to reconstruct new cinder clients
ConfigKey string `json:"cinderConfig"`
VolumeID string `json:"volumeID"`
// rbd volume details
VolumeType string `json:"volume_type"`
Name string `json:"name"`
FsType string `json:"fsType"`
Hosts []string `json:"hosts"`
Ports []string `json:"ports"`
}
CinderVolumeOptsData is the struct of json file
type FlexVolumeOptsData ¶ added in v1.10.0
type FlexVolumeOptsData struct {
CinderData *CinderVolumeOptsData `json:"cinderVolumeOptsData,omitempty"`
GCEPDData *GCEPDOptsData `json:"gCEPDOptsData,omitempty"`
}
type GCEPDOptsData ¶ added in v1.10.0
type GCEPDOptsData struct {
// Needed for unmount
VolumeID string `json:"volumeID"`
Zone string `json:"zone"`
Project string `json:"project"`
// gce pd volume details
DevicePath string `json:"devicePath"`
FsType string `json:"fsType"`
}
GCEPDOptsData is the struct of json file
Click to show internal directories.
Click to hide internal directories.