Documentation
¶
Index ¶
- func AddProperties(rootProps props)
- type ApigeeConfig
- func (a *ApigeeConfig) GetAuth() *AuthConfig
- func (a *ApigeeConfig) GetIntervals() *ApigeeIntervals
- func (a *ApigeeConfig) GetWorkers() *ApigeeWorkers
- func (a *ApigeeConfig) IsProductMode() bool
- func (a *ApigeeConfig) IsProxyMode() bool
- func (a *ApigeeConfig) ShouldCloneAttributes() bool
- func (a *ApigeeConfig) ShouldReportAllTraffic() bool
- func (a *ApigeeConfig) ShouldReportNotSetTraffic() bool
- func (a *ApigeeConfig) ValidateCfg() (err error)
- type ApigeeIntervals
- type ApigeeSpecConfig
- type ApigeeWorkers
- type AuthConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProperties ¶
func AddProperties(rootProps props)
AddProperties - adds config needed for apigee client
Types ¶
type ApigeeConfig ¶
type ApigeeConfig struct {
corecfg.IConfigValidator
Organization string `config:"organization"`
Environment string `config:"environment"`
URL string `config:"url"`
DataURL string `config:"dataURL"`
APIVersion string `config:"apiVersion"`
Filter string `config:"filter"`
DeveloperID string `config:"developerID"`
Auth *AuthConfig `config:"auth"`
Intervals *ApigeeIntervals `config:"interval"`
Workers *ApigeeWorkers `config:"workers"`
Specs *ApigeeSpecConfig `config:"specs"`
CloneAttributes bool `config:"cloneAttributes"`
AllTraffic bool `config:"allTraffic"`
NotSetTraffic bool `config:"notSetTraffic"`
FilteredAPIs []string `config:"filteredAPIs"`
FilterMetrics bool `config:"filterMetrics"`
// contains filtered or unexported fields
}
ApigeeConfig - represents the config for gateway
func NewApigeeConfig ¶
func NewApigeeConfig() *ApigeeConfig
func ParseConfig ¶
func ParseConfig(rootProps props) *ApigeeConfig
ParseConfig - parse the config on startup
func (*ApigeeConfig) GetAuth ¶
func (a *ApigeeConfig) GetAuth() *AuthConfig
GetAuth - Returns the Auth Config
func (*ApigeeConfig) GetIntervals ¶
func (a *ApigeeConfig) GetIntervals() *ApigeeIntervals
GetIntervals - Returns the Intervals
func (*ApigeeConfig) GetWorkers ¶
func (a *ApigeeConfig) GetWorkers() *ApigeeWorkers
GetWorkers - Returns the number of Workers
func (*ApigeeConfig) IsProductMode ¶
func (a *ApigeeConfig) IsProductMode() bool
func (*ApigeeConfig) IsProxyMode ¶
func (a *ApigeeConfig) IsProxyMode() bool
func (*ApigeeConfig) ShouldCloneAttributes ¶
func (a *ApigeeConfig) ShouldCloneAttributes() bool
func (*ApigeeConfig) ShouldReportAllTraffic ¶
func (a *ApigeeConfig) ShouldReportAllTraffic() bool
func (*ApigeeConfig) ShouldReportNotSetTraffic ¶
func (a *ApigeeConfig) ShouldReportNotSetTraffic() bool
func (*ApigeeConfig) ValidateCfg ¶
func (a *ApigeeConfig) ValidateCfg() (err error)
ValidateCfg - Validates the gateway config
type ApigeeIntervals ¶
type ApigeeIntervals struct {
Proxy time.Duration `config:"proxy"`
Spec time.Duration `config:"spec"`
Product time.Duration `config:"product"`
Stats time.Duration `config:"stats"`
}
ApigeeIntervals - intervals for the apigee agent to use
type ApigeeSpecConfig ¶
type ApigeeSpecConfig struct {
DisablePollForSpecs bool `config:"disablePollForSpecs"`
Unstructured bool `config:"unstructured"`
MatchOnURL bool `config:"matchOnURL"`
LocalPath string `config:"localDirectory"`
SpecExtensions string `config:"extensions"`
Extensions []string
}
ApigeeWorkers - number of workers for the apigee agent to use
type ApigeeWorkers ¶
type ApigeeWorkers struct {
Proxy int `config:"proxy"`
Spec int `config:"spec"`
Product int `config:"product"`
}
ApigeeWorkers - number of workers for the apigee agent to use
type AuthConfig ¶
type AuthConfig struct {
URL string `config:"url"`
ServerUsername string `config:"serverUsername"`
ServerPassword string `config:"serverPassword"`
Username string `config:"username"`
Password string `config:"password"`
BasicAuth bool `config:"useBasicAuth"`
}
AuthConfig - represents the config for gateway
func (*AuthConfig) GetPassword ¶
func (a *AuthConfig) GetPassword() string
GetPassword - Returns the APIGEE password
func (*AuthConfig) GetServerPassword ¶
func (a *AuthConfig) GetServerPassword() string
GetServerPassword - Returns the APIGEE auth server password
func (*AuthConfig) GetServerUsername ¶
func (a *AuthConfig) GetServerUsername() string
GetServerUsername - Returns the APIGEE auth server username
func (*AuthConfig) GetURL ¶
func (a *AuthConfig) GetURL() string
GetURL - Returns the APIGEE username
func (*AuthConfig) GetUsername ¶
func (a *AuthConfig) GetUsername() string
GetUsername - Returns the APIGEE username
func (*AuthConfig) UseBasicAuth ¶
func (a *AuthConfig) UseBasicAuth() bool
UseBasicAuth - Returns true if Basic Authentication should be used for the APIGEE api calls