config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingEnvironmentName missing Environment name configuration
	ErrMissingEnvironmentName = errors.New("Missing Environment Name ENV Variable")

	// ErrMissingEnvironmentNumber missing Environment number configuration
	ErrMissingEnvironmentNumber = errors.New("Missing Environment Number ENV Variable")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	StepHandler               string `envconfig:"STEP_HANDLER"`
	AwsRegion                 string `envconfig:"AWS_REGION"`
	EnvironmentName           string `envconfig:"ENVIRONMENT_NAME"`
	EnvironmentNumber         string `envconfig:"ENVIRONMENT_NUMBER"`
	SfnCodebuildJobMonitorArn string `envconfig:"SFN_CODEBUILD_JOB_MONITOR_ARN"`
	SfnAgentPollerArn         string `envconfig:"SFN_AGENT_POLLER_ARN"`
	AgentPoolSize             int    `envconfig:"AGENT_POOL_SIZE"`
}

Config for the environment

func New

func New() (*Config, error)

New instantiates a Config object with the set environmental variables

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks the presence of the loaded template path on the filesystem

Jump to

Keyboard shortcuts

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