server

package
v0.0.0-...-87e400f Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(kubeConfig string) (clientcmd.ClientConfig, error)

func SetupLocalHandler

func SetupLocalHandler(server *EdgeServer) http.Handler

func Wait

func Wait(ctx context.Context, config rest.Config) error

Types

type Config

type Config struct {
	Namespace       string
	Threadiness     int
	HTTPListenPort  int
	HTTPSListenPort int
}

type EdgeServer

type EdgeServer struct {
	*server.Controllers

	Config        Config
	RestConfig    *restclient.Config
	DynamicClient dynamic.Interface
	ClientSet     *kubernetes.Clientset
	Context       context.Context
	Handler       http.Handler
	ASL           accesscontrol.AccessSetLookup
}

func New

func New(ctx context.Context, clientConfig clientcmd.ClientConfig, cfg *Config) (*EdgeServer, error)

func (*EdgeServer) ListenAndServe

func (s *EdgeServer) ListenAndServe(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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