configuration

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NAME_MIN_LENGTH = 4

Variables

View Source
var Verbose bool

Functions

This section is empty.

Types

type AwsConfiguration

type AwsConfiguration struct {
	Region    string `yaml:"Region"`
	KeyId     string `yaml:"KeyId"`
	SecretKey string `yaml:"SecretKey"`
}

type CmdFlags

type CmdFlags struct {
	Debug bool

	ProjectId   string
	ProjectName string

	AwsConfig struct {
		Region    string
		KeyId     string
		SecretKey string
	}

	ConfigFile string

	SkipTerraform bool
	SkipConfig    bool
	SkipPre       bool
	Verbose       bool
}

func ParseFlags

func ParseFlags() CmdFlags

type InputVars

type InputVars struct {
	Debug bool `yaml:"Debug"`

	ProjectName string `yaml:"ProjectName"`
	ProjectId   string `yaml:"ProjectId"`

	Domain    string `yaml:"Domain"`
	ClusterId string `yaml:"ClusterId"`

	AggregatedLogging bool `yaml:"AggregatedLogging"`
	ClusterMetrics    bool `yaml:"ClusterMetrics"`

	Storage    StorageConfig   `yaml:"Storage"`
	NodeCounts NodeCountConfig `yaml:"NodeCounts"`

	NodeTypes NodeTypeConfig `yaml:"NodeTypes"`

	RegistryToS3 bool `yaml:"RegistryToS3"`

	AwsConfig AwsConfiguration `yaml:"AwsConfig"`
}

func DefaultConfig

func DefaultConfig() *InputVars

func LoadConfigFromFile

func LoadConfigFromFile(filename string) *InputVars

func ParseInputVars

func ParseInputVars(config []byte) *InputVars

func (*InputVars) MergeCmdFlags

func (vars *InputVars) MergeCmdFlags(flags CmdFlags)

func (*InputVars) Validate

func (vars *InputVars) Validate() error

type NodeCountConfig

type NodeCountConfig struct {
	Master int `yaml:"Master"`
	Infra  int `yaml:"Infra"`
	App    int `yaml:"App"`
}

type NodeTypeConfig

type NodeTypeConfig struct {
	Bastion string `yaml:"Bastion"`
	Master  string `yaml:"Master"`
	Infra   string `yaml:"Infra"`
	App     string `yaml:"App"`
}

type StorageConfig

type StorageConfig struct {
	EnableEfs  bool `yaml:"EnableEfs"`
	EncryptEfs bool `yaml:"EncryptEfs"`

	EnableEbs  bool `yaml:"EnableEbs"`
	EncryptEbs bool `yaml:"EncryptEbs"`

	Default string `yaml:"Default"`
}

Jump to

Keyboard shortcuts

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