driver

package
v0.0.0-...-a80aee0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MB_SIZE = 1024 * 1024

	// Only support nas with mount and unmount
	TYPE_PLUGIN_NAS   = "nas"
	PLUGIN_MONITORING = "monitoring"
	LOGFILE_PREFIX    = "/var/log/cds/flexvolume_"
)

const values

Variables

This section is empty.

Functions

func Run

func Run()

RunK8sAction run kubernetes command

func RunPlugin

func RunPlugin(plugin FluxVolumePlugin)

RunPlugin only support mount and detach now.

Types

type FluxVolumePlugin

type FluxVolumePlugin interface {
	NewOptions() interface{} // not called by kubelet
	Init() utils.Result
	Mount(opt interface{}, mountPath string) utils.Result
	Unmount(mountPoint string) utils.Result
	Attach(opt interface{}, nodeName string) utils.Result
	Waitforattach(devicePath string, opt interface{}) utils.Result
	Mountdevice(mountPath string, opt interface{}) utils.Result
	Detach(volumeName string, nodeName string) utils.Result
}

FluxVolumePlugin: VolumePlugin interface for plugins

Jump to

Keyboard shortcuts

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