cfg

package
v0.0.0-...-7ca00ca Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileUAABaseURL      = "uaaBaseURL"
	FileUAAClientName   = "clientName"
	FileUAAClientSecret = "clientSecret"
	FileUAACA           = "uaaCA"
	FileCCBaseURL       = "ccBaseURL"
	FileCCCA            = "ccCA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UAA struct {
		// Base URL for UAA, e.g. uaa.sys.example.com or uaa.cf.system.internal
		BaseURL string

		// UAA client name to use when acquiring a token for accessing Cloud Controller
		ClientName string

		// Client secret matching the client name
		ClientSecret string

		// Certificate authority that signed the UAA server cert
		CA *x509.CertPool
	}

	CC struct {
		// Base URL for Cloud Controller, e.g. api.sys.example.com or api.cf.system.internal
		BaseURL string

		// Certificate authority that signed the Cloud Controller server cert
		CA *x509.CertPool
	}

	Istio struct {
		// List of Istio Gateway names to use for workload ingress
		Gateways []string
	}
}

func Load

func Load(configDir string) (*Config, error)

Load loads a Config from environment variables or files within a directory on disk When running inside a K8s Cluster, this directory should probably be a volume mount of a K8s Secret

Jump to

Keyboard shortcuts

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