Back to godoc.org

Package terraform

v1.11.0
Latest Go to latest

The latest major version is .

Published: Dec 24, 2018 | License: Apache-2.0 | Module: github.com/liuxunorg/kops

Index

func SortLiterals

func SortLiterals(v []*Literal)

SortLiterals sorts a list of Literal, by key. It does so in-place

type Lifecycle

type Lifecycle struct {
	PreventDestroy      *bool `json:"prevent_destroy,omitempty"`
	CreateBeforeDestroy *bool `json:"create_before_destroy,omitempty"`
}

type Literal

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

func DedupLiterals

func DedupLiterals(v []*Literal) ([]*Literal, error)

DedupLiterals removes any duplicate Literals before returning the slice. As a side-effect, it currently returns the Literals in sorted order.

func LiteralExpression

func LiteralExpression(s string) *Literal

func LiteralFromStringValue

func LiteralFromStringValue(s string) *Literal

func LiteralProperty

func LiteralProperty(resourceType, resourceName, prop string) *Literal
func LiteralSelfLink(resourceType, resourceName string) *Literal

func (*Literal) MarshalJSON

func (l *Literal) MarshalJSON() ([]byte, error)

type TerraformTarget

type TerraformTarget struct {
	Cloud   fi.Cloud
	Region  string
	Project string

	ClusterName string
	// contains filtered or unexported fields
}

func NewTerraformTarget

func NewTerraformTarget(cloud fi.Cloud, region, project string, outDir string, clusterSpecTarget *kops.TargetSpec) *TerraformTarget

func (*TerraformTarget) AddFile

func (t *TerraformTarget) AddFile(resourceType string, resourceName string, key string, r fi.Resource) (*Literal, error)

func (*TerraformTarget) AddOutputVariable

func (t *TerraformTarget) AddOutputVariable(key string, literal *Literal) error

func (*TerraformTarget) AddOutputVariableArray

func (t *TerraformTarget) AddOutputVariableArray(key string, literal *Literal) error

func (*TerraformTarget) Finish

func (t *TerraformTarget) Finish(taskMap map[string]fi.Task) error

func (*TerraformTarget) ProcessDeletions

func (t *TerraformTarget) ProcessDeletions() bool

func (*TerraformTarget) RenderResource

func (t *TerraformTarget) RenderResource(resourceType string, resourceName string, e interface{}) error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier