googleconfig

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFileIfExists

func LoadConfigFileIfExists(dir string, file string) error

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

func LoadImportFileContent(name string) []byte

LoadImportFileContent Load import file contents.

func LoadSchemaForPath

func LoadSchemaForPath(name string) (bool, []byte)

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

Jump to

Keyboard shortcuts

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