common

package
v18.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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,
) (*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