vsphere

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VSphere

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

VSphere represents the VSphere provisioner

func New

func New(config *configuration.Configuration) *VSphere

New instantiates a new vSphere provisioner

func (VSphere) Box

func (e VSphere) Box() *packr.Box

Box returns the box that has the files as binary data

func (VSphere) Destroy

func (e VSphere) Destroy() (err error)

Destroy runs terraform destroy in the project

func (*VSphere) DestroyMessage

func (e *VSphere) DestroyMessage() string

DestroyMessage return a custom provisioner message the user will see once the cluster is destroyed

func (*VSphere) Enterprise

func (e *VSphere) Enterprise() bool

Enterprise return a boolean indicating it is an enterprise provisioner

func (*VSphere) InitMessage

func (e *VSphere) InitMessage() string

InitMessage return a custom provisioner message the user will see once the cluster is ready to be updated

func (VSphere) Plan

func (e VSphere) Plan() (err error)

Plan runs a dry run execution

func (VSphere) Prepare

func (e VSphere) Prepare() error

Prepare the environment before running anything

func (*VSphere) SetTerraformExecutor

func (e *VSphere) SetTerraformExecutor(tf *tfexec.Terraform)

SetTerraformExecutor adds the terraform executor to this provisioner

func (*VSphere) TerraformExecutor

func (e *VSphere) TerraformExecutor() (tf *tfexec.Terraform)

TerraformExecutor returns the current terraform executor of this provisioner

func (VSphere) TerraformFiles

func (e VSphere) TerraformFiles() []string

TerraformFiles returns the list of files conforming the terraform project

func (VSphere) Update

func (e VSphere) Update() (string, error)

Update runs terraform apply in the project

func (*VSphere) UpdateMessage

func (e *VSphere) UpdateMessage() string

UpdateMessage return a custom provisioner message the user will see once the cluster is updated

Jump to

Keyboard shortcuts

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