config

package
v0.0.0-...-d5df3af Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigEnvVarName string = "CONFIG_SERVER_BROKER_CONFIG"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `yaml:"user"`
	Password string `yaml:"password"`
}

type CfConfig

type CfConfig struct {
	ApiUrl            string `yaml:"api_url"`
	SkipSslValidation bool   `yaml:"skip_ssl_validation"`
	CfUsername        string `yaml:"cf_username"`
	CfPassword        string `yaml:"cf_password"`
	UaaClientID       string `yaml:"uaa_client_id"`
	UaaClientSecret   string `yaml:"uaa_client_secret"`
}

type Config

type Config struct {
	ReleaseTag              string   `yaml:"config_server_release_tag"`
	Auth                    Auth     `yaml:"broker_auth"`
	ServiceName             string   `yaml:"service_name"`
	ServiceID               string   `yaml:"service_id"`
	BasicPlanId             string   `yaml:"basic_plan_id"`
	BasicPlanName           string   `yaml:"basic_plan_name"`
	CfConfig                CfConfig `yaml:"cloud_foundry_config"`
	Description             string   `yaml:"description"`
	LongDescription         string   `yaml:"long_description"`
	ProviderDisplayName     string   `yaml:"provider_display_name"`
	DocumentationURL        string   `yaml:"documentation_url"`
	SupportURL              string   `yaml:"support_url"`
	DisplayName             string   `yaml:"display_name"`
	IconImage               string   `yaml:"icon_image"`
	InstanceSpaceGUID       string   `yaml:"instance_space_guid"`
	InstanceDomain          string   `yaml:"instance_domain"`
	ConfigServerDownloadURI string   `yaml:"config_server_download_uri"`
}

func ParseConfig

func ParseConfig() (Config, error)

Jump to

Keyboard shortcuts

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