Files
grafana/pkg/apimachinery/utils/verbs.go
Karl Persson c593b20465 Zanana: Add custom verb for get_permissions and set_permissions. (#98616)
* Add custom verb for get_permissions and update_permissions.

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2025-01-10 11:49:26 +01:00

27 lines
1.0 KiB
Go

package utils
// Kubernetes request verbs
// http://kubernetes.io/docs/reference/access-authn-authz/authorization/#request-verb-resource
const (
// VerbGet is mapped from HTTP GET for individual resource
VerbGet = "get"
// VerbList is mapped from HTTP GET for collections
VerbList = "list"
// VerbWatch is mapped from HTTP GET for watching an individual resource or collection of resources
VerbWatch = "watch"
// VerbCreate is mapped from HTTP POST
VerbCreate = "create"
// VerbUpdate is mapped from HTTP PUT
VerbUpdate = "update"
// VerbPatch is mapped from HTTP PATCH
VerbPatch = "patch"
// VerbDelete is mapped from HTTP DELETE for individual resources
VerbDelete = "delete"
// VerbDelete is mapped from HTTP DELETE for collections
VerbDeleteCollection = "deletecollection"
// VerbGetPermissions is used when fetching resource specific permissions
VerbGetPermissions = "get_permissions"
// VerbSetPermissions is used when setting resource specific permissions
VerbSetPermissions = "set_permissions"
)