proxier

package
v0.0.0-...-81fb0b3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyHandler

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

NewProxyHandler creates an api proxy handler for the cluster

Types

type ProxyOptions

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

ProxyOptions have the data required to perform the proxy operation

func NewProxyOptions

func NewProxyOptions(cfg *rest.Config, identifier string) *ProxyOptions

NewProxyOptions creates the options for proxy

func (ProxyOptions) RunProxy

func (o ProxyOptions) RunProxy() error

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(filebase string, apiProxyPrefix string, staticPrefix string, cfg *rest.Config, keepalive time.Duration, appendLocationPath bool) (*Server, error)

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

func (*Server) ListenUnix

func (s *Server) ListenUnix(path string) (net.Listener, error)

ListenUnix does net.Listen for a unix socket

func (*Server) ServeOnListener

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