hcl

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MPL-2.0 Imports: 10 Imported by: 15

Documentation

Index

Constants

View Source
const ConfigFilename = "rt.hcl.tpl"

Variables

This section is empty.

Functions

func DecodeHCLFromTemplate

func DecodeHCLFromTemplate(templateReader io.Reader, variables interface{}) (map[string]interface{}, error)

Types

type DeploymentState

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

func (*DeploymentState) Iterator

func (ds *DeploymentState) Iterator() []map[string]interface{}

type HclConfig

type HclConfig struct {
	DeploymentState *DeploymentState
	RemoteState     *RemoteState
}

func LoadConfigFromPath

func LoadConfigFromPath(env, awsAccId, cfgPath string) (*HclConfig, string, error)

func ParseConfig

func ParseConfig(configReader io.Reader, variables interface{}) (*HclConfig, error)

TODO: Make templating optional

type RemoteState

type RemoteState struct {
	Backend string
	Config  map[string]string
}

type TemplateVariables

type TemplateVariables struct {
	Environment  string
	AwsAccountId string
}

Jump to

Keyboard shortcuts

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