kubernetes/staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

type sourceFactory

type dispatcherFactory

var admissionResources

type Plugin

var _

var _

var _

var _

var _

var _

var _

var _

func NewPlugin[H any](
	handler *admission.Handler,
	sourceFactory sourceFactory[H],
	dispatcherFactory dispatcherFactory[H],
) *Plugin[H] {}

func (c *Plugin[H]) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) {}

func (c *Plugin[H]) SetExternalKubeClientSet(client kubernetes.Interface) {}

func (c *Plugin[H]) SetRESTMapper(mapper meta.RESTMapper) {}

func (c *Plugin[H]) SetDynamicClient(client dynamic.Interface) {}

func (c *Plugin[H]) SetDrainedNotification(stopCh <-chan struct{}

func (c *Plugin[H]) SetAuthorizer(authorizer authorizer.Authorizer) {}

func (c *Plugin[H]) SetMatcher(matcher *matching.Matcher) {}

func (c *Plugin[H]) SetEnabled(enabled bool) {}

func (c *Plugin[H]) SetExcludedAdmissionResources(excludedResources []schema.GroupResource) {}

// ValidateInitialization - once clientset and informer factory are provided, creates and starts the admission controller
func (c *Plugin[H]) ValidateInitialization() error {}

func (c *Plugin[H]) Dispatch(
	ctx context.Context,
	a admission.Attributes,
	o admission.ObjectInterfaces,
) (err error) {}

func (c *Plugin[H]) shouldIgnoreResource(attr admission.Attributes) bool {}