server

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRESTConfig

func GetRESTConfig() (*rest.Config, error)

Types

type ErrorHandler

type ErrorHandler struct {
	Status int
}

func (*ErrorHandler) ServeHTTP

func (m *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Options

type Options struct {
	Listen                string
	UserNamespaceStrategy users.NamespaceMapper
	Pages                 pages.Options
	Scheme                *runtime.Scheme

	TLSConfig *tls.Config
	UseSPIFFE bool
}

func (*Options) InitDefaults

func (o *Options) InitDefaults(appName string)

type Server

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

func New

func New(opt Options) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context, listen string, tlsConfig *tls.Config, listening chan<- net.Addr) error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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