vsphere

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionProgressing string = "Progressing"
	ConditionDegraded    string = "Degraded"
	ConditionAvailable   string = "Available"
	ConditionTerminated  string = "Terminated"
)
View Source
const (
	// Name of this builder provider
	Name = "vsphere"

	Datacenter    = "Datacenter"
	DataStore     = "DataStore"
	Cluster       = "Cluster"
	Network       = "Network"
	VMFolder      = "VMFolder"
	TemplateImage = "TemplateImage"
	VMName        = "VMName"
	ResourcePool  = "ResourcePool"
	IpAddress     = "IpAddress"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	*v1alpha1.Environment
	// contains filtered or unexported fields
}

func New

func New(log *logger.FunLogger, env v1alpha1.Environment, cacheFile string) (*Provider, error)

func (*Provider) Create

func (p *Provider) Create() error

Create creates a VM on VSphere

func (*Provider) Delete

func (p *Provider) Delete() error

Delete deletes the Vsphere VM

func (*Provider) DryRun

func (p *Provider) DryRun() error

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the builder provisioner

func (*Provider) UpdateResourcesTags

func (p *Provider) UpdateResourcesTags(tags map[string]string, resources ...string) error

UpdateResourcesTags updates the tags of the specified resources

type Vsphere

type Vsphere struct {
	VmName        string
	TemplateImage string
	Cluster       string
	DataStore     string
	Datacenter    string
	Network       string
	VMFolder      string
	ResourcePool  string
	IpAddress     string
}

Jump to

Keyboard shortcuts

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