terraform

package
v0.0.0-...-a80b3ab Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

View Source
var InternalProviders = map[string]plugin.ProviderFunc{
	"aws":      provideraws.Provider,
	"random":   providerrandom.Provider,
	"tls":      providertls.Provider,
	"tarmak":   providertarmak.Provider,
	"awstag":   providerawstag.Provider,
	"template": providertemplate.Provider,
}

Functions

func Apply

func Apply(args []string, stopCh <-chan struct{}) int

func Destroy

func Destroy(args []string, stopCh <-chan struct{}) int

func Fmt

func Fmt(args []string, stopCh <-chan struct{}) int

func Init

func Init(args []string, stopCh <-chan struct{}) int

func InternalPlugin

func InternalPlugin(args []string) int

passthrough parameters

func MapToTerraformTfvars

func MapToTerraformTfvars(input map[string]interface{}) (output string, err error)

convert interface map to terraform.tfvars format

func Output

func Output(args []string, stopCh <-chan struct{}) int

func Plan

func Plan(args []string, stopCh <-chan struct{}) int

func Taint

func Taint(args []string, stopCh <-chan struct{}) int

func Unlock

func Unlock(args []string, stopCh <-chan struct{}) int

func Validate

func Validate(args []string, stopCh <-chan struct{}) int

Types

type Terraform

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

func New

func New(tarmak interfaces.Tarmak) *Terraform

func (*Terraform) Apply

func (t *Terraform) Apply(cluster interfaces.Cluster) (hasChanged bool, err error)

func (*Terraform) Cleanup

func (t *Terraform) Cleanup() error

func (*Terraform) Destroy

func (t *Terraform) Destroy(cluster interfaces.Cluster) error

func (*Terraform) ForceUnlock

func (t *Terraform) ForceUnlock(cluster interfaces.Cluster, lockID string) error

func (*Terraform) GenerateCode

func (t *Terraform) GenerateCode(c interfaces.Cluster) (err error)

func (*Terraform) Output

func (t *Terraform) Output(c interfaces.Cluster) (map[string]interface{}, error)

func (*Terraform) Plan

func (t *Terraform) Plan(cluster interfaces.Cluster, preApply bool) (changesNeeded bool, err error)

func (*Terraform) Prepare

func (t *Terraform) Prepare(cluster interfaces.Cluster) error

func (*Terraform) ResetTerraformWrapper

func (t *Terraform) ResetTerraformWrapper()

this method resets the socket path and the prepare step you need to call this method when you do multiple Terraform runs of different clusters

func (*Terraform) Shell

func (t *Terraform) Shell(cluster interfaces.Cluster) error

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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