router

package
v0.52.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyHandler added in v0.19.0

func NewProxyHandler(cfg *rest.Config, keepalive time.Duration) (http.Handler, error)

NewProxyHandler creates an API proxy handler for the cluster

Types

type Server added in v0.19.0

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

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

func Register

func Register(r endpoints.Resource, cfg *rest.Config) (*Server, error)

Register returns a HTTP handler with the Dashboard and Kubernetes APIs registered

func (*Server) Listen added in v0.19.0

func (s *Server) Listen(address string, port int) (net.Listener, error)

Listen is a simple wrapper around net.Listen.

func (*Server) ServeOnListener added in v0.19.0

func (s *Server) ServeOnListener(l net.Listener) error

ServeOnListener starts the server using given listener, loops forever.

Jump to

Keyboard shortcuts

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