gcp

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCP

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

GCP represents a dummy provisioner

func New

func New(config *configuration.Configuration) *GCP

New instantiates a new GCP provisioner

func (GCP) Box

func (d GCP) Box() *packr.Box

Box returns the box that has the files as binary data

func (GCP) Destroy

func (d GCP) Destroy() (err error)

Destroy runs terraform destroy in the project

func (*GCP) DestroyMessage

func (d *GCP) DestroyMessage() string

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

func (*GCP) Enterprise

func (d *GCP) Enterprise() bool

Enterprise return a boolean indicating it is an enterprise provisioner

func (*GCP) InitMessage

func (d *GCP) InitMessage() string

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

func (GCP) Plan

func (d GCP) Plan() (err error)

Plan runs a dry run execution

func (*GCP) SetTerraformExecutor

func (d *GCP) SetTerraformExecutor(tf *tfexec.Terraform)

SetTerraformExecutor adds the terraform executor to this provisioner

func (*GCP) TerraformExecutor

func (d *GCP) TerraformExecutor() (tf *tfexec.Terraform)

TerraformExecutor returns the current terraform executor of this provisioner

func (GCP) TerraformFiles

func (d GCP) TerraformFiles() []string

TerraformFiles returns the list of files conforming the terraform project

func (GCP) Update

func (d GCP) Update() (err error)

Update runs terraform apply in the project

func (*GCP) UpdateMessage

func (d *GCP) 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