Discover Packages
github.com/evoila/infratesture
config
package
Version:
v0.0.0-...-4951e04
Opens a new window with list of versions in this module.
Published: Mar 10, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Bosh struct {
UaaUrl string `yaml:"uaa_url"`
DirectorUrl string `yaml:"director_url"`
UaaClient string `yaml:"uaa_client"`
UaaClientSecret string `yaml:"uaa_client_secret"`
Ca string `yaml:"ca"`
}
type Config struct {
DeploymentName string `yaml:"deployment_name"`
Github Github `yaml:"github"`
Service Service `yaml:"service"`
Testing Testing `yaml:"testing"`
Bosh Bosh `yaml:"bosh"`
}
Parse the content of a configuration file to the above go structs
@param path Path to the configuration file
@return config Config struct containing the information from the configuration file
type Credentials struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
Certificate string `yaml:"certificate"`
Token string `yaml:"token"`
}
type Github struct {
TestRepo string `yaml:"test_repo"`
Tag string `yaml:"tag"`
SavingLocation string `yaml:"saving_location""`
RepoName string `yaml:"repo_name""`
}
type Service struct {
Name string `yaml:"name"`
Port int `yaml:"port"`
Credentials Credentials `yaml:"credentials"`
}
type Test struct {
Name string `yaml:"name"`
Properties map[string ]string `yaml:"properties"`
}
type Testing struct {
Infrastructure string `yaml:"infrastructure"`
Tests []Test `yaml:"tests"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.