Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetVerbs (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/rule.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package authorizer
    
    type ResourceRuleInfo interface {
    	// GetVerbs returns a list of kubernetes resource API verbs.
    	GetVerbs() []string
    	// GetAPIGroups return the names of the APIGroup that contains the resources.
    	GetAPIGroups() []string
    	// GetResources return a list of resources the rule applies to.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 01 11:09:43 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  2. pkg/registry/authorization/selfsubjectrulesreview/rest.go

    	rules := make([]authorizationapi.ResourceRule, len(infos))
    	for i, info := range infos {
    		rules[i] = authorizationapi.ResourceRule{
    			Verbs:         info.GetVerbs(),
    			APIGroups:     info.GetAPIGroups(),
    			Resources:     info.GetResources(),
    			ResourceNames: info.GetResourceNames(),
    		}
    	}
    	return rules
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. pkg/auth/authorizer/abac/abac.go

    						Verbs:           getVerbs(p.Spec.Readonly),
    						NonResourceURLs: []string{p.Spec.NonResourcePath},
    					}
    					var nonResourceRule authorizer.NonResourceRuleInfo = &r
    					nonResourceRules = append(nonResourceRules, nonResourceRule)
    				}
    			}
    		}
    	}
    	return resourceRules, nonResourceRules, false, nil
    }
    
    func getVerbs(isReadOnly bool) []string {
    	if isReadOnly {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 11 03:11:30 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authorization/union/union_test.go

    	rules := make([]authorizer.DefaultResourceRuleInfo, len(infos))
    	for i, info := range infos {
    		rules[i] = authorizer.DefaultResourceRuleInfo{
    			Verbs:         info.GetVerbs(),
    			APIGroups:     info.GetAPIGroups(),
    			Resources:     info.GetResources(),
    			ResourceNames: info.GetResourceNames(),
    		}
    	}
    	return rules
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 7.7K bytes
    - Viewed (0)
  5. pkg/auth/authorizer/abac/abac_test.go

    	rules := make([]authorizer.DefaultResourceRuleInfo, len(infos))
    	for i, info := range infos {
    		rules[i] = authorizer.DefaultResourceRuleInfo{
    			Verbs:         info.GetVerbs(),
    			APIGroups:     info.GetAPIGroups(),
    			Resources:     info.GetResources(),
    			ResourceNames: info.GetResourceNames(),
    		}
    	}
    	return rules
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
Back to top