v3

package
v0.2.6-rc7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 ProjectRoleTemplateBindingFromRequest

func ProjectRoleTemplateBindingFromRequest(request *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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 *webhook.Request) (*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