permission

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clientset to be synced by the custom resources

Functions

func CheckAuthorization

func CheckAuthorization(namespace, email, resource, resourceName string) bool

CheckAuthorization returns true if the user is holder of a role

func CreateAUPRoleBinding

func CreateAUPRoleBinding(userCopy *apps_v1alpha.User, userOwnerReferences []metav1.OwnerReference) error

CreateAUPRoleBinding links the AUP up with the user

func CreateAuthorityAdminRole

func CreateAuthorityAdminRole() error

CreateAuthorityAdminRole generates roles for authority admins

func CreateAuthorityUserRole

func CreateAuthorityUserRole() error

CreateAuthorityUserRole generates roles for authority users

func CreateClusterRoles

func CreateClusterRoles(authorityCopy *apps_v1alpha.Authority) error

CreateClusterRoles create or update the cluster role attached to the authority

func CreateSliceRoles

func CreateSliceRoles() error

CreateSliceRoles generated cluster roles for slices

func CreateTeamRoles

func CreateTeamRoles() error

CreateTeamRoles generated cluster roles for teams

func CreateUserAUPRole

func CreateUserAUPRole(userCopy *apps_v1alpha.User, userOwnerReferences []metav1.OwnerReference) error

CreateUserAUPRole generates a dedicated role to allow the user access to accept/reject AUP, even if the AUP is expired

func CreateUserSpecificRole

func CreateUserSpecificRole(userCopy *apps_v1alpha.User, userOwnerNamespace *corev1.Namespace, userOwnerReferences []metav1.OwnerReference) error

CreateUserSpecificRole user-specific roles regarding the resources of authority and users

func EstablishPrivateRoleBindings

func EstablishPrivateRoleBindings(userCopy *apps_v1alpha.User) error

EstablishPrivateRoleBindings generates role bindings to allow users to access their user objects and the authority to which they belong

func EstablishRoleBindings

func EstablishRoleBindings(userCopy *apps_v1alpha.User, namespace string, namespaceType string) error

EstablishRoleBindings generates the rolebindings according to user roles in the namespace specified

Types

This section is empty.

Jump to

Keyboard shortcuts

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