config

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	CentralCfg  corecfg.CentralConfig `config:"central"`
	GatewayCfg  *ConnectorConfig      `config:"connector"`
	NotifierCfg *NotifierConfig       `config:"notifier"`
}

AgentConfig - represents the config for agent

type BootstrappingConfig

type BootstrappingConfig struct {
	corecfg.IConfigValidator
	corecfg.IResourceConfigCallback
	PublishSubscriptionSchema         bool `config:"publishSubscriptionSchema"`
	ProcessSubscriptionSchema         bool `config:"processSubscriptionSchema"`
	ProcessSubscriptionSchemaInterval int  `config:"processSubscriptionSchemaInterval"`
}

BootstrappingConfig - represents the config for bootstrapping

type ConnectorConfig

type ConnectorConfig struct {
	corecfg.IConfigValidator
	corecfg.IResourceConfigCallback
	ConnectorURL                string `config:"url"`
	ConnectorProxyURL           string `config:"proxyUrl"`
	ConnectorAdminUser          string `config:"adminUser"`
	ConnectorAdminPassword      string `config:"adminPassword"`
	ConnectorOrgUser            string `config:"orgUser"`
	ConnectorOrgPassword        string `config:"orgPassword"`
	ConnectorInsecureSkipVerify bool   `config:"acceptInsecureCertificates"`
	ConnectorLogBody            bool   `config:"logBody"`
	ConnectorLogHeader          bool   `config:"logHeader"`
	ConnectorOrgMapping         string `config:"orgMapping"`
}

ConnectorConfig - represents the config for middleware

func (*ConnectorConfig) ApplyResources

func (c *ConnectorConfig) ApplyResources(agentResource *v1.ResourceInstance) error

ApplyResources - Applies the apply API Server resource to the agent config

func (*ConnectorConfig) ValidateCfg

func (c *ConnectorConfig) ValidateCfg() (err error)

ValidateCfg - Validates the middleware config

type NotifierConfig

type NotifierConfig struct {
	corecfg.IConfigValidator
	corecfg.IResourceConfigCallback
	NotifierEnabled            bool   `config:"enabled"`
	NotifierHealthMessage      string `config:"healthmessage"`
	NotifierURL                string `config:"url"`
	NotifierProxyURL           string `config:"proxyUrl"`
	NotifierAPIConsumerKey     string `config:"apiConsumerKey"`
	NotifierAPIConsumerSecret  string `config:"apiConsumerSecret"`
	NotifierAAPIAuthType       string `config:"apiAuthType"`
	NotifierInsecureSkipVerify bool   `config:"acceptInsecureCertificates"`
}

NotifierConfig - represents the config for Notifier

func (*NotifierConfig) ApplyResources

func (c *NotifierConfig) ApplyResources(agentResource *v1.ResourceInstance) error

ApplyResources - Applies the apply API Server resource to the agent config

func (*NotifierConfig) ValidateCfg

func (c *NotifierConfig) ValidateCfg() (err error)

ValidateCfg - Validates the middleware config

Jump to

Keyboard shortcuts

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