v3

package
v0.4.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterFromRequest

func ClusterFromRequest(request *admissionv1.AdmissionRequest) (*v3.Cluster, error)

ClusterFromRequest returns a Cluster 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 ClusterOldAndNewFromRequest

func ClusterOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.Cluster, *v3.Cluster, error)

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

func ClusterRoleTemplateBindingFromRequest

func ClusterRoleTemplateBindingFromRequest(request *admissionv1.AdmissionRequest) (*v3.ClusterRoleTemplateBinding, error)

ClusterRoleTemplateBindingFromRequest returns a ClusterRoleTemplateBinding 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 ClusterRoleTemplateBindingOldAndNewFromRequest

func ClusterRoleTemplateBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.ClusterRoleTemplateBinding, *v3.ClusterRoleTemplateBinding, error)

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

func FeatureFromRequest

func FeatureFromRequest(request *admissionv1.AdmissionRequest) (*v3.Feature, error)

FeatureFromRequest returns a Feature 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 FeatureOldAndNewFromRequest

func FeatureOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.Feature, *v3.Feature, error)

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

func FleetWorkspaceFromRequest

func FleetWorkspaceFromRequest(request *admissionv1.AdmissionRequest) (*v3.FleetWorkspace, error)

FleetWorkspaceFromRequest returns a FleetWorkspace 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 FleetWorkspaceOldAndNewFromRequest

func FleetWorkspaceOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.FleetWorkspace, *v3.FleetWorkspace, error)

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

func GlobalRoleBindingFromRequest

func GlobalRoleBindingFromRequest(request *admissionv1.AdmissionRequest) (*v3.GlobalRoleBinding, error)

GlobalRoleBindingFromRequest returns a GlobalRoleBinding 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 GlobalRoleBindingOldAndNewFromRequest

func GlobalRoleBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.GlobalRoleBinding, *v3.GlobalRoleBinding, error)

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

func GlobalRoleFromRequest

func GlobalRoleFromRequest(request *admissionv1.AdmissionRequest) (*v3.GlobalRole, error)

GlobalRoleFromRequest returns a GlobalRole 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 GlobalRoleOldAndNewFromRequest

func GlobalRoleOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.GlobalRole, *v3.GlobalRole, error)

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

func NodeDriverFromRequest added in v0.3.6

func NodeDriverFromRequest(request *admissionv1.AdmissionRequest) (*v3.NodeDriver, error)

NodeDriverFromRequest returns a NodeDriver 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 NodeDriverOldAndNewFromRequest added in v0.3.6

func NodeDriverOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.NodeDriver, *v3.NodeDriver, error)

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

func PodSecurityAdmissionConfigurationTemplateFromRequest added in v0.3.2

func PodSecurityAdmissionConfigurationTemplateFromRequest(request *admissionv1.AdmissionRequest) (*v3.PodSecurityAdmissionConfigurationTemplate, error)

PodSecurityAdmissionConfigurationTemplateFromRequest returns a PodSecurityAdmissionConfigurationTemplate 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 PodSecurityAdmissionConfigurationTemplateOldAndNewFromRequest added in v0.3.2

func PodSecurityAdmissionConfigurationTemplateOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.PodSecurityAdmissionConfigurationTemplate, *v3.PodSecurityAdmissionConfigurationTemplate, error)

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

func ProjectFromRequest added in v0.4.0

func ProjectFromRequest(request *admissionv1.AdmissionRequest) (*v3.Project, error)

ProjectFromRequest returns a Project 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 ProjectOldAndNewFromRequest added in v0.4.0

func ProjectOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.Project, *v3.Project, error)

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

func ProjectRoleTemplateBindingFromRequest

func ProjectRoleTemplateBindingFromRequest(request *admissionv1.AdmissionRequest) (*v3.ProjectRoleTemplateBinding, error)

ProjectRoleTemplateBindingFromRequest returns a ProjectRoleTemplateBinding 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 ProjectRoleTemplateBindingOldAndNewFromRequest

func ProjectRoleTemplateBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.ProjectRoleTemplateBinding, *v3.ProjectRoleTemplateBinding, error)

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

func RoleTemplateFromRequest

func RoleTemplateFromRequest(request *admissionv1.AdmissionRequest) (*v3.RoleTemplate, error)

RoleTemplateFromRequest returns a RoleTemplate 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 RoleTemplateOldAndNewFromRequest

func RoleTemplateOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v3.RoleTemplate, *v3.RoleTemplate, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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