Help us shape the future of Go! Take the 2026 Go Developer Survey

validator

package
v1.48.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of this admission plugin.
	PluginName = "Bastion"
)

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type Bastion

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

Bastion contains listers and and admission handler.

func New

func New() (*Bastion, error)

New creates a new Bastion admission plugin.

func (*Bastion) Admit

Admit validates and if appropriate mutates the given bastion against the shoot that it references.

func (*Bastion) AssignReadyFunc

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

AssignReadyFunc assigns the ready function to the admission handler.

func (*Bastion) SetInternalCoreClientset

func (v *Bastion) SetInternalCoreClientset(c coreclientset.Interface)

SetInternalCoreClientset sets the garden core clientset.

func (*Bastion) ValidateInitialization

func (v *Bastion) ValidateInitialization() error

ValidateInitialization 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