Documentation ¶
Index ¶
- func SortLiterals(v []*Literal)
- type Lifecycle
- type Literal
- func DedupLiterals(v []*Literal) ([]*Literal, error)
- func LiteralFileExpression(modulePath string, base64 bool) *Literal
- func LiteralFromStringValue(s string) *Literal
- func LiteralProperty(resourceType, resourceName, prop string) *Literal
- func LiteralSelfLink(resourceType, resourceName string) *Literal
- type TerraformTarget
- func (t *TerraformTarget) AddFile(resourceType string, resourceName string, key string, r fi.Resource, ...) (*Literal, error)
- func (t *TerraformTarget) AddOutputVariable(key string, literal *Literal) error
- func (t *TerraformTarget) AddOutputVariableArray(key string, literal *Literal) error
- func (t *TerraformTarget) Finish(taskMap map[string]fi.Task) error
- func (t *TerraformTarget) ProcessDeletions() bool
- func (t *TerraformTarget) RenderResource(resourceType string, resourceName string, e interface{}) error
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortLiterals ¶ added in v1.10.0
func SortLiterals(v []*Literal)
SortLiterals sorts a list of Literal, by key. It does so in-place
Types ¶
type Literal ¶
type Literal struct { // Value is only used in terraform 0.11 and represents the literal string to use as a value. // "${}" interpolation is supported. Value string `cty:"value"` // The below fields are only used in terraform 0.12. // ResourceType represents the type of a resource in a literal reference ResourceType string `cty:"resource_type"` // ResourceName represents the name of a resource in a literal reference ResourceName string `cty:"resource_name"` // ResourceProp represents the property of a resource in a literal reference ResourceProp string `cty:"resource_prop"` // FilePath represents the path for a file() reference FilePath string `cty:"file_path"` }
Literal represents a literal in terraform syntax
func DedupLiterals ¶ added in v1.10.0
DedupLiterals removes any duplicate Literals before returning the slice. As a side-effect, it currently returns the Literals in sorted order.
func LiteralFileExpression ¶ added in v1.18.0
func LiteralFromStringValue ¶
func LiteralProperty ¶
func LiteralSelfLink ¶
func (*Literal) MarshalJSON ¶
type TerraformTarget ¶
type TerraformTarget struct { Cloud fi.Cloud Region string Project string ClusterName string Version Version // contains filtered or unexported fields }
func NewTerraformTarget ¶
func NewTerraformTarget(cloud fi.Cloud, region, project string, outDir string, version Version, clusterSpecTarget *kops.TargetSpec) *TerraformTarget
func (*TerraformTarget) AddOutputVariable ¶ added in v1.10.0
func (t *TerraformTarget) AddOutputVariable(key string, literal *Literal) error
func (*TerraformTarget) AddOutputVariableArray ¶ added in v1.10.0
func (t *TerraformTarget) AddOutputVariableArray(key string, literal *Literal) error
func (*TerraformTarget) ProcessDeletions ¶ added in v1.10.0
func (t *TerraformTarget) ProcessDeletions() bool
func (*TerraformTarget) RenderResource ¶
func (t *TerraformTarget) RenderResource(resourceType string, resourceName string, e interface{}) error
Click to show internal directories.
Click to hide internal directories.