vsphere

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2015 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeZone = "Etc/UTC"
	DefaultDomain   = "vsphere.local"
)

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	User          string
	Password      string
	VCenterServer string
}

func (*Config) Client

func (c *Config) Client() (*govmomi.Client, error)

Client() returns a new client for accessing VMWare vSphere.

type NetworkInterface

type NetworkInterface struct {
	DeviceName string
	Label      string
	IPAddress  string
	SubnetMask string
}

type VirtualMachine

type VirtualMachine struct {
	Name              string
	Datacenter        string
	Cluster           string
	ResourcePool      string
	Datastore         string
	VCPU              int
	MemoryMB          int64
	Template          string
	NetworkInterfaces []NetworkInterface
	Gateway           string
	Domain            string
	DNSSuffixes       []string
	DNSServers        []string
}

func (*VirtualMachine) RunVirtualMachine

func (vm *VirtualMachine) RunVirtualMachine(c *govmomi.Client) error

Jump to

Keyboard shortcuts

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