config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigEnvVarName string = "SCS_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 {
	Auth                Auth      `yaml:"broker_auth"`
	BrokerName          string    `yaml:"broker_name"`
	BrokerID            string    `yaml:"broker_id"`
	ArtifactsDir        string    `yaml:"artifacts_directory"`
	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"`
	Services            []Service `yaml:"services"`
}

func ParseConfig

func ParseConfig() (Config, error)

type Service

type Service struct {
	ServiceName        string `yaml:"service_name"`
	ServiceID          string `yaml:"service_id"`
	ServicePlanID      string `yaml:"service_plan_id"`
	ServicePlanName    string `yaml:"service_plan_name"`
	ServiceDescription string `yaml:"service_description"`
	ServiceDownloadURI string `yaml:"service_download_uri"`
}

Jump to

Keyboard shortcuts

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