access

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 16 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

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

func SendEmailForClusterRoleRequest

func SendEmailForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, purpose, subject, clusterUID string, recipient []string)

func SendEmailForRoleRequest

func SendEmailForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, purpose, subject, clusterUID string, recipient []string)

func SendEmailForTenantRequest

func SendEmailForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, purpose, subject, clusterUID string, recipient []string)

func SendSlackNotificationForClusterRoleRequest

func SendSlackNotificationForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, purpose, subject, clusterUID string)

Send a slack notification for cluster role request

func SendSlackNotificationForRoleRequest

func SendSlackNotificationForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, purpose, subject, clusterUID string)

Send a slack notification for role request

func SendSlackNotificationForTenantRequest

func SendSlackNotificationForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, purpose, subject, clusterUID string)

Send a slack notification for tenant request

Types

This section is empty.

Jump to

Keyboard shortcuts

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