plan

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(p *Plan) error

Print prints a plan

Types

type AWSBackend added in v0.21.0

type AWSBackend struct {
	AccountName string  `yaml:"account_name"`
	Profile     string  `yaml:"profile"`
	Region      string  `yaml:"region"`
	Bucket      string  `yaml:"bucket"`
	DynamoTable *string `yaml:"dynamo_table"`
}

AWSConfiguration represents aws configuration

type AWSProfile added in v0.16.5

type AWSProfile struct {
	Name string
	ID   int64
	Role string
}

type AWSProvider added in v0.21.0

type AWSProvider struct {
	AccountID         int64    `yaml:"account_id"`
	Profile           string   `yaml:"profile"`
	Version           string   `yaml:"version"`
	Region            string   `yaml:"region"`
	AdditionalRegions []string `yaml:"additional_regions"`
}

type Account added in v0.15.3

type Account struct {
	ComponentCommon `yaml:",inline"`

	AllAccounts map[string]int64 `yaml:"all_accounts"`
	AccountName string           `yaml:"account_name"`
}

Account is an account

type Common added in v0.14.0

type Common struct {
	Docker             bool   `yaml:"docker"`
	DockerImageVersion string `yaml:"docker_image_version"`
	PathToRepoRoot     string `yaml:"path_to_repo_root"`
	TerraformVersion   string `yaml:"terraform_version"`
}

Common represents common fields

type Component

type Component struct {
	ComponentCommon `yaml:",inline"`

	Accounts  map[string]Account // Reference accounts for remote state
	Component string
	EKS       *v1.EKSConfig `yaml:"eks,omitempty"`
	Env       string

	Kind            *v1.ComponentKind `yaml:"kind,omitempty"`
	ModuleSource    *string           `yaml:"module_source"`
	OtherComponents []string          `yaml:"other_components"`
}

Component is a component

type ComponentCommon added in v0.21.0

type ComponentCommon struct {
	Common `yaml:",inline"`

	Backend   AWSBackend        `yaml:"backend"`
	ExtraVars map[string]string `yaml:"extra_vars"`
	Owner     string
	Project   string
	Providers Providers `yaml:"providers"`
	TfLint    TfLint
}

type Env

type Env struct {
	Components map[string]Component
	Env        string
	EKS        *v1.EKSConfig //TODO get rid of this
}

Env is an env

type Module

type Module struct {
	Common `yaml:",inline"`
}

Module is a module

type Plan

type Plan struct {
	Accounts map[string]Account
	Envs     map[string]Env
	Global   Component
	Modules  map[string]Module
	TravisCI TravisCI
	Version  string
}

Plan represents a set of actions to take

func Eval

func Eval(c *v2.Config) (*Plan, error)

Eval evaluates a config

type Providers added in v0.21.0

type Providers struct {
	AWS       *AWSProvider       `yaml:"aws"`
	Snowflake *SnowflakeProvider `yaml:"snowflake"`
}

type SnowflakeProvider added in v0.21.0

type SnowflakeProvider struct {
	Account string `yaml:"account,omitempty"`
	Role    string `yaml:"role,omitempty"`
	Region  string `yaml:"region,omitempty"`
}

type TfLint added in v0.14.0

type TfLint struct {
	Enabled bool
}

TfLint containts a plan for running tflint

type TravisCI added in v0.16.5

type TravisCI struct {
	AWSProfiles []AWSProfile
	Docker      bool
	Enabled     bool
	FoggVersion string
	TestBuckets [][]string
}

Jump to

Keyboard shortcuts

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