Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.