transform

package
v0.0.0-...-c2efb00 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadEnforcementAction = errors.New("invalid enforcement action")

Functions

func AllVariablesCEL

func AllVariablesCEL() []cel.NamedExpressionAccessor

func AllVariablesV1Beta1

func AllVariablesV1Beta1() []admissionregistrationv1beta1.Variable

func BindParamsCEL

func BindParamsCEL() []cel.NamedExpressionAccessor

func MatchExcludedNamespacesGlobCEL

func MatchExcludedNamespacesGlobCEL() []cel.ExpressionAccessor

func MatchExcludedNamespacesGlobV1Beta1

func MatchExcludedNamespacesGlobV1Beta1() admissionregistrationv1beta1.MatchCondition

func MatchKindsCEL

func MatchKindsCEL() []cel.ExpressionAccessor

func MatchNameGlobCEL

func MatchNameGlobCEL() []cel.ExpressionAccessor

func MatchNamespacesGlobCEL

func MatchNamespacesGlobCEL() []cel.ExpressionAccessor

func RequestToVersionedAttributes

func RequestToVersionedAttributes(request *admissionv1.AdmissionRequest) (*admission.VersionedAttributes, error)

Types

type RequestWrapper

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

FRICTION this wrapper class is excessive. Validator code should define an interface that only requires the methods it needs.

func (*RequestWrapper) AddAnnotation

func (w *RequestWrapper) AddAnnotation(_, _ string) error

func (*RequestWrapper) AddAnnotationWithLevel

func (w *RequestWrapper) AddAnnotationWithLevel(_, _ string, _ auditinternal.Level) error

func (*RequestWrapper) GetKind

func (w *RequestWrapper) GetKind() schema.GroupVersionKind

func (*RequestWrapper) GetName

func (w *RequestWrapper) GetName() string

func (*RequestWrapper) GetNamespace

func (w *RequestWrapper) GetNamespace() string

func (*RequestWrapper) GetObject

func (w *RequestWrapper) GetObject() runtime.Object

func (*RequestWrapper) GetOldObject

func (w *RequestWrapper) GetOldObject() runtime.Object

func (*RequestWrapper) GetOperation

func (w *RequestWrapper) GetOperation() admission.Operation

func (*RequestWrapper) GetOperationOptions

func (w *RequestWrapper) GetOperationOptions() runtime.Object

func (*RequestWrapper) GetReinvocationContext

func (w *RequestWrapper) GetReinvocationContext() admission.ReinvocationContext

func (*RequestWrapper) GetResource

func (w *RequestWrapper) GetResource() schema.GroupVersionResource

func (*RequestWrapper) GetSubresource

func (w *RequestWrapper) GetSubresource() string

func (*RequestWrapper) GetUserInfo

func (w *RequestWrapper) GetUserInfo() user.Info

func (*RequestWrapper) IsDryRun

func (w *RequestWrapper) IsDryRun() bool

Jump to

Keyboard shortcuts

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