pizzatoppings

package
v0.0.0-...-d86c41a Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

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 PizzaToppingsPlugin

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

func New

func New() (*PizzaToppingsPlugin, error)

New creates a new ban pizza topping admission plugin

func (*PizzaToppingsPlugin) SetRestaurantInformerFactory

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

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

func (*PizzaToppingsPlugin) Validate

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

func (*PizzaToppingsPlugin) ValidateInitialization

func (d *PizzaToppingsPlugin) 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