Documentation ¶
Index ¶
- Constants
- func FuncMap(ctx context.Context, stateLoc string) (template.FuncMap, error)
- func FuncMapWithName(ctx context.Context, name string, stateLoc string) (template.FuncMap, error)
- func MustFuncMap(ctx context.Context, stateLoc string) template.FuncMap
- func MustFuncMapWithName(ctx context.Context, name string, stateLoc string) template.FuncMap
- type Object
- type TFState
Constants ¶
View Source
const (
StateVersion = 4
)
Variables ¶
This section is empty.
Functions ¶
func FuncMap ¶ added in v0.0.12
FuncMap provides a tamplate.FuncMap tfstate based on URL and provide
func FuncMapWithName ¶ added in v0.0.12
FuncMapWithName provides a tamplate.FuncMap. can lockup values from tfstate.
func MustFuncMap ¶ added in v0.0.12
MustFuncMap is similar to FuncMap, but panics if it cannot get and parse tfstate.
Types ¶
type Object ¶ added in v0.0.2
type Object struct {
Value interface{}
}
type TFState ¶
type TFState struct {
// contains filtered or unexported fields
}
TFState represents a tfstate
func ReadFile ¶ added in v0.0.3
ReadFile reads terraform.tfstate from the file (a workspace reads from environment file in the same directory)
func ReadWithWorkspace ¶ added in v0.0.3
ReadWithWorkspace reads a tfstate from io.Reader with workspace
Click to show internal directories.
Click to hide internal directories.