apiextensions-apiserver: k8s.io/apiextensions-apiserver/pkg/apiserver Index | Files | Directories

package apiserver

import "k8s.io/apiextensions-apiserver/pkg/apiserver"

Index

Package Files

apiserver.go customresource_discovery.go customresource_discovery_controller.go customresource_handler.go

Variables

var (
    Scheme = runtime.NewScheme()
    Codecs = serializer.NewCodecFactory(Scheme)
)

func DefaultAPIResourceConfigSource Uses

func DefaultAPIResourceConfigSource() *serverstorage.ResourceConfig

func NewCustomResourceDefinitionHandler Uses

func NewCustomResourceDefinitionHandler(
    versionDiscoveryHandler *versionDiscoveryHandler,
    groupDiscoveryHandler *groupDiscoveryHandler,
    crdInformer informers.CustomResourceDefinitionInformer,
    delegate http.Handler,
    restOptionsGetter generic.RESTOptionsGetter,
    admission admission.Interface,
    establishingController *establish.EstablishingController,
    masterCount int) *crdHandler

type CRDRESTOptionsGetter Uses

type CRDRESTOptionsGetter struct {
    StorageConfig           storagebackend.Config
    StoragePrefix           string
    EnableWatchCache        bool
    DefaultWatchCacheSize   int
    EnableGarbageCollection bool
    DeleteCollectionWorkers int
    CountMetricPollPeriod   time.Duration
}

func (CRDRESTOptionsGetter) GetRESTOptions Uses

func (t CRDRESTOptionsGetter) GetRESTOptions(resource schema.GroupResource) (generic.RESTOptions, error)

type CompletedConfig Uses

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

func (CompletedConfig) New Uses

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

New returns a new instance of CustomResourceDefinitions from the given config.

type Config Uses

type Config struct {
    GenericConfig *genericapiserver.RecommendedConfig
    ExtraConfig   ExtraConfig
}

func (*Config) Complete Uses

func (cfg *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type CustomResourceDefinitions Uses

type CustomResourceDefinitions struct {
    GenericAPIServer *genericapiserver.GenericAPIServer

    // provided for easier embedding
    Informers internalinformers.SharedInformerFactory
}

type DiscoveryController Uses

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

func NewDiscoveryController Uses

func NewDiscoveryController(crdInformer informers.CustomResourceDefinitionInformer, versionHandler *versionDiscoveryHandler, groupHandler *groupDiscoveryHandler) *DiscoveryController

func (*DiscoveryController) Run Uses

func (c *DiscoveryController) Run(stopCh <-chan struct{})

type ExtraConfig Uses

type ExtraConfig struct {
    CRDRESTOptionsGetter genericregistry.RESTOptionsGetter

    // MasterCount is used to detect whether cluster is HA, and if it is
    // the CRD Establishing will be hold by 5 seconds.
    MasterCount int
}

type UnstructuredObjectTyper Uses

type UnstructuredObjectTyper struct {
    Delegate          runtime.ObjectTyper
    UnstructuredTyper runtime.ObjectTyper
}

func (UnstructuredObjectTyper) ObjectKinds Uses

func (t UnstructuredObjectTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error)

func (UnstructuredObjectTyper) Recognizes Uses

func (t UnstructuredObjectTyper) Recognizes(gvk schema.GroupVersionKind) bool

Directories

PathSynopsis
conversion
validation

Package apiserver imports 64 packages (graph) and is imported by 12 packages. Updated 2018-08-07. Refresh now. Tools for package owners.