kubernetes: k8s.io/kubernetes/pkg/apis/rbac/v1 Index | Files

package v1

import "k8s.io/kubernetes/pkg/apis/rbac/v1"

Index

Package Files

defaults.go doc.go evaluation_helpers.go helpers.go register.go zz_generated.conversion.go zz_generated.deepcopy.go zz_generated.defaults.go

Constants

const GroupName = "rbac.authorization.k8s.io"

Variables

var (
    AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

func APIGroupMatches Uses

func APIGroupMatches(rule *rbacv1.PolicyRule, requestedGroup string) bool

func CompactString Uses

func CompactString(r rbacv1.PolicyRule) string

CompactString exposes a compact string representation for use in escalation error messages

func Convert_rbac_AggregationRule_To_v1_AggregationRule Uses

func Convert_rbac_AggregationRule_To_v1_AggregationRule(in *rbac.AggregationRule, out *v1.AggregationRule, s conversion.Scope) error

Convert_rbac_AggregationRule_To_v1_AggregationRule is an autogenerated conversion function.

func Convert_rbac_ClusterRoleBindingList_To_v1_ClusterRoleBindingList Uses

func Convert_rbac_ClusterRoleBindingList_To_v1_ClusterRoleBindingList(in *rbac.ClusterRoleBindingList, out *v1.ClusterRoleBindingList, s conversion.Scope) error

Convert_rbac_ClusterRoleBindingList_To_v1_ClusterRoleBindingList is an autogenerated conversion function.

func Convert_rbac_ClusterRoleBinding_To_v1_ClusterRoleBinding Uses

func Convert_rbac_ClusterRoleBinding_To_v1_ClusterRoleBinding(in *rbac.ClusterRoleBinding, out *v1.ClusterRoleBinding, s conversion.Scope) error

Convert_rbac_ClusterRoleBinding_To_v1_ClusterRoleBinding is an autogenerated conversion function.

func Convert_rbac_ClusterRoleList_To_v1_ClusterRoleList Uses

func Convert_rbac_ClusterRoleList_To_v1_ClusterRoleList(in *rbac.ClusterRoleList, out *v1.ClusterRoleList, s conversion.Scope) error

Convert_rbac_ClusterRoleList_To_v1_ClusterRoleList is an autogenerated conversion function.

func Convert_rbac_ClusterRole_To_v1_ClusterRole Uses

func Convert_rbac_ClusterRole_To_v1_ClusterRole(in *rbac.ClusterRole, out *v1.ClusterRole, s conversion.Scope) error

Convert_rbac_ClusterRole_To_v1_ClusterRole is an autogenerated conversion function.

func Convert_rbac_PolicyRule_To_v1_PolicyRule Uses

func Convert_rbac_PolicyRule_To_v1_PolicyRule(in *rbac.PolicyRule, out *v1.PolicyRule, s conversion.Scope) error

Convert_rbac_PolicyRule_To_v1_PolicyRule is an autogenerated conversion function.

func Convert_rbac_RoleBindingList_To_v1_RoleBindingList Uses

func Convert_rbac_RoleBindingList_To_v1_RoleBindingList(in *rbac.RoleBindingList, out *v1.RoleBindingList, s conversion.Scope) error

Convert_rbac_RoleBindingList_To_v1_RoleBindingList is an autogenerated conversion function.

func Convert_rbac_RoleBinding_To_v1_RoleBinding Uses

func Convert_rbac_RoleBinding_To_v1_RoleBinding(in *rbac.RoleBinding, out *v1.RoleBinding, s conversion.Scope) error

Convert_rbac_RoleBinding_To_v1_RoleBinding is an autogenerated conversion function.

func Convert_rbac_RoleList_To_v1_RoleList Uses

func Convert_rbac_RoleList_To_v1_RoleList(in *rbac.RoleList, out *v1.RoleList, s conversion.Scope) error

Convert_rbac_RoleList_To_v1_RoleList is an autogenerated conversion function.

func Convert_rbac_RoleRef_To_v1_RoleRef Uses

func Convert_rbac_RoleRef_To_v1_RoleRef(in *rbac.RoleRef, out *v1.RoleRef, s conversion.Scope) error

Convert_rbac_RoleRef_To_v1_RoleRef is an autogenerated conversion function.

func Convert_rbac_Role_To_v1_Role Uses

func Convert_rbac_Role_To_v1_Role(in *rbac.Role, out *v1.Role, s conversion.Scope) error

Convert_rbac_Role_To_v1_Role is an autogenerated conversion function.

func Convert_rbac_Subject_To_v1_Subject Uses

func Convert_rbac_Subject_To_v1_Subject(in *rbac.Subject, out *v1.Subject, s conversion.Scope) error

Convert_rbac_Subject_To_v1_Subject is an autogenerated conversion function.

func Convert_v1_AggregationRule_To_rbac_AggregationRule Uses

func Convert_v1_AggregationRule_To_rbac_AggregationRule(in *v1.AggregationRule, out *rbac.AggregationRule, s conversion.Scope) error

Convert_v1_AggregationRule_To_rbac_AggregationRule is an autogenerated conversion function.

func Convert_v1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList Uses

func Convert_v1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *v1.ClusterRoleBindingList, out *rbac.ClusterRoleBindingList, s conversion.Scope) error

Convert_v1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList is an autogenerated conversion function.

func Convert_v1_ClusterRoleBinding_To_rbac_ClusterRoleBinding Uses

func Convert_v1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *v1.ClusterRoleBinding, out *rbac.ClusterRoleBinding, s conversion.Scope) error

Convert_v1_ClusterRoleBinding_To_rbac_ClusterRoleBinding is an autogenerated conversion function.

func Convert_v1_ClusterRoleList_To_rbac_ClusterRoleList Uses

func Convert_v1_ClusterRoleList_To_rbac_ClusterRoleList(in *v1.ClusterRoleList, out *rbac.ClusterRoleList, s conversion.Scope) error

Convert_v1_ClusterRoleList_To_rbac_ClusterRoleList is an autogenerated conversion function.

func Convert_v1_ClusterRole_To_rbac_ClusterRole Uses

func Convert_v1_ClusterRole_To_rbac_ClusterRole(in *v1.ClusterRole, out *rbac.ClusterRole, s conversion.Scope) error

Convert_v1_ClusterRole_To_rbac_ClusterRole is an autogenerated conversion function.

func Convert_v1_PolicyRule_To_rbac_PolicyRule Uses

func Convert_v1_PolicyRule_To_rbac_PolicyRule(in *v1.PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error

Convert_v1_PolicyRule_To_rbac_PolicyRule is an autogenerated conversion function.

func Convert_v1_RoleBindingList_To_rbac_RoleBindingList Uses

func Convert_v1_RoleBindingList_To_rbac_RoleBindingList(in *v1.RoleBindingList, out *rbac.RoleBindingList, s conversion.Scope) error

Convert_v1_RoleBindingList_To_rbac_RoleBindingList is an autogenerated conversion function.

func Convert_v1_RoleBinding_To_rbac_RoleBinding Uses

func Convert_v1_RoleBinding_To_rbac_RoleBinding(in *v1.RoleBinding, out *rbac.RoleBinding, s conversion.Scope) error

Convert_v1_RoleBinding_To_rbac_RoleBinding is an autogenerated conversion function.

func Convert_v1_RoleList_To_rbac_RoleList Uses

func Convert_v1_RoleList_To_rbac_RoleList(in *v1.RoleList, out *rbac.RoleList, s conversion.Scope) error

Convert_v1_RoleList_To_rbac_RoleList is an autogenerated conversion function.

func Convert_v1_RoleRef_To_rbac_RoleRef Uses

func Convert_v1_RoleRef_To_rbac_RoleRef(in *v1.RoleRef, out *rbac.RoleRef, s conversion.Scope) error

Convert_v1_RoleRef_To_rbac_RoleRef is an autogenerated conversion function.

func Convert_v1_Role_To_rbac_Role Uses

func Convert_v1_Role_To_rbac_Role(in *v1.Role, out *rbac.Role, s conversion.Scope) error

Convert_v1_Role_To_rbac_Role is an autogenerated conversion function.

func Convert_v1_Subject_To_rbac_Subject Uses

func Convert_v1_Subject_To_rbac_Subject(in *v1.Subject, out *rbac.Subject, s conversion.Scope) error

Convert_v1_Subject_To_rbac_Subject is an autogenerated conversion function.

func NonResourceURLMatches Uses

func NonResourceURLMatches(rule *rbacv1.PolicyRule, requestedURL string) bool

func RegisterConversions Uses

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults Uses

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func ResourceMatches Uses

func ResourceMatches(rule *rbacv1.PolicyRule, combinedRequestedResource, requestedSubresource string) bool

func ResourceNameMatches Uses

func ResourceNameMatches(rule *rbacv1.PolicyRule, requestedName string) bool

func RoleRefGroupKind Uses

func RoleRefGroupKind(roleRef rbacv1.RoleRef) schema.GroupKind

func SetDefaults_ClusterRoleBinding Uses

func SetDefaults_ClusterRoleBinding(obj *rbacv1.ClusterRoleBinding)

func SetDefaults_RoleBinding Uses

func SetDefaults_RoleBinding(obj *rbacv1.RoleBinding)

func SetDefaults_Subject Uses

func SetDefaults_Subject(obj *rbacv1.Subject)

func SetObjectDefaults_ClusterRoleBinding Uses

func SetObjectDefaults_ClusterRoleBinding(in *v1.ClusterRoleBinding)

func SetObjectDefaults_ClusterRoleBindingList Uses

func SetObjectDefaults_ClusterRoleBindingList(in *v1.ClusterRoleBindingList)

func SetObjectDefaults_RoleBinding Uses

func SetObjectDefaults_RoleBinding(in *v1.RoleBinding)

func SetObjectDefaults_RoleBindingList Uses

func SetObjectDefaults_RoleBindingList(in *v1.RoleBindingList)

func String Uses

func String(r rbacv1.PolicyRule) string

func SubjectsStrings Uses

func SubjectsStrings(subjects []rbacv1.Subject) ([]string, []string, []string, []string)

subjectsStrings returns users, groups, serviceaccounts, unknown for display purposes.

func VerbMatches Uses

func VerbMatches(rule *rbacv1.PolicyRule, requestedVerb string) bool

type ClusterRoleBindingBuilder Uses

type ClusterRoleBindingBuilder struct {
    ClusterRoleBinding rbacv1.ClusterRoleBinding `protobuf:"bytes,1,opt,name=clusterRoleBinding"`
}

ClusterRoleBindingBuilder let's us attach methods. A no-no for API types. We use it to construct bindings in code. It's more compact than trying to write them out in a literal.

func NewClusterBinding Uses

func NewClusterBinding(clusterRoleName string) *ClusterRoleBindingBuilder

func (*ClusterRoleBindingBuilder) Binding Uses

func (r *ClusterRoleBindingBuilder) Binding() (rbacv1.ClusterRoleBinding, error)

func (*ClusterRoleBindingBuilder) BindingOrDie Uses

func (r *ClusterRoleBindingBuilder) BindingOrDie() rbacv1.ClusterRoleBinding

func (*ClusterRoleBindingBuilder) Groups Uses

func (r *ClusterRoleBindingBuilder) Groups(groups ...string) *ClusterRoleBindingBuilder

func (*ClusterRoleBindingBuilder) SAs Uses

func (r *ClusterRoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *ClusterRoleBindingBuilder

func (*ClusterRoleBindingBuilder) Users Uses

func (r *ClusterRoleBindingBuilder) Users(users ...string) *ClusterRoleBindingBuilder

type PolicyRuleBuilder Uses

type PolicyRuleBuilder struct {
    PolicyRule rbacv1.PolicyRule `protobuf:"bytes,1,opt,name=policyRule"`
}

PolicyRuleBuilder let's us attach methods. A no-no for API types. We use it to construct rules in code. It's more compact than trying to write them out in a literal and allows us to perform some basic checking during construction

func NewRule Uses

func NewRule(verbs ...string) *PolicyRuleBuilder

func (*PolicyRuleBuilder) Groups Uses

func (r *PolicyRuleBuilder) Groups(groups ...string) *PolicyRuleBuilder

func (*PolicyRuleBuilder) Names Uses

func (r *PolicyRuleBuilder) Names(names ...string) *PolicyRuleBuilder

func (*PolicyRuleBuilder) Resources Uses

func (r *PolicyRuleBuilder) Resources(resources ...string) *PolicyRuleBuilder

func (*PolicyRuleBuilder) Rule Uses

func (r *PolicyRuleBuilder) Rule() (rbacv1.PolicyRule, error)

func (*PolicyRuleBuilder) RuleOrDie Uses

func (r *PolicyRuleBuilder) RuleOrDie() rbacv1.PolicyRule

func (*PolicyRuleBuilder) URLs Uses

func (r *PolicyRuleBuilder) URLs(urls ...string) *PolicyRuleBuilder

type RoleBindingBuilder Uses

type RoleBindingBuilder struct {
    RoleBinding rbacv1.RoleBinding
}

RoleBindingBuilder let's us attach methods. It is similar to ClusterRoleBindingBuilder above.

func NewRoleBinding Uses

func NewRoleBinding(roleName, namespace string) *RoleBindingBuilder

NewRoleBinding creates a RoleBinding builder that can be used to define the subjects of a role binding. At least one of the `Groups`, `Users` or `SAs` method must be called before calling the `Binding*` methods.

func NewRoleBindingForClusterRole Uses

func NewRoleBindingForClusterRole(roleName, namespace string) *RoleBindingBuilder

func (*RoleBindingBuilder) Binding Uses

func (r *RoleBindingBuilder) Binding() (rbacv1.RoleBinding, error)

Binding builds and returns the RoleBinding API object from the builder object.

func (*RoleBindingBuilder) BindingOrDie Uses

func (r *RoleBindingBuilder) BindingOrDie() rbacv1.RoleBinding

BindingOrDie calls the binding method and panics if there is an error.

func (*RoleBindingBuilder) Groups Uses

func (r *RoleBindingBuilder) Groups(groups ...string) *RoleBindingBuilder

Groups adds the specified groups as the subjects of the RoleBinding.

func (*RoleBindingBuilder) SAs Uses

func (r *RoleBindingBuilder) SAs(namespace string, serviceAccountNames ...string) *RoleBindingBuilder

SAs adds the specified service accounts as the subjects of the RoleBinding.

func (*RoleBindingBuilder) Users Uses

func (r *RoleBindingBuilder) Users(users ...string) *RoleBindingBuilder

Users adds the specified users as the subjects of the RoleBinding.

type SortableRuleSlice Uses

type SortableRuleSlice []rbacv1.PolicyRule

func (SortableRuleSlice) DeepCopy Uses

func (in SortableRuleSlice) DeepCopy() SortableRuleSlice

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SortableRuleSlice.

func (SortableRuleSlice) DeepCopyInto Uses

func (in SortableRuleSlice) DeepCopyInto(out *SortableRuleSlice)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (SortableRuleSlice) Len Uses

func (s SortableRuleSlice) Len() int

func (SortableRuleSlice) Less Uses

func (s SortableRuleSlice) Less(i, j int) bool

func (SortableRuleSlice) Swap Uses

func (s SortableRuleSlice) Swap(i, j int)

Package v1 imports 10 packages (graph) and is imported by 55 packages. Updated 2019-04-10. Refresh now. Tools for package owners.