access

package
v1.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clientset to be synced by the custom resources

View Source
var EdgenetClientset clientset.Interface
View Source
var SlackChannelIdPath *string
View Source
var SlackTokenPath *string

Functions

func ApplyTenantResourceQuota

func ApplyTenantResourceQuota(name string, ownerReferences []metav1.OwnerReference, claim corev1alpha1.ResourceTuning, applied chan<- error)

ApplyTenantResourceQuota generates a tenant resource quota with the name provided

func CreateClusterRoles

func CreateClusterRoles() error

CreateClusterRoles generate a cluster role for tenant owners, admins, and collaborators

func CreateObjectSpecificClusterRole

func CreateObjectSpecificClusterRole(apiGroup, resource, resourceName, name string, verbs []string, ownerReferences []metav1.OwnerReference) (string, error)

CreateObjectSpecificClusterRole generates a object specific cluster role to allow the user access

func CreateObjectSpecificClusterRoleBinding

func CreateObjectSpecificClusterRoleBinding(roleName, email string, roleBindLabels map[string]string, ownerReferences []metav1.OwnerReference) error

CreateObjectSpecificClusterRoleBinding links the cluster role up with the user

func CreateTenant

func CreateTenant(tenantRequest *registrationv1alpha1.TenantRequest) error

Create function is for being used by other resources to create a tenant

Types

This section is empty.

Jump to

Keyboard shortcuts

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