Documentation ¶
Index ¶
- Variables
- type AggregationRule
- func (*AggregationRule) Descriptor() ([]byte, []int)
- func (m *AggregationRule) GetClusterRoleSelectors() []*v1.LabelSelector
- func (m *AggregationRule) Marshal() (dAtA []byte, err error)
- func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error)
- func (m *AggregationRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AggregationRule) ProtoMessage()
- func (m *AggregationRule) Reset()
- func (m *AggregationRule) Size() (n int)
- func (m *AggregationRule) String() string
- func (m *AggregationRule) Unmarshal(dAtA []byte) error
- func (m *AggregationRule) XXX_DiscardUnknown()
- func (m *AggregationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AggregationRule) XXX_Merge(src proto.Message)
- func (m *AggregationRule) XXX_Size() int
- func (m *AggregationRule) XXX_Unmarshal(b []byte) error
- type ClusterRole
- func (*ClusterRole) Descriptor() ([]byte, []int)
- func (m *ClusterRole) GetAggregationRule() *AggregationRule
- func (m *ClusterRole) GetMetadata() *v1.ObjectMeta
- func (m *ClusterRole) GetRules() []*PolicyRule
- func (m *ClusterRole) Marshal() (dAtA []byte, err error)
- func (m *ClusterRole) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterRole) ProtoMessage()
- func (m *ClusterRole) Reset()
- func (m *ClusterRole) Size() (n int)
- func (m *ClusterRole) String() string
- func (m *ClusterRole) Unmarshal(dAtA []byte) error
- func (m *ClusterRole) XXX_DiscardUnknown()
- func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterRole) XXX_Merge(src proto.Message)
- func (m *ClusterRole) XXX_Size() int
- func (m *ClusterRole) XXX_Unmarshal(b []byte) error
- type ClusterRoleBinding
- func (*ClusterRoleBinding) Descriptor() ([]byte, []int)
- func (m *ClusterRoleBinding) GetMetadata() *v1.ObjectMeta
- func (m *ClusterRoleBinding) GetRoleRef() *RoleRef
- func (m *ClusterRoleBinding) GetSubjects() []*Subject
- func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error)
- func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterRoleBinding) ProtoMessage()
- func (m *ClusterRoleBinding) Reset()
- func (m *ClusterRoleBinding) Size() (n int)
- func (m *ClusterRoleBinding) String() string
- func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error
- func (m *ClusterRoleBinding) XXX_DiscardUnknown()
- func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterRoleBinding) XXX_Merge(src proto.Message)
- func (m *ClusterRoleBinding) XXX_Size() int
- func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error
- type ClusterRoleBindingList
- func (*ClusterRoleBindingList) Descriptor() ([]byte, []int)
- func (m *ClusterRoleBindingList) GetItems() []*ClusterRoleBinding
- func (m *ClusterRoleBindingList) GetMetadata() *v1.ListMeta
- func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error)
- func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterRoleBindingList) ProtoMessage()
- func (m *ClusterRoleBindingList) Reset()
- func (m *ClusterRoleBindingList) Size() (n int)
- func (m *ClusterRoleBindingList) String() string
- func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error
- func (m *ClusterRoleBindingList) XXX_DiscardUnknown()
- func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message)
- func (m *ClusterRoleBindingList) XXX_Size() int
- func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error
- type ClusterRoleList
- func (*ClusterRoleList) Descriptor() ([]byte, []int)
- func (m *ClusterRoleList) GetItems() []*ClusterRole
- func (m *ClusterRoleList) GetMetadata() *v1.ListMeta
- func (m *ClusterRoleList) Marshal() (dAtA []byte, err error)
- func (m *ClusterRoleList) MarshalTo(dAtA []byte) (int, error)
- func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClusterRoleList) ProtoMessage()
- func (m *ClusterRoleList) Reset()
- func (m *ClusterRoleList) Size() (n int)
- func (m *ClusterRoleList) String() string
- func (m *ClusterRoleList) Unmarshal(dAtA []byte) error
- func (m *ClusterRoleList) XXX_DiscardUnknown()
- func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClusterRoleList) XXX_Merge(src proto.Message)
- func (m *ClusterRoleList) XXX_Size() int
- func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error
- type PolicyRule
- func (*PolicyRule) Descriptor() ([]byte, []int)
- func (m *PolicyRule) GetApiGroups() []string
- func (m *PolicyRule) GetNonResourceURLs() []string
- func (m *PolicyRule) GetResourceNames() []string
- func (m *PolicyRule) GetResources() []string
- func (m *PolicyRule) GetVerbs() []string
- func (m *PolicyRule) Marshal() (dAtA []byte, err error)
- func (m *PolicyRule) MarshalTo(dAtA []byte) (int, error)
- func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PolicyRule) ProtoMessage()
- func (m *PolicyRule) Reset()
- func (m *PolicyRule) Size() (n int)
- func (m *PolicyRule) String() string
- func (m *PolicyRule) Unmarshal(dAtA []byte) error
- func (m *PolicyRule) XXX_DiscardUnknown()
- func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PolicyRule) XXX_Merge(src proto.Message)
- func (m *PolicyRule) XXX_Size() int
- func (m *PolicyRule) XXX_Unmarshal(b []byte) error
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetMetadata() *v1.ObjectMeta
- func (m *Role) GetRules() []*PolicyRule
- func (m *Role) Marshal() (dAtA []byte, err error)
- func (m *Role) MarshalTo(dAtA []byte) (int, error)
- func (m *Role) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) Size() (n int)
- func (m *Role) String() string
- func (m *Role) Unmarshal(dAtA []byte) error
- func (m *Role) XXX_DiscardUnknown()
- func (m *Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Role) XXX_Merge(src proto.Message)
- func (m *Role) XXX_Size() int
- func (m *Role) XXX_Unmarshal(b []byte) error
- type RoleBinding
- func (*RoleBinding) Descriptor() ([]byte, []int)
- func (m *RoleBinding) GetMetadata() *v1.ObjectMeta
- func (m *RoleBinding) GetRoleRef() *RoleRef
- func (m *RoleBinding) GetSubjects() []*Subject
- func (m *RoleBinding) Marshal() (dAtA []byte, err error)
- func (m *RoleBinding) MarshalTo(dAtA []byte) (int, error)
- func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoleBinding) ProtoMessage()
- func (m *RoleBinding) Reset()
- func (m *RoleBinding) Size() (n int)
- func (m *RoleBinding) String() string
- func (m *RoleBinding) Unmarshal(dAtA []byte) error
- func (m *RoleBinding) XXX_DiscardUnknown()
- func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBinding) XXX_Merge(src proto.Message)
- func (m *RoleBinding) XXX_Size() int
- func (m *RoleBinding) XXX_Unmarshal(b []byte) error
- type RoleBindingList
- func (*RoleBindingList) Descriptor() ([]byte, []int)
- func (m *RoleBindingList) GetItems() []*RoleBinding
- func (m *RoleBindingList) GetMetadata() *v1.ListMeta
- func (m *RoleBindingList) Marshal() (dAtA []byte, err error)
- func (m *RoleBindingList) MarshalTo(dAtA []byte) (int, error)
- func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoleBindingList) ProtoMessage()
- func (m *RoleBindingList) Reset()
- func (m *RoleBindingList) Size() (n int)
- func (m *RoleBindingList) String() string
- func (m *RoleBindingList) Unmarshal(dAtA []byte) error
- func (m *RoleBindingList) XXX_DiscardUnknown()
- func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleBindingList) XXX_Merge(src proto.Message)
- func (m *RoleBindingList) XXX_Size() int
- func (m *RoleBindingList) XXX_Unmarshal(b []byte) error
- type RoleList
- func (*RoleList) Descriptor() ([]byte, []int)
- func (m *RoleList) GetItems() []*Role
- func (m *RoleList) GetMetadata() *v1.ListMeta
- func (m *RoleList) Marshal() (dAtA []byte, err error)
- func (m *RoleList) MarshalTo(dAtA []byte) (int, error)
- func (m *RoleList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoleList) ProtoMessage()
- func (m *RoleList) Reset()
- func (m *RoleList) Size() (n int)
- func (m *RoleList) String() string
- func (m *RoleList) Unmarshal(dAtA []byte) error
- func (m *RoleList) XXX_DiscardUnknown()
- func (m *RoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleList) XXX_Merge(src proto.Message)
- func (m *RoleList) XXX_Size() int
- func (m *RoleList) XXX_Unmarshal(b []byte) error
- type RoleRef
- func (*RoleRef) Descriptor() ([]byte, []int)
- func (m *RoleRef) GetApiGroup() string
- func (m *RoleRef) GetKind() string
- func (m *RoleRef) GetName() string
- func (m *RoleRef) Marshal() (dAtA []byte, err error)
- func (m *RoleRef) MarshalTo(dAtA []byte) (int, error)
- func (m *RoleRef) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoleRef) ProtoMessage()
- func (m *RoleRef) Reset()
- func (m *RoleRef) Size() (n int)
- func (m *RoleRef) String() string
- func (m *RoleRef) Unmarshal(dAtA []byte) error
- func (m *RoleRef) XXX_DiscardUnknown()
- func (m *RoleRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoleRef) XXX_Merge(src proto.Message)
- func (m *RoleRef) XXX_Size() int
- func (m *RoleRef) XXX_Unmarshal(b []byte) error
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)
- func (m *Subject) GetApiVersion() string
- func (m *Subject) GetKind() string
- func (m *Subject) GetName() string
- func (m *Subject) GetNamespace() string
- func (m *Subject) Marshal() (dAtA []byte, err error)
- func (m *Subject) MarshalTo(dAtA []byte) (int, error)
- func (m *Subject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Subject) ProtoMessage()
- func (m *Subject) Reset()
- func (m *Subject) Size() (n int)
- func (m *Subject) String() string
- func (m *Subject) Unmarshal(dAtA []byte) error
- func (m *Subject) XXX_DiscardUnknown()
- func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subject) XXX_Merge(src proto.Message)
- func (m *Subject) XXX_Size() int
- func (m *Subject) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AggregationRule ¶ added in v1.0.0
type AggregationRule struct { // ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. // If any of the selectors match, then the ClusterRole's permissions will be added // +optional ClusterRoleSelectors []*v1.LabelSelector `protobuf:"bytes,1,rep,name=clusterRoleSelectors" json:"clusterRoleSelectors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
func (*AggregationRule) Descriptor ¶ added in v1.0.0
func (*AggregationRule) Descriptor() ([]byte, []int)
func (*AggregationRule) GetClusterRoleSelectors ¶ added in v1.0.0
func (m *AggregationRule) GetClusterRoleSelectors() []*v1.LabelSelector
func (*AggregationRule) Marshal ¶ added in v1.0.0
func (m *AggregationRule) Marshal() (dAtA []byte, err error)
func (*AggregationRule) MarshalTo ¶ added in v1.0.0
func (m *AggregationRule) MarshalTo(dAtA []byte) (int, error)
func (*AggregationRule) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *AggregationRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AggregationRule) ProtoMessage ¶ added in v1.0.0
func (*AggregationRule) ProtoMessage()
func (*AggregationRule) Reset ¶ added in v1.0.0
func (m *AggregationRule) Reset()
func (*AggregationRule) Size ¶ added in v1.0.0
func (m *AggregationRule) Size() (n int)
func (*AggregationRule) String ¶ added in v1.0.0
func (m *AggregationRule) String() string
func (*AggregationRule) Unmarshal ¶ added in v1.0.0
func (m *AggregationRule) Unmarshal(dAtA []byte) error
func (*AggregationRule) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *AggregationRule) XXX_DiscardUnknown()
func (*AggregationRule) XXX_Marshal ¶ added in v1.2.1
func (m *AggregationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AggregationRule) XXX_Merge ¶ added in v1.2.1
func (m *AggregationRule) XXX_Merge(src proto.Message)
func (*AggregationRule) XXX_Size ¶ added in v1.2.1
func (m *AggregationRule) XXX_Size() int
func (*AggregationRule) XXX_Unmarshal ¶ added in v1.2.1
func (m *AggregationRule) XXX_Unmarshal(b []byte) error
type ClusterRole ¶
type ClusterRole struct { // Standard object's metadata. // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Rules holds all the PolicyRules for this ClusterRole // +optional Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"` // AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. // If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be // stomped by the controller. // +optional AggregationRule *AggregationRule `protobuf:"bytes,3,opt,name=aggregationRule" json:"aggregationRule,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.22.
func (*ClusterRole) Descriptor ¶
func (*ClusterRole) Descriptor() ([]byte, []int)
func (*ClusterRole) GetAggregationRule ¶ added in v1.0.0
func (m *ClusterRole) GetAggregationRule() *AggregationRule
func (*ClusterRole) GetMetadata ¶
func (m *ClusterRole) GetMetadata() *v1.ObjectMeta
func (*ClusterRole) GetRules ¶
func (m *ClusterRole) GetRules() []*PolicyRule
func (*ClusterRole) Marshal ¶
func (m *ClusterRole) Marshal() (dAtA []byte, err error)
func (*ClusterRole) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *ClusterRole) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterRole) ProtoMessage ¶
func (*ClusterRole) ProtoMessage()
func (*ClusterRole) Reset ¶
func (m *ClusterRole) Reset()
func (*ClusterRole) Size ¶
func (m *ClusterRole) Size() (n int)
func (*ClusterRole) String ¶
func (m *ClusterRole) String() string
func (*ClusterRole) Unmarshal ¶
func (m *ClusterRole) Unmarshal(dAtA []byte) error
func (*ClusterRole) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *ClusterRole) XXX_DiscardUnknown()
func (*ClusterRole) XXX_Marshal ¶ added in v1.2.1
func (m *ClusterRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterRole) XXX_Merge ¶ added in v1.2.1
func (m *ClusterRole) XXX_Merge(src proto.Message)
func (*ClusterRole) XXX_Size ¶ added in v1.2.1
func (m *ClusterRole) XXX_Size() int
func (*ClusterRole) XXX_Unmarshal ¶ added in v1.2.1
func (m *ClusterRole) XXX_Unmarshal(b []byte) error
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { // Standard object's metadata. // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Subjects holds references to the objects the role applies to. // +optional Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects" json:"subjects,omitempty"` // RoleRef can only reference a ClusterRole in the global namespace. // If the RoleRef cannot be resolved, the Authorizer must return an error. RoleRef *RoleRef `protobuf:"bytes,3,opt,name=roleRef" json:"roleRef,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.22.
func (*ClusterRoleBinding) Descriptor ¶
func (*ClusterRoleBinding) Descriptor() ([]byte, []int)
func (*ClusterRoleBinding) GetMetadata ¶
func (m *ClusterRoleBinding) GetMetadata() *v1.ObjectMeta
func (*ClusterRoleBinding) GetRoleRef ¶
func (m *ClusterRoleBinding) GetRoleRef() *RoleRef
func (*ClusterRoleBinding) GetSubjects ¶
func (m *ClusterRoleBinding) GetSubjects() []*Subject
func (*ClusterRoleBinding) Marshal ¶
func (m *ClusterRoleBinding) Marshal() (dAtA []byte, err error)
func (*ClusterRoleBinding) MarshalTo ¶
func (m *ClusterRoleBinding) MarshalTo(dAtA []byte) (int, error)
func (*ClusterRoleBinding) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *ClusterRoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterRoleBinding) ProtoMessage ¶
func (*ClusterRoleBinding) ProtoMessage()
func (*ClusterRoleBinding) Reset ¶
func (m *ClusterRoleBinding) Reset()
func (*ClusterRoleBinding) Size ¶
func (m *ClusterRoleBinding) Size() (n int)
func (*ClusterRoleBinding) String ¶
func (m *ClusterRoleBinding) String() string
func (*ClusterRoleBinding) Unmarshal ¶
func (m *ClusterRoleBinding) Unmarshal(dAtA []byte) error
func (*ClusterRoleBinding) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *ClusterRoleBinding) XXX_DiscardUnknown()
func (*ClusterRoleBinding) XXX_Marshal ¶ added in v1.2.1
func (m *ClusterRoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterRoleBinding) XXX_Merge ¶ added in v1.2.1
func (m *ClusterRoleBinding) XXX_Merge(src proto.Message)
func (*ClusterRoleBinding) XXX_Size ¶ added in v1.2.1
func (m *ClusterRoleBinding) XXX_Size() int
func (*ClusterRoleBinding) XXX_Unmarshal ¶ added in v1.2.1
func (m *ClusterRoleBinding) XXX_Unmarshal(b []byte) error
type ClusterRoleBindingList ¶
type ClusterRoleBindingList struct { // Standard object's metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of ClusterRoleBindings Items []*ClusterRoleBinding `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.22.
func (*ClusterRoleBindingList) Descriptor ¶
func (*ClusterRoleBindingList) Descriptor() ([]byte, []int)
func (*ClusterRoleBindingList) GetItems ¶
func (m *ClusterRoleBindingList) GetItems() []*ClusterRoleBinding
func (*ClusterRoleBindingList) GetMetadata ¶
func (m *ClusterRoleBindingList) GetMetadata() *v1.ListMeta
func (*ClusterRoleBindingList) Marshal ¶
func (m *ClusterRoleBindingList) Marshal() (dAtA []byte, err error)
func (*ClusterRoleBindingList) MarshalTo ¶
func (m *ClusterRoleBindingList) MarshalTo(dAtA []byte) (int, error)
func (*ClusterRoleBindingList) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *ClusterRoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterRoleBindingList) ProtoMessage ¶
func (*ClusterRoleBindingList) ProtoMessage()
func (*ClusterRoleBindingList) Reset ¶
func (m *ClusterRoleBindingList) Reset()
func (*ClusterRoleBindingList) Size ¶
func (m *ClusterRoleBindingList) Size() (n int)
func (*ClusterRoleBindingList) String ¶
func (m *ClusterRoleBindingList) String() string
func (*ClusterRoleBindingList) Unmarshal ¶
func (m *ClusterRoleBindingList) Unmarshal(dAtA []byte) error
func (*ClusterRoleBindingList) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *ClusterRoleBindingList) XXX_DiscardUnknown()
func (*ClusterRoleBindingList) XXX_Marshal ¶ added in v1.2.1
func (m *ClusterRoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterRoleBindingList) XXX_Merge ¶ added in v1.2.1
func (m *ClusterRoleBindingList) XXX_Merge(src proto.Message)
func (*ClusterRoleBindingList) XXX_Size ¶ added in v1.2.1
func (m *ClusterRoleBindingList) XXX_Size() int
func (*ClusterRoleBindingList) XXX_Unmarshal ¶ added in v1.2.1
func (m *ClusterRoleBindingList) XXX_Unmarshal(b []byte) error
type ClusterRoleList ¶
type ClusterRoleList struct { // Standard object's metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of ClusterRoles Items []*ClusterRole `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.22.
func (*ClusterRoleList) Descriptor ¶
func (*ClusterRoleList) Descriptor() ([]byte, []int)
func (*ClusterRoleList) GetItems ¶
func (m *ClusterRoleList) GetItems() []*ClusterRole
func (*ClusterRoleList) GetMetadata ¶
func (m *ClusterRoleList) GetMetadata() *v1.ListMeta
func (*ClusterRoleList) Marshal ¶
func (m *ClusterRoleList) Marshal() (dAtA []byte, err error)
func (*ClusterRoleList) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *ClusterRoleList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClusterRoleList) ProtoMessage ¶
func (*ClusterRoleList) ProtoMessage()
func (*ClusterRoleList) Reset ¶
func (m *ClusterRoleList) Reset()
func (*ClusterRoleList) Size ¶
func (m *ClusterRoleList) Size() (n int)
func (*ClusterRoleList) String ¶
func (m *ClusterRoleList) String() string
func (*ClusterRoleList) Unmarshal ¶
func (m *ClusterRoleList) Unmarshal(dAtA []byte) error
func (*ClusterRoleList) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *ClusterRoleList) XXX_DiscardUnknown()
func (*ClusterRoleList) XXX_Marshal ¶ added in v1.2.1
func (m *ClusterRoleList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClusterRoleList) XXX_Merge ¶ added in v1.2.1
func (m *ClusterRoleList) XXX_Merge(src proto.Message)
func (*ClusterRoleList) XXX_Size ¶ added in v1.2.1
func (m *ClusterRoleList) XXX_Size() int
func (*ClusterRoleList) XXX_Unmarshal ¶ added in v1.2.1
func (m *ClusterRoleList) XXX_Unmarshal(b []byte) error
type PolicyRule ¶
type PolicyRule struct { // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. Verbs []string `protobuf:"bytes,1,rep,name=verbs" json:"verbs,omitempty"` // APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of // the enumerated resources in any API group will be allowed. // +optional ApiGroups []string `protobuf:"bytes,3,rep,name=apiGroups" json:"apiGroups,omitempty"` // Resources is a list of resources this rule applies to. ResourceAll represents all resources. // +optional Resources []string `protobuf:"bytes,4,rep,name=resources" json:"resources,omitempty"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. // +optional ResourceNames []string `protobuf:"bytes,5,rep,name=resourceNames" json:"resourceNames,omitempty"` // NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. // Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both. // +optional NonResourceURLs []string `protobuf:"bytes,6,rep,name=nonResourceURLs" json:"nonResourceURLs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
func (*PolicyRule) Descriptor ¶
func (*PolicyRule) Descriptor() ([]byte, []int)
func (*PolicyRule) GetApiGroups ¶
func (m *PolicyRule) GetApiGroups() []string
func (*PolicyRule) GetNonResourceURLs ¶
func (m *PolicyRule) GetNonResourceURLs() []string
func (*PolicyRule) GetResourceNames ¶
func (m *PolicyRule) GetResourceNames() []string
func (*PolicyRule) GetResources ¶
func (m *PolicyRule) GetResources() []string
func (*PolicyRule) GetVerbs ¶
func (m *PolicyRule) GetVerbs() []string
func (*PolicyRule) Marshal ¶
func (m *PolicyRule) Marshal() (dAtA []byte, err error)
func (*PolicyRule) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *PolicyRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PolicyRule) ProtoMessage ¶
func (*PolicyRule) ProtoMessage()
func (*PolicyRule) Reset ¶
func (m *PolicyRule) Reset()
func (*PolicyRule) Size ¶
func (m *PolicyRule) Size() (n int)
func (*PolicyRule) String ¶
func (m *PolicyRule) String() string
func (*PolicyRule) Unmarshal ¶
func (m *PolicyRule) Unmarshal(dAtA []byte) error
func (*PolicyRule) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *PolicyRule) XXX_DiscardUnknown()
func (*PolicyRule) XXX_Marshal ¶ added in v1.2.1
func (m *PolicyRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PolicyRule) XXX_Merge ¶ added in v1.2.1
func (m *PolicyRule) XXX_Merge(src proto.Message)
func (*PolicyRule) XXX_Size ¶ added in v1.2.1
func (m *PolicyRule) XXX_Size() int
func (*PolicyRule) XXX_Unmarshal ¶ added in v1.2.1
func (m *PolicyRule) XXX_Unmarshal(b []byte) error
type Role ¶
type Role struct { // Standard object's metadata. // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Rules holds all the PolicyRules for this Role // +optional Rules []*PolicyRule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 Role, and will no longer be served in v1.22.
func (*Role) Descriptor ¶
func (*Role) GetMetadata ¶
func (m *Role) GetMetadata() *v1.ObjectMeta
func (*Role) GetRules ¶
func (m *Role) GetRules() []*PolicyRule
func (*Role) MarshalToSizedBuffer ¶ added in v1.2.1
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *Role) XXX_DiscardUnknown()
func (*Role) XXX_Marshal ¶ added in v1.2.1
func (*Role) XXX_Unmarshal ¶ added in v1.2.1
type RoleBinding ¶
type RoleBinding struct { // Standard object's metadata. // +optional Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Subjects holds references to the objects the role applies to. // +optional Subjects []*Subject `protobuf:"bytes,2,rep,name=subjects" json:"subjects,omitempty"` // RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. // If the RoleRef cannot be resolved, the Authorizer must return an error. RoleRef *RoleRef `protobuf:"bytes,3,opt,name=roleRef" json:"roleRef,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBinding, and will no longer be served in v1.22.
func (*RoleBinding) Descriptor ¶
func (*RoleBinding) Descriptor() ([]byte, []int)
func (*RoleBinding) GetMetadata ¶
func (m *RoleBinding) GetMetadata() *v1.ObjectMeta
func (*RoleBinding) GetRoleRef ¶
func (m *RoleBinding) GetRoleRef() *RoleRef
func (*RoleBinding) GetSubjects ¶
func (m *RoleBinding) GetSubjects() []*Subject
func (*RoleBinding) Marshal ¶
func (m *RoleBinding) Marshal() (dAtA []byte, err error)
func (*RoleBinding) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *RoleBinding) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoleBinding) ProtoMessage ¶
func (*RoleBinding) ProtoMessage()
func (*RoleBinding) Reset ¶
func (m *RoleBinding) Reset()
func (*RoleBinding) Size ¶
func (m *RoleBinding) Size() (n int)
func (*RoleBinding) String ¶
func (m *RoleBinding) String() string
func (*RoleBinding) Unmarshal ¶
func (m *RoleBinding) Unmarshal(dAtA []byte) error
func (*RoleBinding) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *RoleBinding) XXX_DiscardUnknown()
func (*RoleBinding) XXX_Marshal ¶ added in v1.2.1
func (m *RoleBinding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBinding) XXX_Merge ¶ added in v1.2.1
func (m *RoleBinding) XXX_Merge(src proto.Message)
func (*RoleBinding) XXX_Size ¶ added in v1.2.1
func (m *RoleBinding) XXX_Size() int
func (*RoleBinding) XXX_Unmarshal ¶ added in v1.2.1
func (m *RoleBinding) XXX_Unmarshal(b []byte) error
type RoleBindingList ¶
type RoleBindingList struct { // Standard object's metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of RoleBindings Items []*RoleBinding `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RoleBindingList is a collection of RoleBindings Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleBindingList, and will no longer be served in v1.22.
func (*RoleBindingList) Descriptor ¶
func (*RoleBindingList) Descriptor() ([]byte, []int)
func (*RoleBindingList) GetItems ¶
func (m *RoleBindingList) GetItems() []*RoleBinding
func (*RoleBindingList) GetMetadata ¶
func (m *RoleBindingList) GetMetadata() *v1.ListMeta
func (*RoleBindingList) Marshal ¶
func (m *RoleBindingList) Marshal() (dAtA []byte, err error)
func (*RoleBindingList) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *RoleBindingList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RoleBindingList) ProtoMessage ¶
func (*RoleBindingList) ProtoMessage()
func (*RoleBindingList) Reset ¶
func (m *RoleBindingList) Reset()
func (*RoleBindingList) Size ¶
func (m *RoleBindingList) Size() (n int)
func (*RoleBindingList) String ¶
func (m *RoleBindingList) String() string
func (*RoleBindingList) Unmarshal ¶
func (m *RoleBindingList) Unmarshal(dAtA []byte) error
func (*RoleBindingList) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *RoleBindingList) XXX_DiscardUnknown()
func (*RoleBindingList) XXX_Marshal ¶ added in v1.2.1
func (m *RoleBindingList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RoleBindingList) XXX_Merge ¶ added in v1.2.1
func (m *RoleBindingList) XXX_Merge(src proto.Message)
func (*RoleBindingList) XXX_Size ¶ added in v1.2.1
func (m *RoleBindingList) XXX_Size() int
func (*RoleBindingList) XXX_Unmarshal ¶ added in v1.2.1
func (m *RoleBindingList) XXX_Unmarshal(b []byte) error
type RoleList ¶
type RoleList struct { // Standard object's metadata. // +optional Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // Items is a list of Roles Items []*Role `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RoleList is a collection of Roles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 RoleList, and will no longer be served in v1.22.
func (*RoleList) Descriptor ¶
func (*RoleList) GetMetadata ¶
func (*RoleList) MarshalToSizedBuffer ¶ added in v1.2.1
func (*RoleList) ProtoMessage ¶
func (*RoleList) ProtoMessage()
func (*RoleList) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *RoleList) XXX_DiscardUnknown()
func (*RoleList) XXX_Marshal ¶ added in v1.2.1
func (*RoleList) XXX_Unmarshal ¶ added in v1.2.1
type RoleRef ¶
type RoleRef struct { // APIGroup is the group for the resource being referenced ApiGroup *string `protobuf:"bytes,1,opt,name=apiGroup" json:"apiGroup,omitempty"` // Kind is the type of resource being referenced Kind *string `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"` // Name is the name of resource being referenced Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RoleRef contains information that points to the role being used
func (*RoleRef) Descriptor ¶
func (*RoleRef) GetApiGroup ¶
func (*RoleRef) MarshalToSizedBuffer ¶ added in v1.2.1
func (*RoleRef) ProtoMessage ¶
func (*RoleRef) ProtoMessage()
func (*RoleRef) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *RoleRef) XXX_DiscardUnknown()
func (*RoleRef) XXX_Marshal ¶ added in v1.2.1
func (*RoleRef) XXX_Unmarshal ¶ added in v1.2.1
type Subject ¶
type Subject struct { // Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". // If the Authorizer does not recognized the kind value, the Authorizer should report an error. Kind *string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"` // APIVersion holds the API group and version of the referenced subject. // Defaults to "v1" for ServiceAccount subjects. // Defaults to "rbac.authorization.k8s.io/v1alpha1" for User and Group subjects. // +k8s:conversion-gen=false // +optional ApiVersion *string `protobuf:"bytes,2,opt,name=apiVersion" json:"apiVersion,omitempty"` // Name of the object being referenced. Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` // Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty // the Authorizer should report an error. // +optional Namespace *string `protobuf:"bytes,4,opt,name=namespace" json:"namespace,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
func (*Subject) Descriptor ¶
func (*Subject) GetApiVersion ¶
func (*Subject) GetNamespace ¶
func (*Subject) MarshalToSizedBuffer ¶ added in v1.2.1
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *Subject) XXX_DiscardUnknown()