- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for IsResourceRequest (0.26 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics_test.go
Name: "my-resource", Namespace: "my-namespace", IsResourceRequest: false, }, expectedScope: "resource", }, { name: "POST resource scope", requestInfo: &request.RequestInfo{ Verb: "create", Namespace: "my-namespace", IsResourceRequest: false, }, expectedScope: "resource", }, { name: "namespace scope",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 07:29:19 UTC 2023 - 14.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/selection_predicate_test.go
labelSelector: "", fieldSelector: "", indexLabels: []string{}, indexFields: []string{"metadata.namespace"}, ctx: request.WithRequestInfo(context.Background(), &request.RequestInfo{ IsResourceRequest: true, Path: "/api/v1/namespaces/default/pods", Verb: "list", APIPrefix: "api", APIGroup: "", APIVersion: "v1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 30 10:39:09 UTC 2023 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/gen_test.go
matchesAllNonResourceRequests bool // maps `matches bool` to `isResourceRequest bool` to digests digests map[bool]map[bool][]RequestDigest } func (ftr *fsTestingRecord) addDigest(digest RequestDigest, matches bool) { ftr.digests[matches][digest.RequestInfo.IsResourceRequest] = append(ftr.digests[matches][digest.RequestInfo.IsResourceRequest], digest) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go
// GetAPIVersion returns the version of the group requested, if a request is for a REST object. GetAPIVersion() string // IsResourceRequest returns true for requests to API resources, like /api/v1/nodes, // and false for non-resource endpoints like /api, /healthz IsResourceRequest() bool // GetPath returns the path of the request GetPath() string }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 14:36:14 UTC 2023 - 4.8K bytes - Viewed (0) -
plugin/pkg/admission/certificates/ctbattest/admission_test.go
} if a.GetName() != f.allowedName { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised resource name '%s'", a.GetName()), nil } if !a.IsResourceRequest() { return authorizer.DecisionDeny, fmt.Sprintf("unrecognised IsResourceRequest '%t'", a.IsResourceRequest()), nil } return f.decision, "", nil } type testAttributes struct { resource schema.GroupResource subresource string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go
NewRequestInfo(req *http.Request) (*RequestInfo, error) } // RequestInfo holds information parsed from the http.Request type RequestInfo struct { // IsResourceRequest indicates whether or not the request is for an API resource or subresource IsResourceRequest bool // Path is the URL path of the request Path string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 23 13:24:29 UTC 2023 - 9.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go
GetUser() user.Info GetVerb() string IsReadOnly() bool GetNamespace() string GetResource() string GetSubresource() string GetName() string GetAPIGroup() string GetAPIVersion() string IsResourceRequest() bool GetPath() string })(nil) // The user info accessors known to cache key construction. If this fails to compile, the cache // implementation may need to be updated. var _ user.Info = (interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
} return true } // Check whether the rule's non-resource URLs match the request attrs. func ruleMatchesNonResource(r *audit.PolicyRule, attrs authorizer.Attributes) bool { if attrs.IsResourceRequest() { return false } path := attrs.GetPath() for _, spec := range r.NonResourceURLs { if pathMatches(path, spec) { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 22:24:14 UTC 2022 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go
}) } } func TestLiterals(t *testing.T) { ui := &user.DefaultInfo{Name: "goodu", UID: "1", Groups: []string{"goodg1", "goodg2"}} reqRN := RequestDigest{ RequestInfo: &request.RequestInfo{ IsResourceRequest: true, Path: "/apis/goodapig/v1/namespaces/goodns/goodrscs", Verb: "goodverb", APIPrefix: "apis", APIGroup: "goodapig", APIVersion: "v1",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 13.3K bytes - Viewed (0)