Documentation ¶
Index ¶
- Variables
- func NewCustomResourceDefinitionHandler(versionDiscoveryHandler *versionDiscoveryHandler, ...) *crdHandler
- type CRDRESTOptionsGetter
- type Config
- type CustomResourceDefinitions
- type DiscoveryController
- type UnstructuredCopier
- type UnstructuredCreator
- type UnstructuredDefaulter
- type UnstructuredNegotiatedSerializer
- func (s UnstructuredNegotiatedSerializer) DecoderToVersion(serializer runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder
- func (s UnstructuredNegotiatedSerializer) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder
- func (s UnstructuredNegotiatedSerializer) SupportedMediaTypes() []runtime.SerializerInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
func NewCustomResourceDefinitionHandler ¶
func NewCustomResourceDefinitionHandler( versionDiscoveryHandler *versionDiscoveryHandler, groupDiscoveryHandler *groupDiscoveryHandler, requestContextMapper apirequest.RequestContextMapper, crdLister listers.CustomResourceDefinitionLister, delegate http.Handler, restOptionsGetter generic.RESTOptionsGetter, admission admission.Interface) *crdHandler
Types ¶
type CRDRESTOptionsGetter ¶
type CRDRESTOptionsGetter struct { StorageConfig storagebackend.Config StoragePrefix string EnableWatchCache bool DefaultWatchCacheSize int EnableGarbageCollection bool DeleteCollectionWorkers int }
func (CRDRESTOptionsGetter) GetRESTOptions ¶
func (t CRDRESTOptionsGetter) GetRESTOptions(resource schema.GroupResource) (generic.RESTOptions, error)
type Config ¶
type Config struct { GenericConfig *genericapiserver.Config CRDRESTOptionsGetter genericregistry.RESTOptionsGetter }
func (*Config) Complete ¶
func (c *Config) Complete() completedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
func (*Config) SkipComplete ¶
func (c *Config) SkipComplete() completedConfig
SkipComplete provides a way to construct a server instance without config completion.
type CustomResourceDefinitions ¶
type CustomResourceDefinitions struct { GenericAPIServer *genericapiserver.GenericAPIServer // provided for easier embedding Informers internalinformers.SharedInformerFactory }
type DiscoveryController ¶
type DiscoveryController struct {
// contains filtered or unexported fields
}
func NewDiscoveryController ¶
func NewDiscoveryController(crdInformer informers.CustomResourceDefinitionInformer, versionHandler *versionDiscoveryHandler, groupHandler *groupDiscoveryHandler, contextMapper request.RequestContextMapper) *DiscoveryController
func (*DiscoveryController) Run ¶
func (c *DiscoveryController) Run(stopCh <-chan struct{})
type UnstructuredCopier ¶
type UnstructuredCopier struct{}
type UnstructuredCreator ¶
type UnstructuredCreator struct{}
func (UnstructuredCreator) New ¶
func (UnstructuredCreator) New(kind schema.GroupVersionKind) (runtime.Object, error)
type UnstructuredDefaulter ¶
type UnstructuredDefaulter struct{}
func (UnstructuredDefaulter) Default ¶
func (UnstructuredDefaulter) Default(in runtime.Object)
type UnstructuredNegotiatedSerializer ¶
type UnstructuredNegotiatedSerializer struct{}
func (UnstructuredNegotiatedSerializer) DecoderToVersion ¶
func (s UnstructuredNegotiatedSerializer) DecoderToVersion(serializer runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder
func (UnstructuredNegotiatedSerializer) EncoderForVersion ¶
func (s UnstructuredNegotiatedSerializer) EncoderForVersion(serializer runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder
func (UnstructuredNegotiatedSerializer) SupportedMediaTypes ¶
func (s UnstructuredNegotiatedSerializer) SupportedMediaTypes() []runtime.SerializerInfo
Click to show internal directories.
Click to hide internal directories.