server

package
v0.15.6-beta.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBuildHandlerChain added in v0.15.3

func DefaultBuildHandlerChain(apiHandler http.Handler, c *server.Config) http.Handler

Copied from "k8s.io/apiserver/pkg/server" package

func WithOriginalUser added in v0.15.3

func WithOriginalUser(h http.Handler) http.Handler

Types

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