Documentation ¶
Index ¶
- Variables
- func BuildHandlerChain(apiHandler http.Handler, c *genericapiserver.Config) http.Handler
- func GetTableConvertor(gr schema.GroupResource) rest.TableConvertor
- type ClusterResourceController
- type CompletedConfig
- type Config
- type ExtraConfig
- type RESTManager
- type RESTResourceInfo
- type ResourceHandler
- type ResourceInfoMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
func BuildHandlerChain ¶
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 ¶
func (m *RESTManager) LoadResources(infos ResourceInfoMap) map[schema.GroupResource]discovery.ResourceDiscoveryAPI
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.