apiserver

package
v0.0.0-...-a134451 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBuildHandlerChain

func DefaultBuildHandlerChain(apiHandler http.Handler, config *config.Config) http.Handler

DefaultBuildHandlerChain set default filters

func StorageMap

func StorageMap(config *config.Config) map[string]rest.Storage

Types

type APIServerHandler

type APIServerHandler struct {
	FullHandlerChain http.Handler
	RestfulContainer *restful.Container
	NonRestfulMux    *mux.Router

	Director http.Handler
}

func NewAPIServerHandler

func NewAPIServerHandler(name string, handlerChainBuilder HandlerChainBuilderFn, notFoundHandler http.Handler) *APIServerHandler

func (*APIServerHandler) ServeHTTP

func (a *APIServerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GenericAPIServer

type GenericAPIServer struct {
	Handler *APIServerHandler
	Storage map[string]rest.Storage
	// contains filtered or unexported fields
}

func NewGenericAPIServer

func NewGenericAPIServer(name string, config *config.Config) *GenericAPIServer

func (*GenericAPIServer) Run

func (g *GenericAPIServer) Run(_ <-chan struct{}) error

type HandlerChainBuilderFn

type HandlerChainBuilderFn func(apiHandler http.Handler) http.Handler

type Instance

type Instance struct {
	GenericAPIServer   *GenericAPIServer
	AuthenticationInfo *controller.AuthenticationInfo
}

func NewInstance

func NewInstance(config *config.Config) *Instance

func (*Instance) Destroy

func (i *Instance) Destroy()

func (*Instance) Run

func (i *Instance) Run(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

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