param

package
v0.0.0-...-215933a Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	resource.Status

	Val interface{}
}

Param controls parameter flow inside execution

func (*Param) Apply

func (p *Param) Apply() (resource.TaskStatus, error)

Apply doesn't do anything since params are final values

func (*Param) Check

Check just returns the current value of the parameter. It should never have to change.

func (*Param) String

func (p *Param) String() string

String is the final value of this Param

type Preparer

type Preparer struct {
	// Default is an optional field that provides a default value if none is
	// provided to this parameter. If this field is not set, this param will be
	// treated as required.
	Default interface{} `hcl:"default"`
}

Preparer for params

Param controls the flow of values through `module` calls. You can use the `{{param "name"}}` template call anywhere you need the value of a param inside the current module.

func (*Preparer) Prepare

func (p *Preparer) Prepare(render resource.Renderer) (resource.Task, error)

Prepare a new task

Jump to

Keyboard shortcuts

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