kubernetes/staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

// TestWantsAuthorizer ensures that the authorizer is injected
// when the WantsAuthorizer interface is implemented by a plugin.
func TestWantsAuthorizer(t *testing.T) {}

// TestWantsExternalKubeClientSet ensures that the clientset is injected
// when the WantsExternalKubeClientSet interface is implemented by a plugin.
func TestWantsExternalKubeClientSet(t *testing.T) {}

// TestWantsExternalKubeInformerFactory ensures that the informer factory is injected
// when the WantsExternalKubeInformerFactory interface is implemented by a plugin.
func TestWantsExternalKubeInformerFactory(t *testing.T) {}

// TestWantsShutdownSignal ensures that the shutdown signal is injected
// when the WantsShutdownSignal interface is implemented by a plugin.
func TestWantsShutdownNotification(t *testing.T) {}

type WantExternalKubeInformerFactory

func (self *WantExternalKubeInformerFactory) SetExternalKubeInformerFactory(sf informers.SharedInformerFactory) {}

func (self *WantExternalKubeInformerFactory) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

func (self *WantExternalKubeInformerFactory) Handles(o admission.Operation) bool {}

func (self *WantExternalKubeInformerFactory) ValidateInitialization() error      {}

var _

var _

type WantExternalKubeClientSet

func (self *WantExternalKubeClientSet) SetExternalKubeClientSet(cs kubernetes.Interface) {}

func (self *WantExternalKubeClientSet) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

func (self *WantExternalKubeClientSet) Handles(o admission.Operation) bool {}

func (self *WantExternalKubeClientSet) ValidateInitialization() error      {}

var _

var _

type WantAuthorizerAdmission

func (self *WantAuthorizerAdmission) SetAuthorizer(a authorizer.Authorizer) {}

func (self *WantAuthorizerAdmission) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

func (self *WantAuthorizerAdmission) Handles(o admission.Operation) bool {}

func (self *WantAuthorizerAdmission) ValidateInitialization() error      {}

var _

var _

type WantDrainedNotification

func (self *WantDrainedNotification) SetDrainedNotification(stopCh <-chan struct{}

func (self *WantDrainedNotification) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

func (self *WantDrainedNotification) Handles(o admission.Operation) bool {}

func (self *WantDrainedNotification) ValidateInitialization() error      {}

var _

var _

type TestAuthorizer

func (t *TestAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorized authorizer.Decision, reason string, err error) {}

func TestRESTMapperAdmissionPlugin(t *testing.T) {}

type WantsRESTMapperAdmissionPlugin

func (p *WantsRESTMapperAdmissionPlugin) SetRESTMapper(mapper meta.RESTMapper) {}

type doNothingRESTMapper

func (doNothingRESTMapper) KindFor(resource schema.GroupVersionResource) (schema.GroupVersionKind, error) {}

func (doNothingRESTMapper) KindsFor(resource schema.GroupVersionResource) ([]schema.GroupVersionKind, error) {}

func (doNothingRESTMapper) ResourceFor(input schema.GroupVersionResource) (schema.GroupVersionResource, error) {}

func (doNothingRESTMapper) ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error) {}

func (doNothingRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) {}

func (doNothingRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) {}

func (doNothingRESTMapper) ResourceSingularizer(resource string) (singular string, err error) {}

type doNothingAdmission

func (doNothingAdmission) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

func (doNothingAdmission) Handles(o admission.Operation) bool {}

func (doNothingAdmission) Validate() error                    {}

type doNothingPluginInitialization

func (doNothingPluginInitialization) ValidateInitialization() error {}