configs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Regions = []string{"us-east-1", "us-east-2", "us-west-1", "us-west-2"}

Functions

func Coalesce added in v0.4.0

func Coalesce(arg *string, config *string, envvar *string, def *string) *string

Coalesce returns the first non-empty vluae, but takes into account a loading order, which is CLI args > environment variables > config file > some default

Types

type API

type API struct {
	Host     *string
	BasePath *string
	// Token for authenticating against the API
	// token is base64 encoded JSON, containing an STS token.
	Token *string `yaml:"token,omitempty"`
}

type DeployConfig added in v0.4.0

type DeployConfig struct {
	// UseCached, if true, tells DCE to use files already in the
	// `~/.dce/.cache` folder
	UseCached bool
	// DeployLocalPath, if set, specifies a path from which to pull
	// local resources
	DeployLocalPath string
	// BatchMode, if enabled, forces DCE to run non-interactively
	// and supplies Terraform with -auto-approve and input=false
	BatchMode bool
	// TFInitOptions are options passed along to `terraform init`
	TFInitOptions string
	// TFApplyOptions are options passed along to `terraform apply`
	TFApplyOptions string
	// SaveTFOptions, if yes, will save the provided terraform options to the config file.
	SaveTFOptions bool
}

DeployConfig holds configuration values for the `system deploy` command

type Root

type Root struct {
	API       API
	Region    *string
	Terraform Terraform
}

Root contains config

type Terraform added in v0.4.0

type Terraform struct {
	Bin            *string
	Source         *string
	TFInitOptions  *string `yaml:"initOptions,omitempty"`
	TFApplyOptions *string `yaml:"applyOptions,omitempty"`
}

Terraform contains configuration for the underlying terraform command used to provision the DCE infrastructure.

Jump to

Keyboard shortcuts

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