Documentation
¶
Index ¶
Constants ¶
View Source
const ( BasicAuthRealm = "NPSB Network Policy Service Broker" LabelNameType = "npsb.type" LabelValueTypeSrc = "source" LabelValueTypeDest = "destination" LabelNameName = "npsb.source.name" AnnotationNameDesc = "npsb.source.description" LabelNameSourceName = "npsb.dest.source.name" LabelNameSourceSpace = "npsb.dest.source.space" LabelNameSourceOrg = "npsb.dest.source.org" LabelNamePort = "npsb.dest.port" LabelNameProtocol = "npsb.dest.protocol" LabelValueProtocolTCP = "tcp" LabelValueProtocolUDP = "udp" ActionBind = "create" ActionUnbind = "delete" )
Variables ¶
View Source
var ( Debug = false CredhubURL = os.Getenv("CREDHUB_URL") Catalog model.Catalog ListenPort int SyncIntervalSecs int ClientId = os.Getenv("CLIENT_ID") ClientSecret = os.Getenv("CLIENT_SECRET") BrokerUser = os.Getenv("BROKER_USER") BrokerPassword = os.Getenv("BROKER_PASSWORD") CatalogDir = os.Getenv("CATALOG_DIR") ListenPortStr = os.Getenv("LISTEN_PORT") SyncIntervalSecsStr = os.Getenv("SYNC_INTERVAL_SECS") CfApiURL = os.Getenv("CFAPI_URL") UaaApiURL = os.Getenv("UAA_URL") SkipSslValidationStr = os.Getenv("SKIP_SSL_VALIDATION") SkipSslValidation bool CfClient *client.Client CfConfig *config.Config CfCtx = context.Background() AllLabelNames = []string{LabelNameType, LabelNameName, LabelNameSourceName, LabelNameSourceSpace, LabelNameSourceOrg, LabelNamePort, LabelNameProtocol} )
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
Click to show internal directories.
Click to hide internal directories.