Documentation ¶
Index ¶
- func ClusterRoleBindingFromRBAC(obj *rbac.ClusterRoleBinding) (*authorizationapi.ClusterRoleBinding, error)
- func ClusterRoleBindingToRBAC(obj *authorizationapi.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
- func ClusterRoleFromRBAC(obj *rbac.ClusterRole) (*authorizationapi.ClusterRole, error)
- func ClusterRoleToRBAC(obj *authorizationapi.ClusterRole) (*rbac.ClusterRole, error)
- func RoleBindingFromRBAC(obj *rbac.RoleBinding) (*authorizationapi.RoleBinding, error)
- func RoleBindingToRBAC(obj *authorizationapi.RoleBinding) (*rbac.RoleBinding, error)
- func RoleFromRBAC(obj *rbac.Role) (*authorizationapi.Role, error)
- func RoleToRBAC(obj *authorizationapi.Role) (*rbac.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 *rbac.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) (*rbac.ClusterRoleBinding, error)
ClusterRoleBindingToRBAC turns an OpenShift ClusterRoleBinding into a Kubernetes RBAC ClusterRoleBinding, the returned object is safe to mutate
func ClusterRoleFromRBAC ¶
func ClusterRoleFromRBAC(obj *rbac.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) (*rbac.ClusterRole, error)
ClusterRoleToRBAC turns an OpenShift ClusterRole into a Kubernetes RBAC ClusterRole, the returned object is safe to mutate
func RoleBindingFromRBAC ¶
func RoleBindingFromRBAC(obj *rbac.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) (*rbac.RoleBinding, error)
RoleBindingToRBAC turns an OpenShift RoleBinding into a Kubernetes RBAC Rolebinding, the returned object is safe to mutate
func RoleFromRBAC ¶
func RoleFromRBAC(obj *rbac.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) (*rbac.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.