admission

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2016 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
	OriginQuotaRegistry   quota.Registry
	Authorizer            authorizer.Authorizer
	JenkinsPipelineConfig configapi.JenkinsPipelineConfig
	RESTClientConfig      restclient.Config
	Informers             shared.InformerFactory
	ClusterQuotaMapper    clusterquotamapping.ClusterQuotaMapper
	DefaultRegistryFn     imageapi.DefaultRegistryFunc
}

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

type WantsAuthorizer interface {
	SetAuthorizer(authorizer.Authorizer)
}

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

type WantsClusterQuotaMapper

type WantsClusterQuotaMapper interface {
	SetClusterQuotaMapper(clusterquotamapping.ClusterQuotaMapper)
}

WantsClusterQuotaMapper should be implemented by admission plugins that need to know how to map between cluster quota and namespaces

type WantsDefaultRegistryFunc

type WantsDefaultRegistryFunc interface {
	SetDefaultRegistryFunc(imageapi.DefaultRegistryFunc)
}

WantsDefaultRegistryFunc should be implemented by admission plugins that need to know the default registry address.

type WantsInformers

type WantsInformers interface {
	SetInformers(shared.InformerFactory)
}

WantsInformers should be implemented by admission plugins that will select its own informer

type WantsJenkinsPipelineConfig

type WantsJenkinsPipelineConfig interface {
	SetJenkinsPipelineConfig(jenkinsConfig configapi.JenkinsPipelineConfig)
}

WantsJenkinsPipelineConfig gives access to the JenkinsPipelineConfig. This is a historical oddity. It's likely that what we really wanted was this as an admission plugin config

type WantsOpenshiftClient

type WantsOpenshiftClient interface {
	SetOpenshiftClient(client.Interface)
}

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

type WantsOriginQuotaRegistry

type WantsOriginQuotaRegistry interface {
	SetOriginQuotaRegistry(quota.Registry)
}

WantsQuotaRegistry should be implemented by admission plugins that need a quota registry

type WantsProjectCache

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

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

type WantsRESTClientConfig

type WantsRESTClientConfig interface {
	SetRESTClientConfig(restclient.Config)
}

WantsRESTClientConfig gives access to a RESTClientConfig. It's useful for doing unusual things with transports.

Jump to

Keyboard shortcuts

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