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 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
Click to show internal directories.
Click to hide internal directories.