vsphere

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLinkClonedVm

func CreateLinkClonedVm(vmName, vmImage, datacenter, clusterName string, cpus int32, memoryMB int64, client *govmomi.Client, containerLinuxUserdata string) error

func New

func New(configVarResolver *providerconfig.ConfigVarResolver) cloud.Provider

New returns a VSphere provider

Types

type Config

type Config struct {
	TemplateVMName string
	Username       string
	Password       string
	VSphereURL     string
	Datacenter     string
	Cluster        string
	Datastore      string
	AllowInsecure  bool
	CPUs           int32
	MemoryMB       int64
}

type RawConfig

type RawConfig struct {
	TemplateVMName providerconfig.ConfigVarString `json:"templateVMName"`
	Username       providerconfig.ConfigVarString `json:"username"`
	Password       providerconfig.ConfigVarString `json:"password"`
	VSphereURL     providerconfig.ConfigVarString `json:"vsphereURL"`
	Datacenter     providerconfig.ConfigVarString `json:"datacenter"`
	Cluster        providerconfig.ConfigVarString `json:"cluster"`
	Datastore      providerconfig.ConfigVarString `json:"datastore"`
	CPUs           int32                          `json:"cpus"`
	MemoryMB       int64                          `json:"memoryMB"`
	AllowInsecure  providerconfig.ConfigVarBool   `json:"allowInsecure"`
}

type VSphereServer

type VSphereServer struct {
	// contains filtered or unexported fields
}

func (VSphereServer) Addresses

func (vsphereServer VSphereServer) Addresses() []string

func (VSphereServer) ID

func (vsphereServer VSphereServer) ID() string

func (VSphereServer) Name

func (vsphereServer VSphereServer) Name() string

func (VSphereServer) Status

func (vsphereServer VSphereServer) Status() instance.Status

Jump to

Keyboard shortcuts

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