apiserver

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	*Config

	Server       *http.Server
	SimpleServer *http.Server
}

APIServer aggregates all cube apis

func NewAPIServerWithOpts

func NewAPIServerWithOpts(opts *Config) *APIServer

func (*APIServer) Initialize

func (s *APIServer) Initialize() error

func (*APIServer) Run

func (s *APIServer) Run(stop <-chan struct{})

type Config

type Config struct {
	HttpConfig
	authentication.LdapConfig
	authentication.JwtConfig
	authentication.GenericConfig
	Gi18nManagers *international.Gi18nManagers

	// EnableVersionConversion means api-server open version conversion
	EnableVersionConversion bool

	//this if for ingress nginx controller
	NginxNamespace           string
	NginxTcpServiceConfigMap string
	NginxUdpServiceConfigMap string
}

func (*Config) Validate

func (c *Config) Validate() []error

type HttpConfig

type HttpConfig struct {
	BindAddr     string `yaml:"bindAddr,omitempty"`
	InsecurePort int    `yaml:"insecurePort,omitempty"`
	SecurePort   int    `yaml:"securePort, omitempty"`
	GenericPort  int    `yaml:"genericPort,omitempty"`
	TlsCert      string `yaml:"tlsCert,omitempty"`
	TlsKey       string `yaml:"tlsKey,omitempty"`
	CaCert       string `yaml:"caCert,omitempty"`
	CaKey        string `yaml:"caKey,omitempty"`
}

Jump to

Keyboard shortcuts

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