api_server

package
v0.0.0-...-7b34d14 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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