rbac

package
v0.0.0-...-8d69865 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClusterRole

func GenerateClusterRole() *v1beta1.ClusterRole

GenerateClusterRole generates namespace-creater ClusterRole which has the permission of namespaces resource.

func GenerateClusterRoleBindingByTenant

func GenerateClusterRoleBindingByTenant(tenant string) *v1beta1.ClusterRoleBinding

GenerateClusterRoleBindingByTenant generate ClusterRoleBinding which allows anyone in the "tenant" group to create namespace.

func GenerateRoleBinding

func GenerateRoleBinding(namespace, tenant string) *v1beta1.RoleBinding

GenerateRoleBinding generates rolebinding which allows user "tenant" has deault-role in the tenant namespace.

func GenerateRoleByNamespace

func GenerateRoleByNamespace(namespace string) *v1beta1.Role

GenerateRoleByNamespace generates default-role which has all the permissions in the namespace.

func GenerateServiceAccountRoleBinding

func GenerateServiceAccountRoleBinding(namespace, tenant string) *v1beta1.RoleBinding

GenerateServiceAccountRoleBinding generates rolebinding of service account in the namespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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