pizzatoppings

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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 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