plugin_utils

package
v0.0.0-...-96d2ce7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// PluginInitError message to indicate that plugin initialization(refcounting) is not yet complete
	PluginInitError = "Plugin initialization in progress."
)

Variables

This section is empty.

Functions

func AlreadyMounted

func AlreadyMounted(name string, mountRoot string) bool

AlreadyMounted - check if volume is already mounted on the mountRoot

func IsFullVolName

func IsFullVolName(volName string) bool

IsFullVolName - Check if volume name is full volume name

Types

type VolumeInfo

type VolumeInfo struct {
	VolumeName    string
	DatastoreName string
	VolumeMeta    map[string]interface{}
}

VolumeInfo - Volume fullname, datastore and metadata

func GetVolumeInfo

func GetVolumeInfo(name string, datastoreName string, d drivers.VolumeDriver) (*VolumeInfo, error)

GetVolumeInfo - return VolumeInfo with a qualified volume name. Optionally returns datastore and volume metadata if retrieved from ESX. If Volume Metadata is nil then caller can use getVolume()

Jump to

Keyboard shortcuts

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