server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TypedClient   versioned.Interface
	DynamicClient dynamic.Interface
	RestMapper    meta.RESTMapper
}

Config holds configurations needed by the server handlers.

type Server

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

Server is a server that can serve HTTP/HTTPS requests.

func NewServer

func NewServer(conf Config) (*Server, error)

NewServer creates a new Server.

func (*Server) InstallAPIServer

func (s *Server) InstallAPIServer(ctx context.Context) error

InstallAPIServer installs the API server for the server.

func (*Server) InstallCustomMetricsAPI

func (s *Server) InstallCustomMetricsAPI(ctx context.Context) error

InstallCustomMetricsAPI installs the custom metrics API for the server.

func (*Server) InstallExternalMetricsAPI

func (s *Server) InstallExternalMetricsAPI(ctx context.Context) error

InstallExternalMetricsAPI installs the external metrics API for the server.

func (*Server) InstallOpenAPI

func (s *Server) InstallOpenAPI(ctx context.Context) error

InstallOpenAPI installs the OpenAPI spec for the server.

func (*Server) Run

func (s *Server) Run(ctx context.Context, address string, certFile, privateKeyFile string) error

Run runs the specified Server. This should never exit.

Jump to

Keyboard shortcuts

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