Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiServerConfig ¶
type ApiServerConfig struct { // Port of the API Server Port int `yaml:"port" envconfig:"kuma_api_server_port"` // If true, then API Server will operate in read only mode (serving GET requests) ReadOnly bool `yaml:"readOnly" envconfig:"kuma_api_server_read_only"` // API Catalog Catalog *catalog.CatalogConfig `yaml:"catalog"` // Allowed domains for Cross-Origin Resource Sharing. The value can be either domain or regexp CorsAllowedDomains []string `yaml:"corsAllowedDomains" envconfig:"kuma_api_server_cors_allowed_domains"` }
API Server configuration
func DefaultApiServerConfig ¶
func DefaultApiServerConfig() *ApiServerConfig
func (*ApiServerConfig) Sanitize ¶
func (a *ApiServerConfig) Sanitize()
func (*ApiServerConfig) Validate ¶
func (a *ApiServerConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.