utils

package
v0.0.0-...-44dad58 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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
}

Directories

Path Synopsis
resources
pod

Jump to

Keyboard shortcuts

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