Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CanonicalVerb (0.52 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go

    	}
    	if requestInfo, ok := request.RequestInfoFrom(ctx); ok {
    		if requestInfo.IsResourceRequest {
    			return "cluster"
    		}
    	}
    	return ""
    }
    
    // CanonicalVerb distinguishes LISTs from GETs (and HEADs). It assumes verb is
    // UPPERCASE.
    func CanonicalVerb(verb string, scope string) string {
    	switch verb {
    	case "GET", "HEAD":
    		if scope != "resource" && scope != "" {
    			return "LIST"
    		}
    		return "GET"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 35K bytes
    - Viewed (0)
Back to top