Documentation ¶
Index ¶
- func ClusterRoleBindingFromRBAC(obj *rbacv1.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
- func ClusterRoleBindingToRBAC(obj *authorizationapi.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
- func ClusterRoleFromRBAC(obj *rbacv1.ClusterRole) (*authorizationapi.ClusterRole, error)
- func ClusterRoleToRBAC(obj *authorizationapi.ClusterRole) (*rbacv1.ClusterRole, error)
- func RoleBindingFromRBAC(obj *rbacv1.RoleBinding) (*authorizationapi.RoleBinding, error)
- func RoleBindingToRBAC(obj *authorizationapi.RoleBinding) (*rbacv1.RoleBinding, error)
- func RoleFromRBAC(obj *rbacv1.Role) (*authorizationapi.Role, error)
- func RoleToRBAC(obj *authorizationapi.Role) (*rbacv1.Role, error)
- func ToDefaultAuthorizationAttributes(user user.Info, namespace string, in authorizationapi.Action) authorizer.Attributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterRoleBindingFromRBAC ¶
func ClusterRoleBindingFromRBAC(obj *rbacv1.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
ClusterRoleBindingFromRBAC turns a Kuberenets RBAC ClusterRoleBinding into an Openshift ClusterRoleBinding, the returned object is safe to mutate
func ClusterRoleBindingToRBAC ¶
func ClusterRoleBindingToRBAC(obj *authorizationapi.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
ClusterRoleBindingToRBAC turns an OpenShift ClusterRoleBinding into a Kubernetes RBAC ClusterRoleBinding, the returned object is safe to mutate
func ClusterRoleFromRBAC ¶
func ClusterRoleFromRBAC(obj *rbacv1.ClusterRole) (*authorizationapi.ClusterRole, error)
ClusterRoleFromRBAC turns a Kubernetes RBAC ClusterRole into an Openshift ClusterRole, the returned object is safe to mutate
func ClusterRoleToRBAC ¶
func ClusterRoleToRBAC(obj *authorizationapi.ClusterRole) (*rbacv1.ClusterRole, error)
ClusterRoleToRBAC turns an OpenShift ClusterRole into a Kubernetes RBAC ClusterRole, the returned object is safe to mutate
func RoleBindingFromRBAC ¶
func RoleBindingFromRBAC(obj *rbacv1.RoleBinding) (*authorizationapi.RoleBinding, error)
RoleBindingFromRBAC turns a Kubernetes RBAC RoleBinding into an OpenShift Rolebinding, the returned object is safe to mutate
func RoleBindingToRBAC ¶
func RoleBindingToRBAC(obj *authorizationapi.RoleBinding) (*rbacv1.RoleBinding, error)
RoleBindingToRBAC turns an OpenShift RoleBinding into a Kubernetes RBAC Rolebinding, the returned object is safe to mutate
func RoleFromRBAC ¶
func RoleFromRBAC(obj *rbacv1.Role) (*authorizationapi.Role, error)
RoleFromRBAC turns a Kubernetes RBAC Role into an OpenShift Role, the returned object is safe to mutate
func RoleToRBAC ¶
func RoleToRBAC(obj *authorizationapi.Role) (*rbacv1.Role, error)
RoleToRBAC turns an OpenShift Role into a Kubernetes RBAC Role, the returned object is safe to mutate
func ToDefaultAuthorizationAttributes ¶
func ToDefaultAuthorizationAttributes(user user.Info, namespace string, in authorizationapi.Action) authorizer.Attributes
ToDefaultAuthorizationAttributes coerces Action to authorizer.Attributes.
Types ¶
This section is empty.