config

package
v0.0.0-...-4951e04 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bosh

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

type Config struct {
	DeploymentName string  `yaml:"deployment_name"`
	Github         Github  `yaml:"github"`
	Service        Service `yaml:"service"`
	Testing        Testing `yaml:"testing"`
	Bosh           Bosh    `yaml:"bosh"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

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

type Credentials struct {
	Username    string `yaml:"username"`
	Password    string `yaml:"password"`
	Certificate string `yaml:"certificate"`
	Token       string `yaml:"token"`
}

type Github

type Github struct {
	TestRepo       string `yaml:"test_repo"`
	Tag            string `yaml:"tag"`
	SavingLocation string `yaml:"saving_location""`
	RepoName       string `yaml:"repo_name""`
}

type Service

type Service struct {
	Name        string      `yaml:"name"`
	Port        int         `yaml:"port"`
	Credentials Credentials `yaml:"credentials"`
}

type Test

type Test struct {
	Name       string            `yaml:"name"`
	Properties map[string]string `yaml:"properties"`
}

type Testing

type Testing struct {
	Infrastructure string `yaml:"infrastructure"`
	Tests          []Test `yaml:"tests"`
}

Jump to

Keyboard shortcuts

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