common

package
v19.10.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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