config

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

func GetConfig

func GetConfig() *AgentConfig

GetConfig gets the AgentConfig

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

Jump to

Keyboard shortcuts

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