package resource
import "k8s.io/kubernetes/pkg/registry/resource"
Index ¶
- func AuthorizedForAdmin(ctx context.Context, deviceRequests []resource.DeviceRequest, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList
- func AuthorizedForAdminStatus(ctx context.Context, newAllocationResult, oldAllocationResult []resource.DeviceRequestAllocationResult, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList
Functions ¶
func AuthorizedForAdmin ¶
func AuthorizedForAdmin(ctx context.Context, deviceRequests []resource.DeviceRequest, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList
AuthorizedForAdmin checks if the request is authorized to get admin access to devices based on namespace label
func AuthorizedForAdminStatus ¶
func AuthorizedForAdminStatus(ctx context.Context, newAllocationResult, oldAllocationResult []resource.DeviceRequestAllocationResult, namespaceName string, nsClient v1.NamespaceInterface) field.ErrorList
AuthorizedForAdminStatus checks if the request status is authorized to get admin access to devices based on namespace label
Source Files ¶
utils.go
Directories ¶
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.