envs

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConcourseCIEnv = Environment{
	Protocol:       "https",
	TestingProject: "concoursecitesting01",
	ImageName:      "busybox",
	ImageTag:       "latest",
	CAFile:         "../../../ca.crt",
	KeyFile:        "../../../key.crt",
	CertFile:       "../../../cert.crt",
	Account:        "cody",
	Password:       "Admin!23",
	Admin:          "admin",
	AdminPass:      "pksxgxmifc0cnwa5px9h",
	Hostname:       "10.112.122.1",
}

ConcourseCIEnv : Env for concourse pipeline

View Source
var ConcourseCILdapEnv = Environment{
	Protocol:       "https",
	TestingProject: "concoursecitesting01",
	ImageName:      "busybox",
	ImageTag:       "latest",
	CAFile:         "../../../ca.crt",
	KeyFile:        "../../../key.crt",
	CertFile:       "../../../cert.crt",
	Account:        "mike",
	Password:       "zhu88jie",
	Admin:          "admin",
	AdminPass:      "pksxgxmifc0cnwa5px9h",
	Hostname:       "30.0.0.3",
}

ConcourseCILdapEnv : Ldap env for concourse pipeline

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Protocol       string //env var: HTTP_PROTOCOL
	Hostname       string //env var: TESTING_ENV_HOSTNAME
	Account        string //env var: TESTING_ENV_ACCOUNT
	Password       string //env var: TESTING_ENV_PASSWORD
	Admin          string //env var: TESTING_ENV_ADMIN
	AdminPass      string //env var: TESTING_ENV_ADMIN_PASS
	TestingProject string //env var: TESTING_PROJECT_NAME
	ImageName      string //env var: TESTING_IMAGE_NAME
	ImageTag       string //env var: TESTING_IMAGE_TAG
	CAFile         string //env var: CA_FILE_PATH
	CertFile       string //env var: CERT_FILE_PATH
	KeyFile        string //env var: KEY_FILE_PATH
	ProxyURL       string //env var: http_proxy, https_proxy, HTTP_PROXY, HTTPS_PROXY

	//API client
	HTTPClient *client.APIClient

	//Docker client
	DockerClient *client.DockerClient
	// contains filtered or unexported fields
}

Environment keeps the testing env info

func (*Environment) Load

func (env *Environment) Load() error

Load test env info

func (*Environment) RootURI

func (env *Environment) RootURI() string

RootURI : The root URI like https://<hostname>

Jump to

Keyboard shortcuts

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