vsphere

package
v0.0.0-...-304bf78 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//CloudConf file name
	CloudConf = "vsphere.conf"
	//CloudConfTemplate use to create CloudConf
	CloudConfTemplate = `` /* 398-byte string literal not displayed */

	// EnvClusterVCenter URL
	EnvClusterVCenter = "GODOG_VSPHERE_CLUSTER_VCENTER"
	//EnvClusterPrefix used to create cluster uniqueness
	EnvClusterPrefix = "GODOG_VSPHERE_CLUSTER_PREFIX"
	//EnvClusterFolder name in vCenter where virtual machine should be in
	EnvClusterFolder = "GODOG_VSPHERE_CLUSTER_FOLDER"
	//EnvClusterDataCenter name in vCenter where virtual machine should be in
	EnvClusterDataCenter = "GODOG_VSPHERE_CLUSTER_DATACENTER"
	// EnvClusterDataStore name in vCenter to use by cluster
	EnvClusterDataStore = "GODOG_VSPHERE_CLUSTER_DATASTORE"
	// EnvClusterResourcePool path in vCenter
	EnvClusterResourcePool = "GODOG_VSPHERE_CLUSTER_RESOURCEPOOL"
	// EnvClusterRegion name in vCenter
	EnvClusterRegion = "GODOG_VSPHERE_CLUSTER_REGION"
	// EnvClusterZone name in vCenter
	EnvClusterZone = "GODOG_VSPHERE_CLUSTER_ZONE"
	// EnvUser name use to login vCenter
	EnvUser = "GODOG_VSPHERE_USER"
	// EnvPassword use to login vCenter
	EnvPassword = "GODOG_VSPHERE_PASSWORD"
)

Variables

This section is empty.

Functions

func InitializeScenario

func InitializeScenario(ctx *godog.ScenarioContext)

InitializeScenario initialize feature object and steps

Types

type Config

type Config struct {
	VCenter       string // vCenter URL
	ClusterFolder string // vCenter virtual machines cluster folder name
	User          string // vCenter login username
	Password      string // vCenter login password
	DataCenter    string // vCenter datacenter name
	DataStore     string // vCenter datastore name
	ResourcePool  string // vCenter resource pool path
	Region        string // vCenter region
	Zone          string // vCenter zone
}

Config is the configuration object

type VSphere

type VSphere struct {
	Config Config
	Local  local.Local // local object
}

VSphere object

func NewVSphere

func NewVSphere() (*VSphere, error)

NewVSphere returns VSphere object

Jump to

Keyboard shortcuts

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