Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigProperties ¶
func AddConfigProperties(rootProps props)
AddConfigProperties - Adds the command properties needed for Mulesoft
func SetConfig ¶
func SetConfig(newConfig *AgentConfig)
SetConfig sets the global AgentConfig reference.
Types ¶
type AgentConfig ¶
type AgentConfig struct { CentralConfig corecfg.CentralConfig `config:"central"` MulesoftConfig *MulesoftConfig `config:"mulesoft"` }
AgentConfig - represents the config for agent
type MulesoftConfig ¶
type MulesoftConfig struct { corecfg.IConfigValidator AnypointExchangeURL string `config:"anypointExchangeUrl"` AnypointMonitoringURL string `config:"anypointMonitoringUrl"` CachePath string `config:"cachePath"` DiscoveryIgnoreTags string `config:"discoveryIgnoreTags"` DiscoveryTags string `config:"discoveryTags"` Environment string `config:"environment"` OrgName string `config:"orgname"` PollInterval time.Duration `config:"pollInterval"` ProxyURL string `config:"proxyUrl"` SessionLifetime time.Duration `config:"auth.lifetime"` TLS corecfg.TLSConfig `config:"ssl"` ClientID string `config:"auth.clientID"` ClientSecret string `config:"auth.clientSecret"` DiscoverOriginalRaml bool `config:"discoverOriginalRaml"` UseMonitoringAPI bool `config:"useMonitoringAPI"` }
MulesoftConfig - represents the config for the Mulesoft gateway
func NewMulesoftConfig ¶
func NewMulesoftConfig(rootProps props) *MulesoftConfig
NewMulesoftConfig - parse the props and create an Mulesoft Configuration structure
func (*MulesoftConfig) ValidateCfg ¶
func (c *MulesoftConfig) ValidateCfg() (err error)
ValidateCfg - Validates the gateway config
Click to show internal directories.
Click to hide internal directories.