kubernetes/plugin/pkg/auth/authorizer/rbac/rbac_test.go

func newRule(verbs, apiGroups, resources, nonResourceURLs string) rbacv1.PolicyRule {}

func newRole(name, namespace string, rules ...rbacv1.PolicyRule) *rbacv1.Role {}

func newClusterRole(name string, rules ...rbacv1.PolicyRule) *rbacv1.ClusterRole {}

const bindToRole

const bindToClusterRole

func newClusterRoleBinding(roleName string, subjects ...string) *rbacv1.ClusterRoleBinding {}

func newRoleBinding(namespace, roleName string, bindType uint16, subjects ...string) *rbacv1.RoleBinding {}

type defaultAttributes

func (d *defaultAttributes) String() string {}

func (d *defaultAttributes) GetUser() user.Info {}

func (d *defaultAttributes) GetVerb() string         {}

func (d *defaultAttributes) IsReadOnly() bool        {}

func (d *defaultAttributes) GetNamespace() string    {}

func (d *defaultAttributes) GetResource() string     {}

func (d *defaultAttributes) GetSubresource() string  {}

func (d *defaultAttributes) GetName() string         {}

func (d *defaultAttributes) GetAPIGroup() string     {}

func (d *defaultAttributes) GetAPIVersion() string   {}

func (d *defaultAttributes) IsResourceRequest() bool {}

func (d *defaultAttributes) GetPath() string         {}

func (d *defaultAttributes) GetFieldSelector() (fields.Requirements, error) {}

func (d *defaultAttributes) GetLabelSelector() (labels.Requirements, error) {}

func TestAuthorizer(t *testing.T) {}

func TestRuleMatches(t *testing.T) {}

type requestAttributeBuilder

func resourceRequest(verb string) *requestAttributeBuilder {}

func nonresourceRequest(verb string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) Group(group string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) Resource(resource string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) Subresource(subresource string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) Name(name string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) URL(url string) *requestAttributeBuilder {}

func (r *requestAttributeBuilder) New() authorizer.AttributesRecord {}

func BenchmarkAuthorize(b *testing.B) {}