util

package
v4.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL