admission

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(plugins []admission.Interface) error

Validate will call the Validate function in each plugin if they implement the Validator interface.

Types

type PluginInitializer

type PluginInitializer struct {
	OpenshiftClient client.Interface
	ProjectCache    *cache.ProjectCache
	Authorizer      authorizer.Authorizer
}

func (*PluginInitializer) Initialize

func (i *PluginInitializer) Initialize(plugins []admission.Interface)

Initialize will check the initialization interfaces implemented by each plugin and provide the appropriate initialization data

type Validator

type Validator interface {
	Validate() error
}

Validator should be implemented by admission plugins that can validate themselves after initialization has happened.

type WantsAuthorizer added in v1.1.4

type WantsAuthorizer interface {
	SetAuthorizer(authorizer.Authorizer)
}

WantsAuthorizer should be implemented by admission plugins that need access to the Authorizer interface

type WantsOpenshiftClient

type WantsOpenshiftClient interface {
	SetOpenshiftClient(client.Interface)
}

WantsOpenshiftClient should be implemented by admission plugins that need an Openshift client

type WantsProjectCache

type WantsProjectCache interface {
	SetProjectCache(*cache.ProjectCache)
}

WantsProjectCache should be implemented by admission plugins that need a project cache

Jump to

Keyboard shortcuts

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