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 LoadDoStackConfig ¶
func LoadDoStackConfig() []byte
LoadDoStackConfig Loads the digital ocean stack configuration file.
Types ¶
type Configuration ¶
type Configuration struct { Do struct { TemplateName string `yaml:"template_name"` StackName string `yaml:"stack_name"` Token string `yaml:"token"` } `yaml:"do"` }
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
Click to show internal directories.
Click to hide internal directories.