func ResourceMatches(rule *PolicyRule, combinedRequestedResource, requestedSubresource string) bool { … }
func SubjectsStrings(subjects []Subject) ([]string, []string, []string, []string) { … }
func (r PolicyRule) String() string { … }
func (r PolicyRule) CompactString() string { … }
type PolicyRuleBuilder …
func NewRule(verbs ...string) *PolicyRuleBuilder { … }
func (r *PolicyRuleBuilder) Groups(groups ...string) *PolicyRuleBuilder { … }
func (r *PolicyRuleBuilder) Resources(resources ...string) *PolicyRuleBuilder { … }
func (r *PolicyRuleBuilder) Names(names ...string) *PolicyRuleBuilder { … }
func (r *PolicyRuleBuilder) URLs(urls ...string) *PolicyRuleBuilder { … }
func (r *PolicyRuleBuilder) RuleOrDie() PolicyRule { … }
func combine(s1, s2 []string) []string { … }
func (r *PolicyRuleBuilder) Rule() (PolicyRule, error) { … }
type ClusterRoleBindingBuilder …
func NewClusterBinding(clusterRoleName string) *ClusterRoleBindingBuilder { … }
func (r *ClusterRoleBindingBuilder) Groups(groups ...string) *ClusterRoleBindingBuilder { … }
func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder { … }
func (r *ClusterRoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *ClusterRoleBindingBuilder { … }
func (r *ClusterRoleBindingBuilder) BindingOrDie() ClusterRoleBinding { … }
func (r *ClusterRoleBindingBuilder) Binding() (ClusterRoleBinding, error) { … }
type RoleBindingBuilder …
func NewRoleBinding(roleName, namespace string) *RoleBindingBuilder { … }
func NewRoleBindingForClusterRole(roleName, namespace string) *RoleBindingBuilder { … }
func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder { … }
func (r *RoleBindingBuilder) Users(users ...string) *RoleBindingBuilder { … }
func (r *RoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *RoleBindingBuilder { … }
func (r *RoleBindingBuilder) BindingOrDie() RoleBinding { … }
func (r *RoleBindingBuilder) Binding() (RoleBinding, error) { … }
type SortableRuleSlice …
func (s SortableRuleSlice) Len() int { … }
func (s SortableRuleSlice) Swap(i, j int) { … }
func (s SortableRuleSlice) Less(i, j int) bool { … }