app

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAPI

type CAPI struct {
	ExternalAddr string `env:"CAPI_ADDR_EXTERNAL, required, report"`
	CAPath       string `env:"CAPI_CA_PATH,     required, report"`
	CommonName   string `env:"CAPI_COMMON_NAME, required, report"`
}

type CFAuthProxyApp

type CFAuthProxyApp struct {
	// contains filtered or unexported fields
}

func NewCFAuthProxyApp

func NewCFAuthProxyApp(cfg *Config, log *logger.Logger) *CFAuthProxyApp

func (*CFAuthProxyApp) DebugAddr

func (c *CFAuthProxyApp) DebugAddr() string

DebugAddr returns the address (host and port) that the debug server is bound to. If the debug server has not been started an empty string will be returned.

func (*CFAuthProxyApp) Run

func (c *CFAuthProxyApp) Run()

Run starts the CFAuthProxyApp, this is a blocking method call.

func (*CFAuthProxyApp) Stop

func (c *CFAuthProxyApp) Stop()

Stop stops all the subprocesses for the application.

type Config

type Config struct {
	MetricStoreAddr       string `env:"METRIC_STORE_ADDR, required, report"`
	Addr                  string `env:"ADDR, required, report"`
	InternalIP            string `env:"INTERNAL_IP, report"`
	HealthPort            int    `env:"HEALTH_PORT, report"`
	CertPath              string `env:"EXTERNAL_CERT, required, report"`
	KeyPath               string `env:"EXTERNAL_KEY, required, report"`
	SkipCertVerify        bool   `env:"SKIP_CERT_VERIFY, report"`
	ProxyCAPath           string `env:"PROXY_CA_PATH, required, report"`
	SecurityEventLog      string `env:"SECURITY_EVENT_LOG, report"`
	MetricStoreClientTLS  MetricStoreClientTLS
	MetricStoreMetricsTLS MetricStoreMetricsTLS

	CAPI CAPI
	UAA  UAA

	LogLevel string `env:"LOG_LEVEL,                      report"`
}

func LoadConfig

func LoadConfig() *Config

type MetricStoreClientTLS added in v1.3.0

type MetricStoreClientTLS struct {
	CertPath string `env:"METRIC_STORE_CLIENT_CERT_PATH, required, report"`
	KeyPath  string `env:"METRIC_STORE_CLIENT_KEY_PATH, required, report"`
}

type MetricStoreMetricsTLS added in v1.3.0

type MetricStoreMetricsTLS struct {
	CAPath   string `env:"METRIC_STORE_METRICS_CA_PATH, required, report"`
	CertPath string `env:"METRIC_STORE_METRICS_CERT_PATH, required, report"`
	KeyPath  string `env:"METRIC_STORE_METRICS_KEY_PATH, required, report"`
}

type UAA

type UAA struct {
	ClientID     string `env:"UAA_CLIENT_ID,     required"`
	ClientSecret string `env:"UAA_CLIENT_SECRET, required"`
	Addr         string `env:"UAA_ADDR,          required, report"`
	CAPath       string `env:"UAA_CA_PATH,       required, report"`
}

Jump to

Keyboard shortcuts

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