terraform

package
v0.0.0-...-3e35b49 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig struct {
	KeyId     string
	SecretKey string
}

type Config

type Config struct {
	Dir      string
	State    string
	VarsFile string
	Vars     *TerraformVars
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(dir string, state string, pubKey string, settings *configuration.InputVars) *Config

func (*Config) Apply

func (config *Config) Apply() error

func (*Config) Destroy

func (config *Config) Destroy() error

func (*Config) GenerateVarsFile

func (config *Config) GenerateVarsFile(filePath string)

func (*Config) InitTerraform

func (config *Config) InitTerraform() error

func (*Config) Plan

func (config *Config) Plan() error

func (*Config) Validate

func (config *Config) Validate() error

type NodeCounts

type NodeCounts struct {
	Master int
	Infra  int
	App    int
}

type NodeTypes

type NodeTypes struct {
	Bastion string
	Master  string
	Infra   string
	App     string
}

type TerraformVars

type TerraformVars struct {
	ProjectName string
	ProjectId   string
	PublicKey   string
	Zone        string
	Region      string

	Counts NodeCounts
	Types  NodeTypes

	EnableEfs  bool
	EncryptEfs bool

	RegistryS3 bool

	ClusterId string
}

func CreateConfig

func CreateConfig(vars *configuration.InputVars, publicKey string) *TerraformVars

func (*TerraformVars) GenerateJson

func (config *TerraformVars) GenerateJson() []byte

func (*TerraformVars) WriteFile

func (config *TerraformVars) WriteFile(filename string)

Jump to

Keyboard shortcuts

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