Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineAccessModes ¶
func CombineAccessModes(accessModes []config.AccessMode) config.AccessMode
func GetStorageClass ¶
func GetStorageClass(options map[string]string, o core.Orchestrator) (*storageclass.Config, error)
getStorageClass accepts a list of volume creation options and returns a matching storage class. If the orchestrator already has a matching storage class, that is returned; otherwise a new one is created and registered with the orchestrator.
func GetVolumeConfig ¶
func GetVolumeConfig( name, storageClass string, sizeBytes int64, opts map[string]string, protocol config.Protocol, accessMode config.AccessMode, volumeMode config.VolumeMode, ) (*storage.VolumeConfig, error)
GetVolumeConfig accepts a set of parameters describing a volume creation request and returns a volume config structure suitable for passing to the orchestrator core.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.