flexvolume

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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 CleanUpMetadataFile(targetDir string) error

func ReadJsonOptsFile added in v1.10.0

func ReadJsonOptsFile(targetDir string, opts interface{}) error

func WriteJsonOptsFile added in v1.10.0

func WriteJsonOptsFile(targetDir string, opts interface{}) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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