Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClusterConfig ¶ added in v0.0.5
func LoadClusterConfig() (armometadata.ClusterConfig, error)
func LoadServiceURLs ¶ added in v0.0.5
func LoadServiceURLs(filePath string) (schema.IBackendServices, error)
Types ¶
type AuthenticationServerConfig ¶ added in v0.0.5
type Backend ¶
type Backend struct {
AuthenticationServer *AuthenticationServerConfig `mapstructure:"authenticationServer"`
Subscription string `mapstructure:"subscription"`
PulsarConfig *pulsarconfig.PulsarConfig `mapstructure:"pulsarConfig"`
Topic pulsarconnector.TopicName `mapstructure:"topic"`
}
type Config ¶
type Config struct {
Backend Backend `mapstructure:"backend"`
InCluster InCluster `mapstructure:"inCluster"`
}
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type InCluster ¶
type InCluster struct {
ServerUrl string `mapstructure:"serverUrl"`
ClusterName string `mapstructure:"clusterName"`
Account string `mapstructure:"account"`
AccessKey string `mapstructure:"accessKey"`
Resources []Resource `mapstructure:"resources"`
}
func (*InCluster) ValidateConfig ¶ added in v0.0.5
func (c *InCluster) ValidateConfig()
Click to show internal directories.
Click to hide internal directories.