Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Kind is the canonical name of the plugin for starting up, etc. Kind = "vsphere" // EnvNamespaceTags is the env to set for namespace tags. It's k=v,... EnvNamespaceTags = "INFRAKIT_VSPHERE_NAMESPACE_TAGS" // EnvVCURL is the env for setting the VCenter URL to connect to EnvVCURL = "INFRAKIT_VSPHERE_VCURL" // EnvVCDataCenter is the VCenter data center name EnvVCDataCenter = "INFRAKIT_VSPHERE_VCDATACENTER" // EnvVCDataStore is the VCenter data store name EnvVCDataStore = "INFRAKIT_VSPHERE_VCDATASTORE" // EnvVCNetwork is the Network name EnvVCNetwork = "INFRAKIT_VSPHERE_VCNETWORK" // EnvVCHost is the host that will run the VM EnvVCHost = "INFRAKIT_VSPHERE_VCHOST" )
Variables ¶
View Source
var DefaultOptions = Options{ Namespace: defaultNamespace(), VCenters: []vsphere.Options{ defaultVCenterOptions(), }, }
DefaultOptions return an Options with default values filled in.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Namespace is a set of kv pairs for tags that namespaces the resource instances // TODO - this is currently implemented in AWS and other cloud providers but not // in vsphere Namespace map[string]string // IgnoreOnDestroy sets the behavior on destroying instances IgnoreOnDestroy bool // VCenters is a list of VCenters - each corresponds to config of a plugin instance VCenters []vsphere.Options }
Options capture the options for starting up the plugin.
Click to show internal directories.
Click to hide internal directories.