Documentation ¶
Index ¶
- func CheckAccessOnResourcesInNamespace(client *kubernetes.Clientset, namespace string, resourceList []GroupResource, ...) error
- func GetTenantResoureQuotas(tenantNamespace string, tclient *kubernetes.Clientset) []string
- func RunAccessCheck(client *kubernetes.Clientset, namespace string, resource GroupResource, ...) (bool, string, error)
- type GroupResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessOnResourcesInNamespace ¶
func CheckAccessOnResourcesInNamespace(client *kubernetes.Clientset, namespace string, resourceList []GroupResource, verbs []string) error
func GetTenantResoureQuotas ¶
func GetTenantResoureQuotas(tenantNamespace string, tclient *kubernetes.Clientset) []string
func RunAccessCheck ¶
func RunAccessCheck(client *kubernetes.Clientset, namespace string, resource GroupResource, verb string) (bool, string, error)
RunAccessCheck checks that given client can perform the given verb on the resource or not
Types ¶
type GroupResource ¶
type GroupResource struct { APIGroup string APIResource metav1.APIResource ResourceName string }
Click to show internal directories.
Click to hide internal directories.