server

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 20 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 IsOffline

func IsOffline() string

Types

type Options

type Options struct {
	Context         context.Context
	KubeConfig      string
	HTTPListenPort  int
	HTTPSListenPort int
	Threadiness     int
	Namespace       string
	Name            string
}

Options define the api server options

type Router

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

func NewRouter

func NewRouter(mgmt *config.Management) *Router

func (*Router) Routes

func (r *Router) Routes() http.Handler

Routes adds additional customize routes to the default router

type Server

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

Server defines the api server types

func New

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

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(opts *dlserver.ListenOpts) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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