clusterroletemplatebinding

package
v0.2.9-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package clusterroletemplatebinding is used for validating clusterroletemplatebing admission request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator added in v0.2.8

type Validator struct {
	// contains filtered or unexported fields
}

Validator conforms to the webhook.Handler interface and is used for validating request for clusteroletemplatebindings.

func NewValidator

func NewValidator(crtb *resolvers.CRTBRuleResolver, defaultResolver k8validation.AuthorizationRuleResolver,
	roleTemplateResolver *auth.RoleTemplateResolver) *Validator

NewValidator will create a newly allocated Validator.

func (*Validator) Admit added in v0.2.8

func (v *Validator) Admit(response *webhook.Response, request *webhook.Request) error

Admit is the entrypoint for the validator. Admit will return an error if it unable to process the request. If this function is called without NewValidator(..) calls will panic.

Jump to

Keyboard shortcuts

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