rbac

package
v0.0.0-...-8023bdc Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Source Files

  • rbac.go

Jump to

Keyboard shortcuts

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