banflunder

package
v0.0.0-...-a052cf5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: Apache-2.0 Imports: 10 Imported by: 1

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 DisallowPack

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

func New

func New() (*DisallowPack, error)

New creates a new ban pack admission plugin

func (*DisallowPack) Admit

func (d *DisallowPack) Admit(a admission.Attributes) error

Admit ensures that the object in-flight is of kind Pack. In addition checks that the Name is not on the banned list. The list is stored in Users API objects.

func (*DisallowPack) SetInternalWardleInformerFactory

func (d *DisallowPack) SetInternalWardleInformerFactory(f informers.SharedInformerFactory)

SetInternalWardleInformerFactory gets Lister from SharedInformerFactory. The lister knows how to lists Users.

func (*DisallowPack) ValidateInitialization

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