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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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