server

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdditionalFilters []Filter = []Filter{}
)

Functions

This section is empty.

Types

type Filter added in v0.15.1

type Filter func(http.Handler, FilterOptions) http.Handler

type FilterOptions added in v0.15.1

type FilterOptions struct {
	LocalScheme *runtime.Scheme
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a http.Handler which proxies Kubernetes APIs to remote API server.

func NewServer

func NewServer(ctx *context2.ControllerContext, requestHeaderCaFile, clientCaFile string) (*Server, error)

NewServer creates and installs a new Server. 'filter', if non-nil, protects requests to the api only.

func (*Server) ServeOnListenerTLS

func (s *Server) ServeOnListenerTLS(address string, port int, stopChan <-chan struct{}) error

ServeOnListenerTLS starts the server using given listener with TLS, loops forever until an error occurs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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