kubeapiserver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BuildHandlerChain

func BuildHandlerChain(apiHandler http.Handler, c *genericapiserver.Config) http.Handler

func GetTableConvertor added in v0.1.0

func GetTableConvertor(gr schema.GroupResource) rest.TableConvertor

Types

type ClusterResourceController

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

func NewClusterResourceController

func NewClusterResourceController(restManager *RESTManager, discoveryManager *discovery.DiscoveryManager, informer clusterinformer.PediaClusterInformer) *ClusterResourceController

type CompletedConfig

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

func (CompletedConfig) New

func (c CompletedConfig) New(delegationTarget genericapiserver.DelegationTarget) (*genericapiserver.GenericAPIServer, error)

type Config

type Config struct {
	GenericConfig *genericapiserver.RecommendedConfig

	ExtraConfig ExtraConfig
}

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) Complete

func (c *Config) Complete() CompletedConfig

type ExtraConfig

type ExtraConfig struct {
	StorageFactory           storage.StorageFactory
	InformerFactory          informers.SharedInformerFactory
	InitialAPIGroupResources []*restmapper.APIGroupResources
}

type RESTManager

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

func NewRESTManager

func NewRESTManager(serializer runtime.NegotiatedSerializer, storageMediaType string, storageFactory storage.StorageFactory, initialAPIGroupResources []*restmapper.APIGroupResources) *RESTManager

func (*RESTManager) GetAPIGroups

func (m *RESTManager) GetAPIGroups() map[string]metav1.APIGroup

func (*RESTManager) GetRESTResourceInfo

func (m *RESTManager) GetRESTResourceInfo(gvr schema.GroupVersionResource) RESTResourceInfo

func (*RESTManager) LoadResources

type RESTResourceInfo

type RESTResourceInfo struct {
	APIResource  metav1.APIResource
	RequestScope *handlers.RequestScope
	Storage      *resourcerest.RESTStorage
}

func (RESTResourceInfo) Empty

func (info RESTResourceInfo) Empty() bool

type ResourceHandler

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

func (*ResourceHandler) ServeHTTP

func (r *ResourceHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type ResourceInfoMap

type ResourceInfoMap map[schema.GroupResource]resourceInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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