config

package
v0.0.0-alpha12 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 2 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"`
	KongGatewayCfg *KongGatewayConfig    `config:"kong"`
}

AgentConfig - represents the config for agent

type KongAdminAuthAPIKeyConfig

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

type KongAdminAuthConfig

type KongAdminAuthConfig struct {
	APIKey KongAdminAuthAPIKeyConfig `config:"apikey"`
}

type KongAdminConfig

type KongAdminConfig struct {
	URL  string              `config:"url"`
	Auth KongAdminAuthConfig `config:"auth"`
}

type KongGatewayConfig

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

KongGatewayConfig - represents the config for gateway

func (*KongGatewayConfig) ValidateCfg

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

ValidateCfg - Validates the gateway config

type KongProxyConfig

type KongProxyConfig struct {
	Host string              `config:"host"`
	Port KongProxyPortConfig `config:"port"`
}

type KongProxyPortConfig

type KongProxyPortConfig struct {
	HTTP  int `config:"http"`
	HTTPS int `config:"https"`
}

type KongSpecConfig

type KongSpecConfig struct {
	URLPaths  []string `config:"urlPaths"`
	LocalPath string   `config:"localPaths"`
}

Jump to

Keyboard shortcuts

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