Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFileIfExists ¶
LoadConfigFileIfExists Search backwards from the current directory for a furnace config file with the given prefix of `file`. If found, the Configuration `Config` will be loaded with values gathered from the file described by that config. If none is found, nothing happens. The default file remains loaded.
returns an error if the file is not found.
func LoadGoogleStackConfig ¶
func LoadGoogleStackConfig() []byte
LoadGoogleStackConfig Loads the google stack configuration file.
func LoadImportFileContent ¶
LoadImportFileContent Load import file contents.
func LoadSchemaForPath ¶
LoadSchemaForPath returns the content of possible schema files.
Types ¶
type Configuration ¶
type Configuration struct { Main struct { ProjectName string `yaml:"project_name"` Spinner int `yaml:"spinner"` } `yaml:"main"` Gcp struct { TemplateName string `yaml:"template_name"` StackName string `yaml:"stack_name"` } `yaml:"gcp"` }
Configuration object with all the properties that GCP needs.
var Config Configuration
Config is the loaded configuration entity.
func (*Configuration) LoadConfiguration ¶
func (c *Configuration) LoadConfiguration(configFile string)
LoadConfiguration loads a yaml file which sets fields for Configuration struct