config

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 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(props properties.Properties)

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"`
	CachePath           string            `config:"cachePath"`
	DiscoveryIgnoreTags string            `config:"discoveryIgnoreTags"`
	DiscoveryTags       string            `config:"discoveryTags"`
	Environment         string            `config:"environment"`
	OrgName             string            `config:"orgname"`
	Password            string            `config:"auth.password"`
	PollInterval        time.Duration     `config:"pollInterval"`
	ProxyURL            string            `config:"proxyUrl"`
	SessionLifetime     time.Duration     `config:"auth.lifetime"`
	TLS                 corecfg.TLSConfig `config:"ssl"`
	Username            string            `config:"auth.username"`
}

MulesoftConfig - represents the config for the Mulesoft gateway

func NewMulesoftConfig

func NewMulesoftConfig(props properties.Properties) *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