flex

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNotSupported = flexvolume.StatusNotSupported
	StatusSuccess      = flexvolume.StatusSuccess
	StatusFailure      = "Failure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VolumeOptions

type VolumeOptions map[string]interface{}

type VolumePlugin

type VolumePlugin interface {
	Init() VolumeResult
	Attach(options VolumeOptions, node string) VolumeResult
	Detach(pvOrVolumeName string, node string) VolumeResult
	MountDevice(dir, device string, options VolumeOptions) VolumeResult
	UnmountDevice(dir string) VolumeResult
	WaitForAttach(device string, options VolumeOptions) VolumeResult
	GetVolumeName(options VolumeOptions) VolumeResult
	IsAttached(options VolumeOptions, node string) VolumeResult
}

type VolumeResult

type VolumeResult flexvolume.DriverStatus

func NewVolumeError

func NewVolumeError(msg string, args ...interface{}) VolumeResult

NewVolumeError creates failure error with given message

func NewVolumeNotSupported

func NewVolumeNotSupported(msg string) VolumeResult

func NewVolumeSuccess

func NewVolumeSuccess() VolumeResult

func (VolumeResult) Error

func (v VolumeResult) Error() string

func (VolumeResult) ToJson

func (v VolumeResult) ToJson() string

func (VolumeResult) WithAttached

func (v VolumeResult) WithAttached(attached bool) VolumeResult

func (VolumeResult) WithDevicePath

func (v VolumeResult) WithDevicePath(devicePath string) VolumeResult

func (VolumeResult) WithVolumeName

func (v VolumeResult) WithVolumeName(volumeName string) VolumeResult

Jump to

Keyboard shortcuts

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