apiserver

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDefaultDynamicAPIServer

func StartDefaultDynamicAPIServer(ctx server.PostStartHookContext) error

StartDefaultDynamicAPIServer run default dynamic apiserver in backend

func StartDynamicResourceFactoryWithConfigMapInformer

func StartDynamicResourceFactoryWithConfigMapInformer(stopCh <-chan struct{})

Types

type DynamicAPIServer

type DynamicAPIServer struct {
	// contains filtered or unexported fields
}
var DefaultDynamicAPIServer *DynamicAPIServer

func NewDynamicAPIServer

func NewDynamicAPIServer(svr *server.GenericAPIServer, config *server.Config) *DynamicAPIServer

func (*DynamicAPIServer) AddGroupDiscovery

func (in *DynamicAPIServer) AddGroupDiscovery(gv schema.GroupVersion)

func (*DynamicAPIServer) AddGroupVersionResourceHandler

func (in *DynamicAPIServer) AddGroupVersionResourceHandler(gvr schema.GroupVersionResource, storage rest.Storage) error

func (*DynamicAPIServer) AddResource

func (in *DynamicAPIServer) AddResource(r ResourceProvider) error

func (*DynamicAPIServer) AddScheme

func (in *DynamicAPIServer) AddScheme(gvk schema.GroupVersionKind, storage rest.Storage)

func (*DynamicAPIServer) RemoveGroupDiscovery

func (in *DynamicAPIServer) RemoveGroupDiscovery(gv schema.GroupVersion)

func (*DynamicAPIServer) RemoveGroupVersionResourceHandler

func (in *DynamicAPIServer) RemoveGroupVersionResourceHandler(gvr schema.GroupVersionResource, storage rest.Storage) error

func (*DynamicAPIServer) RemoveResource

func (in *DynamicAPIServer) RemoveResource(r ResourceProvider) error

func (*DynamicAPIServer) RemoveScheme

func (in *DynamicAPIServer) RemoveScheme(gvk schema.GroupVersionKind)

type ResourceProvider

type ResourceProvider interface {
	rest.Storage
	GetGroupVersion() schema.GroupVersion
	GetGroupVersionKind() schema.GroupVersionKind
	GetGroupVersionResource() schema.GroupVersionResource
}

Jump to

Keyboard shortcuts

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