Documentation ¶
Index ¶
- func SubjectsStrings(currentNamespace string, subjects []corev1.ObjectReference) ([]string, []string, []string, []string)
- func ToRole(in *authorizationv1.ClusterRole) *authorizationv1.Role
- func ToRoleBinding(in *authorizationv1.ClusterRoleBinding) *authorizationv1.RoleBinding
- func ToRoleBindingList(in *authorizationv1.ClusterRoleBindingList) *authorizationv1.RoleBindingList
- func ToRoleList(in *authorizationv1.ClusterRoleList) *authorizationv1.RoleList
- func ToRoleRef(in corev1.ObjectReference) corev1.ObjectReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubjectsStrings ¶
func SubjectsStrings(currentNamespace string, subjects []corev1.ObjectReference) ([]string, []string, []string, []string)
SubjectsStrings returns users, groups, serviceaccounts, unknown for display purposes. currentNamespace is used to hide the subject.Namespace for ServiceAccounts in the currentNamespace
func ToRole ¶
func ToRole(in *authorizationv1.ClusterRole) *authorizationv1.Role
func ToRoleBinding ¶
func ToRoleBinding(in *authorizationv1.ClusterRoleBinding) *authorizationv1.RoleBinding
func ToRoleBindingList ¶
func ToRoleBindingList(in *authorizationv1.ClusterRoleBindingList) *authorizationv1.RoleBindingList
func ToRoleList ¶
func ToRoleList(in *authorizationv1.ClusterRoleList) *authorizationv1.RoleList
func ToRoleRef ¶
func ToRoleRef(in corev1.ObjectReference) corev1.ObjectReference
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.