- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NonResourceAttributesFrom (0.51 sec)
-
pkg/registry/authorization/util/helpers_test.go
"Subresource", "Name", // Fields we copy in NonResourceAttributesFrom "Path", "Verb", ) reflect.TypeOf(authorizationapi.ResourceAttributes{}).FieldByNameFunc(func(name string) bool { if !knownResourceAttributesNames.Has(name) { t.Errorf("authorizationapi.ResourceAttributes has a new field: %q. Add to ResourceAttributesFrom/NonResourceAttributesFrom as appropriate, then add to knownResourceAttributesNames", name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 16:06:18 UTC 2023 - 4.7K bytes - Viewed (0) -
pkg/registry/authorization/util/helpers.go
Subresource: in.Subresource, Name: in.Name, ResourceRequest: true, } } // NonResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for non resource access func NonResourceAttributesFrom(user user.Info, in authorizationapi.NonResourceAttributes) authorizer.AttributesRecord { return authorizer.AttributesRecord{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 16:06:18 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/registry/authorization/selfsubjectaccessreview/rest.go
if selfSAR.Spec.ResourceAttributes != nil { authorizationAttributes = authorizationutil.ResourceAttributesFrom(userToCheck, *selfSAR.Spec.ResourceAttributes) } else { authorizationAttributes = authorizationutil.NonResourceAttributesFrom(userToCheck, *selfSAR.Spec.NonResourceAttributes) } decision, reason, evaluationErr := r.authorizer.Authorize(ctx, authorizationAttributes) selfSAR.Status = authorizationapi.SubjectAccessReviewStatus{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 3.1K bytes - Viewed (0)