server

package
v0.22.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtraAuthenticators []authenticator.Request

ExtraAuthenticators are extra authenticators that should be added to the server

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 RegisterIndices added in v0.21.0

func RegisterIndices(ctx *synccontext.RegisterContext) error

RegisterIndices adds the server indices to the managers

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 *synccontext.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