configs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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 Deploy added in v0.5.0

type Deploy struct {
	// Path to the DCE repo to deploy
	// May be a local file path (eg. /path/to/dce)
	// or a github repo (eg. github.com/Optum/dce)
	Location *string `yaml:"location,omitempty"`
	// Version of DCE to deploy, eg 0.12.3
	Version *string `yaml:"version,omitempty"`
	// Deployment logs will be written to this location
	LogFile *string `yaml:"logFile,omitempty"`
	// AWS Region in which to deploy DCE
	AWSRegion *string `yaml:"region,omitempty"`
	// Namespace used as naming suffix for AWS resources
	Namespace                   *string `yaml:"namespace,omitempty"`
	BudgetNotificationFromEmail *string `yaml:"budgetNotificationFromEmail,omitempty"`
}

type Root

type Root struct {
	API       API
	Region    *string
	Deploy    Deploy `yaml:"deploy,omitempty"`
	Terraform Terraform
}

Root contains config

type Terraform added in v0.4.0

type Terraform struct {
	Bin            *string
	Source         *string // URL from which the Terraform release was downloaded
	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