tfmain

package
v0.0.0-...-bed0df6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorPrefix  = "e:"
	OutputPrefix = "o:"
)
View Source
const (
	// EnvCLI is the environment variable name to set additional CLI args.
	EnvCLI = "TF_CLI_ARGS"
)
View Source
const Version = terraform.Version

Variables

Commands is the mapping of all the available Terraform commands.

View Source
var GitCommit string

The git commit that was compiled. This will be filled in by the compiler.

View Source
var PluginOverrides command.PluginOverrides

PluginOverrides are paths that override discovered plugins, set from the config file.

View Source
var PlumbingCommands map[string]struct{}
View Source
var Ui cli.Ui

Ui is the cli.Ui used for communicating to the outside world.

View Source
var VersionPrerelease = terraform.VersionPrerelease

Functions

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the configuration directory for Terraform.

func ConfigFile

func ConfigFile() (string, error)

ConfigFile returns the default path to the configuration file.

On Unix-like systems this is the ".terraformrc" file in the home directory. On Windows, this is the "terraform.rc" file in the application data directory.

func HackedMain

func HackedMain(args []string) int

Types

type Config

type Config struct {
	Providers    map[string]string
	Provisioners map[string]string

	DisableCheckpoint          bool `hcl:"disable_checkpoint"`
	DisableCheckpointSignature bool `hcl:"disable_checkpoint_signature"`
}

Config is the structure of the configuration for the Terraform CLI.

This is not the configuration for Terraform itself. That is in the "config" package.

var BuiltinConfig Config

BuiltinConfig is the built-in defaults for the configuration. These can be overridden by user configurations.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig loads the CLI configuration from ".terraformrc" files.

func (*Config) Merge

func (c1 *Config) Merge(c2 *Config) *Config

Merge merges two configurations and returns a third entirely new configuration with the two merged.

Jump to

Keyboard shortcuts

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