storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDriverName is the default storage driver used in autopilot
	DefaultDriverName = "portworx"
)

Variables

This section is empty.

Functions

func Register

func Register(name string, d Driver) error

Register registers the given storage driver

Types

type Driver

type Driver interface {
	// Init initializes the storage driver
	Init(params map[string]string, recorder record.EventRecorder) error
	// ExpandVolume resizes the storage pool with given UID using params
	ExpandStoragePool(poolUID string, params map[string]string) error
	// String returns the string name of the driver
	String() string
}

Driver defines an external storage driver interface.

func Get

func Get(name string) (Driver, error)

Get an external storage driver to be used with the operator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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