v1

package
v0.8.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditPolicyFromRequest

func AuditPolicyFromRequest(request *admissionv1.AdmissionRequest) (*v1.AuditPolicy, error)

AuditPolicyFromRequest returns a AuditPolicy object from the webhook request. If the operation is a Delete operation, then the old object is returned. Otherwise, the new object is returned.

func AuditPolicyOldAndNewFromRequest

func AuditPolicyOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.AuditPolicy, *v1.AuditPolicy, error)

AuditPolicyOldAndNewFromRequest gets the old and new AuditPolicy objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for AuditPolicy. Similarly, if the request is a Create operation, then the old object is the zero value for AuditPolicy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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