Back to godoc.org

Package validator

v1.7.1
Latest Go to latest
Published: Jul 9, 2020 | Licenses: Apache-2.0 , BSD-2-Clause , MIT , MPL-2.0 | Module: github.com/gardener/gardener

Index

Package Files

Constants

const (
	// PluginName is the name of this admission plugin.
	PluginName = "ShootValidator"
)

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

type ValidateShoot

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

ValidateShoot contains listers and and admission handler.

func New

func New() (*ValidateShoot, error)

New creates a new ValidateShoot admission plugin.

func (*ValidateShoot) Admit

func (v *ValidateShoot) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error

Admit validates the Shoot details against the referenced CloudProfile.

func (*ValidateShoot) AssignReadyFunc

func (v *ValidateShoot) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*ValidateShoot) SetInternalCoreInformerFactory

func (v *ValidateShoot) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ValidateShoot) ValidateInitialization

func (v *ValidateShoot) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier