driver

package
v0.0.0-...-4f17fb6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	MB_SIZE = 1024 * 1024

	TYPE_PLUGIN_DISK  = "disk"
	TYPE_PLUGIN_NAS   = "nas"
	TYPE_PLUGIN_OSS   = "oss"
	TYPE_PLUGIN_CPFS  = "cpfs"
	PLUGIN_MONITORING = "monitoring"
	LOGFILE_PREFIX    = "/var/log/alicloud/flexvolume_"
)

const values

Variables

This section is empty.

Functions

func RunK8sAction

func RunK8sAction()

RunK8sAction run kubernetes command

func RunPlugin

func RunPlugin(plugin FluxVolumePlugin)

RunPlugin only support attach, detach now

func RunningInSwarm

func RunningInSwarm()

RunningInSwarm expect to support running on swarm

Types

type FluxVolumePlugin

type FluxVolumePlugin interface {
	NewOptions() interface{} // not called by kubelet
	Init() utils.Result
	Getvolumename(opt interface{}) 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
	Mount(opt interface{}, mountPath string) utils.Result
	Unmount(mountPoint 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