Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrMissingInFile = errors.New("Missing required argument -f") ErrMissingParameters = errors.New("Parameters not found in file") )
Functions ¶
func Generate ¶
Generate generates a cloud formation parameters file template and writes either to a file or stdout
func RecurseArray ¶
func RecurseArray(k string, slc []interface{}, container interface{})
RecurseArray converts types to supported types. Specifically interfaces stored in slices or the special case map[interface{}]interface{} yaml supports keys of arbitrary types whereas json does not, so we do this conversion to maintain compatibility between types
func RecurseMapInterface ¶
func RecurseMapInterface(m map[interface{}]interface{}, newMap map[string]interface{})
RecurseMapInterface converts types to supported types. Specifically interfaces stored in slices or the special case map[interface{}]interface{} yaml supports keys of arbitrary types whereas json does not, so we do this conversion to maintain compatibility between types
Types ¶
type Config ¶
type Config struct { InFile string OutFile string Minimize bool Indent int Overwrite bool RemoveOldParamsNotInTemplate bool OutYaml bool InYaml bool Verbose bool }
Config represents a config struct holding information about how to format output and where to write said output
func (*Config) GetParamList ¶
GetParamList takes the given config and generates a ParamList ([]Parameter)
type Parameter ¶
type Parameter struct { ParameterKey string ParameterValue string Type string `yaml:"-" json:"-"` Description string `yaml:"-" json:"-"` AllowedValues []interface{} `yaml:"-" json:"-"` Default interface{} `yaml:"-" json:"-"` AllowedPattern string `yaml:"-" json:"-"` }
Parameter represents a cloudformation Parameter