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() rbacv1.PolicyRule { … }
func (r *PolicyRuleBuilder) Rule() (rbacv1.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() rbacv1.ClusterRoleBinding { … }
func (r *ClusterRoleBindingBuilder) Binding() (rbacv1.ClusterRoleBinding, error) { … }
type RoleBindingBuilder …
func NewRoleBinding(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() rbacv1.RoleBinding { … }
func (r *RoleBindingBuilder) Binding() (rbacv1.RoleBinding, error) { … }