pizzasize

package
v0.0.0-...-d662972 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type PizzaSizePlugin

type PizzaSizePlugin struct {
	*admission.Handler
	// contains filtered or unexported fields
}

func New

func New() (*PizzaSizePlugin, error)

New creates a new ban pizza topping admission plugin

func (*PizzaSizePlugin) SetRestaurantInformerFactory

func (d *PizzaSizePlugin) SetRestaurantInformerFactory(f informers.SharedInformerFactory)

SetRestaurantInformerFactory gets Lister from SharedInformerFactory. The lister knows how to lists Toppings.

func (*PizzaSizePlugin) Validate

Admit ensures that the object in-flight is of kind Pizza. In addition checks that the toppings are known.

func (*PizzaSizePlugin) ValidateInitialization

func (d *PizzaSizePlugin) ValidateInitialization() error

ValidaValidateInitializationte checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL