config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKongProperties

func AddKongProperties(rootProps props)

Types

type AgentConfig

type AgentConfig struct {
	CentralCfg     corecfg.CentralConfig `config:"central"`
	KongGatewayCfg *KongGatewayConfig    `config:"kong"`
}

AgentConfig - represents the config for agent

type KongACLConfig

type KongACLConfig struct {
	Disable bool `config:"disable"`
}

type KongAdminAuthAPIKeyConfig

type KongAdminAuthAPIKeyConfig struct {
	Header string `config:"header"`
	Value  string `config:"value"`
}

type KongAdminAuthConfig

type KongAdminAuthConfig struct {
	APIKey    KongAdminAuthAPIKeyConfig `config:"apiKey"`
	BasicAuth KongAdminBasicAuthConfig  `config:"basicAuth"`
}

type KongAdminBasicAuthConfig

type KongAdminBasicAuthConfig struct {
	Username string `config:"username"`
	Password string `config:"password"`
}

type KongAdminConfig

type KongAdminConfig struct {
	Url  string              `config:"url"`
	Auth KongAdminAuthConfig `config:"auth"`
	TLS  corecfg.TLSConfig   `config:"ssl"`
}

type KongGatewayConfig

type KongGatewayConfig struct {
	corecfg.IConfigValidator
	Admin KongAdminConfig `config:"admin"`
	Proxy KongProxyConfig `config:"proxy"`
	Spec  KongSpecConfig  `config:"spec"`
	ACL   KongACLConfig   `config:"acl"`
}

KongGatewayConfig - represents the config for gateway

func ParseProperties

func ParseProperties(rootProps props) *KongGatewayConfig

func (*KongGatewayConfig) ValidateCfg

func (c *KongGatewayConfig) ValidateCfg() error

ValidateCfg - Validates the gateway config

type KongPortConfig

type KongPortConfig struct {
	HTTP  KongPortSettingsConfig `config:"http"`
	HTTPS KongPortSettingsConfig `config:"https"`
}

type KongPortSettingsConfig

type KongPortSettingsConfig struct {
	Value   int  `config:"value"`
	Disable bool `config:"disable"`
}

type KongProxyConfig

type KongProxyConfig struct {
	Host     string         `config:"host"`
	Ports    KongPortConfig `config:"ports"`
	BasePath string         `config:"basePath"`
}

type KongSpecConfig

type KongSpecConfig struct {
	URLPaths              []string `config:"urlPaths"`
	LocalPath             string   `config:"localPath"`
	DevPortalEnabled      bool     `config:"devPortalEnabled"`
	Filter                string   `config:"filter"`
	CreateUnstructuredAPI bool     `config:"createUnstructuredAPI"`
}

Jump to

Keyboard shortcuts

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