deny

package
v1.9.8-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v1.7.0

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type AlwaysDeny added in v1.9.0

type AlwaysDeny struct{}

AlwaysDeny is an implementation of admission.Interface which always says no to an admission request. It is useful in unit tests to force an operation to be forbidden.

func NewAlwaysDeny

func NewAlwaysDeny() *AlwaysDeny

NewAlwaysDeny creates an always deny admission handler

func (AlwaysDeny) Admit added in v1.9.0

func (AlwaysDeny) Admit(a admission.Attributes) (err error)

Admit makes an admission decision based on the request attributes.

func (AlwaysDeny) Handles added in v1.9.0

func (AlwaysDeny) Handles(operation admission.Operation) bool

Handles returns true if this admission controller can handle the given operation where operation can be one of CREATE, UPDATE, DELETE, or CONNECT

func (AlwaysDeny) Validate added in v1.9.0

func (AlwaysDeny) Validate(a admission.Attributes) (err error)

Validate makes an admission decision based on the request attributes. It is NOT allowed to mutate.

Jump to

Keyboard shortcuts

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