kubernetes/staging/src/k8s.io/sample-apiserver/pkg/admission/plugin/banflunder/admission.go

// Register registers a plugin
func Register(plugins *admission.Plugins) {}

type DisallowFlunder

var _

// Admit ensures that the object in-flight is of kind Flunder.
// In addition checks that the Name is not on the banned list.
// The list is stored in Fischers API objects.
func (d *DisallowFlunder) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {}

// SetInternalWardleInformerFactory gets Lister from SharedInformerFactory.
// The lister knows how to lists Fischers.
func (d *DisallowFlunder) SetInternalWardleInformerFactory(f informers.SharedInformerFactory) {}

// ValidateInitialization checks whether the plugin was correctly initialized.
func (d *DisallowFlunder) ValidateInitialization() error {}

// New creates a new ban flunder admission plugin
func New() (*DisallowFlunder, error) {}