Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + const APIGroupAll + const AutoUpdateAnnotationKey + const GroupKind + const GroupName + const NonResourceAll + const ResourceAll + const ServiceAccountKind + const UserKind + const VerbAll + var AddToScheme = SchemeBuilder.AddToScheme + var SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + var SchemeGroupVersion = schema.GroupVersion + func APIGroupMatches(rule *PolicyRule, requestedGroup string) bool + func Kind(kind string) schema.GroupKind + func NonResourceURLMatches(rule *PolicyRule, requestedURL string) bool + func RegisterDeepCopies(scheme *runtime.Scheme) error + func Resource(resource string) schema.GroupResource + func ResourceMatches(rule *PolicyRule, combinedRequestedResource, requestedSubresource string) bool + func ResourceNameMatches(rule *PolicyRule, requestedName string) bool + func RoleRefGroupKind(roleRef RoleRef) schema.GroupKind + func SubjectsStrings(subjects []Subject) ([]string, []string, []string, []string) + func VerbMatches(rule *PolicyRule, requestedVerb string) bool + type ClusterRole struct + Rules []PolicyRule + func (in *ClusterRole) DeepCopy() *ClusterRole + func (in *ClusterRole) DeepCopyInto(out *ClusterRole) + func (in *ClusterRole) DeepCopyObject() runtime.Object + type ClusterRoleBinding struct + RoleRef RoleRef + Subjects []Subject + func (in *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding + func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) + func (in *ClusterRoleBinding) DeepCopyObject() runtime.Object + type ClusterRoleBindingBuilder struct + ClusterRoleBinding ClusterRoleBinding + func NewClusterBinding(clusterRoleName string) *ClusterRoleBindingBuilder + func (r *ClusterRoleBindingBuilder) Binding() (ClusterRoleBinding, error) + func (r *ClusterRoleBindingBuilder) BindingOrDie() ClusterRoleBinding + func (r *ClusterRoleBindingBuilder) Groups(groups ...string) *ClusterRoleBindingBuilder + func (r *ClusterRoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *ClusterRoleBindingBuilder + func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder + type ClusterRoleBindingList struct + Items []ClusterRoleBinding + func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList + func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) + func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object + type ClusterRoleList struct + Items []ClusterRole + func (in *ClusterRoleList) DeepCopy() *ClusterRoleList + func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) + func (in *ClusterRoleList) DeepCopyObject() runtime.Object + type PolicyRule struct + APIGroups []string + NonResourceURLs []string + ResourceNames []string + Resources []string + Verbs []string + func (in *PolicyRule) DeepCopy() *PolicyRule + func (in *PolicyRule) DeepCopyInto(out *PolicyRule) + func (r PolicyRule) CompactString() string + func (r PolicyRule) String() string + type PolicyRuleBuilder struct + PolicyRule PolicyRule + func NewRule(verbs ...string) *PolicyRuleBuilder + func (r *PolicyRuleBuilder) Groups(groups ...string) *PolicyRuleBuilder + func (r *PolicyRuleBuilder) Names(names ...string) *PolicyRuleBuilder + func (r *PolicyRuleBuilder) Resources(resources ...string) *PolicyRuleBuilder + func (r *PolicyRuleBuilder) Rule() (PolicyRule, error) + func (r *PolicyRuleBuilder) RuleOrDie() PolicyRule + func (r *PolicyRuleBuilder) URLs(urls ...string) *PolicyRuleBuilder + type Role struct + Rules []PolicyRule + func (in *Role) DeepCopy() *Role + func (in *Role) DeepCopyInto(out *Role) + func (in *Role) DeepCopyObject() runtime.Object + type RoleBinding struct + RoleRef RoleRef + Subjects []Subject + func (in *RoleBinding) DeepCopy() *RoleBinding + func (in *RoleBinding) DeepCopyInto(out *RoleBinding) + func (in *RoleBinding) DeepCopyObject() runtime.Object + type RoleBindingBuilder struct + RoleBinding RoleBinding + func NewRoleBinding(roleName, namespace string) *RoleBindingBuilder + func NewRoleBindingForClusterRole(roleName, namespace string) *RoleBindingBuilder + func (r *RoleBindingBuilder) Binding() (RoleBinding, error) + func (r *RoleBindingBuilder) BindingOrDie() RoleBinding + func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder + func (r *RoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *RoleBindingBuilder + func (r *RoleBindingBuilder) Users(users ...string) *RoleBindingBuilder + type RoleBindingList struct + Items []RoleBinding + func (in *RoleBindingList) DeepCopy() *RoleBindingList + func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) + func (in *RoleBindingList) DeepCopyObject() runtime.Object + type RoleList struct + Items []Role + func (in *RoleList) DeepCopy() *RoleList + func (in *RoleList) DeepCopyInto(out *RoleList) + func (in *RoleList) DeepCopyObject() runtime.Object + type RoleRef struct + APIGroup string + Kind string + Name string + func (in *RoleRef) DeepCopy() *RoleRef + func (in *RoleRef) DeepCopyInto(out *RoleRef) + type SortableRuleSlice []PolicyRule + func (s SortableRuleSlice) Len() int + func (s SortableRuleSlice) Less(i, j int) bool + func (s SortableRuleSlice) Swap(i, j int) + type Subject struct + APIGroup string + Kind string + Name string + Namespace string + func (in *Subject) DeepCopy() *Subject + func (in *Subject) DeepCopyInto(out *Subject)