conf

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BasicAuthRealm = "PCSB Panzer Credhub Service Broker"

Variables

View Source
var (
	Debug = false

	HttpTimeout        int
	HttpTimeoutDefault = 10
	ClientId           = os.Getenv("CSB_CLIENT_ID")
	ClientSecret       string // will be resolved from config in credhub path CredhubCredsPath
	CredhubURL         = os.Getenv("CSB_CREDHUB_URL")

	Catalog    model.Catalog
	ListenPort int

	BrokerUser           = os.Getenv("CSB_BROKER_USER")
	BrokerPassword       string // will be resolved from config in credhub path CredhubCredsPath
	CatalogDir           = os.Getenv("CSB_CATALOG_DIR")
	ListenPortStr        = os.Getenv("CSB_LISTEN_PORT")
	CfApiURL             = os.Getenv("CSB_CFAPI_URL")
	UaaApiURL            = os.Getenv("CSB_UAA_URL")
	SkipSslValidationStr = os.Getenv("CSB_SKIP_SSL_VALIDATION")
	SkipSslValidation    bool
	CredhubCredsPath     = os.Getenv("CREDHUB_CREDS_PATH") // something like /credhub-service-broker/config
)
View Source
var COMMIT = "dev"
View Source
var VERSION = "0.0.0"

Functions

func EnvironmentComplete

func EnvironmentComplete()

EnvironmentComplete - Check for required environment variables and exit if not all are there.

func GetFormattedVersion

func GetFormattedVersion() string

func GetVersion

func GetVersion() string

Types

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Execute - returns the version

Jump to

Keyboard shortcuts

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