config

package
v1.1.41 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	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"`
	ClientID             string            `config:"auth.clientID"`
	ClientSecret         string            `config:"auth.clientSecret"`
	DiscoverOriginalRaml bool              `config:"discoverOriginalRaml"`
}

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