acceptance

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTLSConfig

func NewTLSConfig(caPath, certPath, keyPath, cn string) (*tls.Config, error)

func NewTLSCredentials

func NewTLSCredentials(
	caPath string,
	certPath string,
	keyPath string,
	cn string,
) (credentials.TransportCredentials, error)

Types

type TLS

type TLS struct {
	CAPath   string `env:"CA_PATH,   required, report"`
	CertPath string `env:"CERT_PATH, required, report"`
	KeyPath  string `env:"KEY_PATH,  required, report"`
}

func (TLS) Credentials

func (t TLS) Credentials(cn string) credentials.TransportCredentials

type TestConfig

type TestConfig struct {
	MetricStoreAddr           string `env:"METRIC_STORE_ADDR,    required, report"`
	MetricStoreCFAuthProxyURL string `env:"METRIC_STORE_CF_AUTH_PROXY_URL,  required, report"`

	TLS TLS

	UAAURL       string `env:"UAA_URL, required, report"`
	ClientID     string `env:"CLIENT_ID, required, report"`
	ClientSecret string `env:"CLIENT_SECRET, required, noreport"`

	SkipCertVerify bool `env:"SKIP_CERT_VERIFY, report"`
}

func Config

func Config() *TestConfig

func LoadConfig

func LoadConfig() (*TestConfig, error)

Jump to

Keyboard shortcuts

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