Documentation ¶
Index ¶
- func ClusterFromRequest(request *webhook.Request) (*v3.Cluster, error)
- func ClusterOldAndNewFromRequest(request *webhook.Request) (*v3.Cluster, *v3.Cluster, error)
- func ClusterRoleTemplateBindingFromRequest(request *webhook.Request) (*v3.ClusterRoleTemplateBinding, error)
- func ClusterRoleTemplateBindingOldAndNewFromRequest(request *webhook.Request) (*v3.ClusterRoleTemplateBinding, *v3.ClusterRoleTemplateBinding, error)
- func FeatureFromRequest(request *webhook.Request) (*v3.Feature, error)
- func FeatureOldAndNewFromRequest(request *webhook.Request) (*v3.Feature, *v3.Feature, error)
- func FleetWorkspaceFromRequest(request *webhook.Request) (*v3.FleetWorkspace, error)
- func FleetWorkspaceOldAndNewFromRequest(request *webhook.Request) (*v3.FleetWorkspace, *v3.FleetWorkspace, error)
- func GlobalRoleBindingFromRequest(request *webhook.Request) (*v3.GlobalRoleBinding, error)
- func GlobalRoleBindingOldAndNewFromRequest(request *webhook.Request) (*v3.GlobalRoleBinding, *v3.GlobalRoleBinding, error)
- func GlobalRoleFromRequest(request *webhook.Request) (*v3.GlobalRole, error)
- func GlobalRoleOldAndNewFromRequest(request *webhook.Request) (*v3.GlobalRole, *v3.GlobalRole, error)
- func ProjectRoleTemplateBindingFromRequest(request *webhook.Request) (*v3.ProjectRoleTemplateBinding, error)
- func ProjectRoleTemplateBindingOldAndNewFromRequest(request *webhook.Request) (*v3.ProjectRoleTemplateBinding, *v3.ProjectRoleTemplateBinding, error)
- func RoleTemplateFromRequest(request *webhook.Request) (*v3.RoleTemplate, error)
- func RoleTemplateOldAndNewFromRequest(request *webhook.Request) (*v3.RoleTemplate, *v3.RoleTemplate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterFromRequest ¶
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 ¶
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 ¶
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 ¶
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.