{"modulePath":"git.openstack.org/openstack/stackube","version":"v0.0.0-20190419195041-8023bdc86440","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package rbac\n\n## Functions\n\n```go\nfunc GenerateClusterRole() *v1beta1.ClusterRole\n```\nGenerateClusterRole generates namespace-creater ClusterRole which has the permission of namespaces resource.\n\n```go\nfunc GenerateClusterRoleBindingByTenant(tenant string) *v1beta1.ClusterRoleBinding\n```\nGenerateClusterRoleBindingByTenant generate ClusterRoleBinding which allows anyone in the \"tenant\" group to create namespace.\n\n```go\nfunc GenerateRoleBinding(namespace, tenant string) *v1beta1.RoleBinding\n```\nGenerateRoleBinding generates rolebinding which allows user \"tenant\" has deault-role in the tenant namespace.\n\n```go\nfunc GenerateRoleByNamespace(namespace string) *v1beta1.Role\n```\nGenerateRoleByNamespace generates default-role which has all the permissions in the namespace.\n\n```go\nfunc GenerateServiceAccountRoleBinding(namespace, tenant string) *v1beta1.RoleBinding\n```\nGenerateServiceAccountRoleBinding generates rolebinding of service account in the namespace.\n\n","path":"git.openstack.org/openstack/stackube/pkg/auth-controller/rbacmanager/rbac","name":"rbac","synopsis":"","isRedistributable":true}
