apiserver

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 23 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(ops *Config) *APIServer

func (*APIServer) Initialize

func (s *APIServer) Initialize() error

func (*APIServer) Run

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

type Config

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"`
}

Jump to

Keyboard shortcuts

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