The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/pkg/apimachinery/utils/verbs.go

26 lines
1.0 KiB

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"
)