Documentation ¶
Index ¶
- func ClusterRoleBindingFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRoleBinding, error)
- func ClusterRoleBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRoleBinding, *v1.ClusterRoleBinding, error)
- func ClusterRoleFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRole, error)
- func ClusterRoleOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRole, *v1.ClusterRole, error)
- func RoleBindingFromRequest(request *admissionv1.AdmissionRequest) (*v1.RoleBinding, error)
- func RoleBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.RoleBinding, *v1.RoleBinding, error)
- func RoleFromRequest(request *admissionv1.AdmissionRequest) (*v1.Role, error)
- func RoleOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.Role, *v1.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterRoleBindingFromRequest ¶
func ClusterRoleBindingFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRoleBinding, error)
ClusterRoleBindingFromRequest returns a ClusterRoleBinding 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 ClusterRoleBindingOldAndNewFromRequest ¶
func ClusterRoleBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRoleBinding, *v1.ClusterRoleBinding, error)
ClusterRoleBindingOldAndNewFromRequest gets the old and new ClusterRoleBinding objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for ClusterRoleBinding. Similarly, if the request is a Create operation, then the old object is the zero value for ClusterRoleBinding.
func ClusterRoleFromRequest ¶
func ClusterRoleFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRole, error)
ClusterRoleFromRequest returns a ClusterRole 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 ClusterRoleOldAndNewFromRequest ¶
func ClusterRoleOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.ClusterRole, *v1.ClusterRole, error)
ClusterRoleOldAndNewFromRequest gets the old and new ClusterRole objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for ClusterRole. Similarly, if the request is a Create operation, then the old object is the zero value for ClusterRole.
func RoleBindingFromRequest ¶
func RoleBindingFromRequest(request *admissionv1.AdmissionRequest) (*v1.RoleBinding, error)
RoleBindingFromRequest returns a RoleBinding 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 RoleBindingOldAndNewFromRequest ¶
func RoleBindingOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.RoleBinding, *v1.RoleBinding, error)
RoleBindingOldAndNewFromRequest gets the old and new RoleBinding objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for RoleBinding. Similarly, if the request is a Create operation, then the old object is the zero value for RoleBinding.
func RoleFromRequest ¶
func RoleFromRequest(request *admissionv1.AdmissionRequest) (*v1.Role, error)
RoleFromRequest returns a Role 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 RoleOldAndNewFromRequest ¶
func RoleOldAndNewFromRequest(request *admissionv1.AdmissionRequest) (*v1.Role, *v1.Role, error)
RoleOldAndNewFromRequest gets the old and new Role objects, respectively, from the webhook request. If the request is a Delete operation, then the new object is the zero value for Role. Similarly, if the request is a Create operation, then the old object is the zero value for Role.
Types ¶
This section is empty.