conf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig added in v0.3.0

type AwsConfig struct {
	Region   string
	Profile  string
	Endpoint string
}

type Config

type Config struct {
	Name       string
	Path       string
	Body       string
	Parameters map[string]string
	Tags       map[string]string `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
	DependsOn  []string          `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
	Blocked    []string          `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
	Hooks      struct {
		Pre        HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
		Post       HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
		PreCreate  HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
		PostCreate HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
		PreUpdate  HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
		PostUpdate HookCmds `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
	} `json:",omitempty" yaml:",omitempty" toml:",omitempty"`

	RollbackConfiguration *cloudformation.RollbackConfiguration `json:",omitempty" yaml:",omitempty" toml:",omitempty"`

	Capabilities []string       `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
	Settings     settingsConfig `json:",omitempty" yaml:",omitempty" toml:",omitempty"`

	Stacks map[string]Config `json:",omitempty" yaml:",omitempty" toml:",omitempty"`
}

Config is a struct holding stacks configurations

func LoadConfig

func LoadConfig(cfgFiles []string) (Config, error)

func (Config) ChangeSet added in v0.3.0

func (cfg Config) ChangeSet() *awscf.ChangeSet

func (Config) ChangeSets

func (cfg Config) ChangeSets() ([]*awscf.ChangeSet, error)

func (Config) Stack added in v0.3.0

func (cfg Config) Stack() *awscf.Stack

func (Config) StackConfigsSortedByExecOrder

func (cfg Config) StackConfigsSortedByExecOrder() ([]Config, error)

type HookCmds

type HookCmds []hookCmd

func (HookCmds) Exec

func (h HookCmds) Exec() error

type HookError

type HookError struct {
	// contains filtered or unexported fields
}

func (*HookError) Error

func (e *HookError) Error() string

Jump to

Keyboard shortcuts

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