2025-04-01 10:38:02 +09: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"
)