Documentation ¶
Overview ¶
Package v1alpha1 is a generated protocol buffer package.
It is generated from these files:
k8s.io/kubernetes/pkg/apis/rbac/v1alpha1/generated.proto
It has these top-level messages:
ClusterRole ClusterRoleBinding ClusterRoleBindingList ClusterRoleList PolicyRule Role RoleBinding RoleBindingList RoleList Subject
Index ¶
- Variables
- func AddToScheme(scheme *runtime.Scheme)
- func Convert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(in *rbac.ClusterRoleBindingList, out *ClusterRoleBindingList, ...) error
- func Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac.ClusterRoleBinding, out *ClusterRoleBinding, s conversion.Scope) error
- func Convert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList(in *rbac.ClusterRoleList, out *ClusterRoleList, s conversion.Scope) error
- func Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole(in *rbac.ClusterRole, out *ClusterRole, s conversion.Scope) error
- func Convert_rbac_PolicyRule_To_v1alpha1_PolicyRule(in *rbac.PolicyRule, out *PolicyRule, s conversion.Scope) error
- func Convert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleBindingList, out *RoleBindingList, s conversion.Scope) error
- func Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding, out *RoleBinding, s conversion.Scope) error
- func Convert_rbac_RoleList_To_v1alpha1_RoleList(in *rbac.RoleList, out *RoleList, s conversion.Scope) error
- func Convert_rbac_Role_To_v1alpha1_Role(in *rbac.Role, out *Role, s conversion.Scope) error
- func Convert_rbac_Subject_To_v1alpha1_Subject(in *rbac.Subject, out *Subject, s conversion.Scope) error
- func Convert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *ClusterRoleBindingList, out *rbac.ClusterRoleBindingList, ...) error
- func Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRoleBinding, out *rbac.ClusterRoleBinding, s conversion.Scope) error
- func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleList, out *rbac.ClusterRoleList, s conversion.Scope) error
- func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.ClusterRole, s conversion.Scope) error
- func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error
- func Convert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingList, out *rbac.RoleBindingList, s conversion.Scope) error
- func Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.RoleBinding, s conversion.Scope) error
- func Convert_v1alpha1_RoleList_To_rbac_RoleList(in *RoleList, out *rbac.RoleList, s conversion.Scope) error
- func Convert_v1alpha1_Role_To_rbac_Role(in *Role, out *rbac.Role, s conversion.Scope) error
- func Convert_v1alpha1_Subject_To_rbac_Subject(in *Subject, out *rbac.Subject, s conversion.Scope) error
- func DeepCopy_v1alpha1_ClusterRole(in ClusterRole, out *ClusterRole, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_ClusterRoleBinding(in ClusterRoleBinding, out *ClusterRoleBinding, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_ClusterRoleBindingList(in ClusterRoleBindingList, out *ClusterRoleBindingList, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_ClusterRoleList(in ClusterRoleList, out *ClusterRoleList, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_PolicyRule(in PolicyRule, out *PolicyRule, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_Role(in Role, out *Role, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_RoleBinding(in RoleBinding, out *RoleBinding, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_RoleBindingList(in RoleBindingList, out *RoleBindingList, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_RoleList(in RoleList, out *RoleList, c *conversion.Cloner) error
- func DeepCopy_v1alpha1_Subject(in Subject, out *Subject, c *conversion.Cloner) error
- type ClusterRole
- func (x *ClusterRole) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ClusterRole) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ClusterRole) Marshal() (data []byte, err error)
- func (m *ClusterRole) MarshalTo(data []byte) (int, error)
- func (*ClusterRole) ProtoMessage()
- func (m *ClusterRole) Reset()
- func (m *ClusterRole) Size() (n int)
- func (m *ClusterRole) String() string
- func (ClusterRole) SwaggerDoc() map[string]string
- func (m *ClusterRole) Unmarshal(data []byte) error
- type ClusterRoleBinding
- func (x *ClusterRoleBinding) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ClusterRoleBinding) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ClusterRoleBinding) Marshal() (data []byte, err error)
- func (m *ClusterRoleBinding) MarshalTo(data []byte) (int, error)
- func (*ClusterRoleBinding) ProtoMessage()
- func (m *ClusterRoleBinding) Reset()
- func (m *ClusterRoleBinding) Size() (n int)
- func (m *ClusterRoleBinding) String() string
- func (ClusterRoleBinding) SwaggerDoc() map[string]string
- func (m *ClusterRoleBinding) Unmarshal(data []byte) error
- type ClusterRoleBindingList
- func (x *ClusterRoleBindingList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ClusterRoleBindingList) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ClusterRoleBindingList) Marshal() (data []byte, err error)
- func (m *ClusterRoleBindingList) MarshalTo(data []byte) (int, error)
- func (*ClusterRoleBindingList) ProtoMessage()
- func (m *ClusterRoleBindingList) Reset()
- func (m *ClusterRoleBindingList) Size() (n int)
- func (m *ClusterRoleBindingList) String() string
- func (ClusterRoleBindingList) SwaggerDoc() map[string]string
- func (m *ClusterRoleBindingList) Unmarshal(data []byte) error
- type ClusterRoleList
- func (x *ClusterRoleList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ClusterRoleList) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ClusterRoleList) Marshal() (data []byte, err error)
- func (m *ClusterRoleList) MarshalTo(data []byte) (int, error)
- func (*ClusterRoleList) ProtoMessage()
- func (m *ClusterRoleList) Reset()
- func (m *ClusterRoleList) Size() (n int)
- func (m *ClusterRoleList) String() string
- func (ClusterRoleList) SwaggerDoc() map[string]string
- func (m *ClusterRoleList) Unmarshal(data []byte) error
- type PolicyRule
- func (x *PolicyRule) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *PolicyRule) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *PolicyRule) Marshal() (data []byte, err error)
- func (m *PolicyRule) MarshalTo(data []byte) (int, error)
- func (*PolicyRule) ProtoMessage()
- func (m *PolicyRule) Reset()
- func (m *PolicyRule) Size() (n int)
- func (m *PolicyRule) String() string
- func (PolicyRule) SwaggerDoc() map[string]string
- func (m *PolicyRule) Unmarshal(data []byte) error
- type Role
- func (x *Role) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *Role) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *Role) Marshal() (data []byte, err error)
- func (m *Role) MarshalTo(data []byte) (int, error)
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) Size() (n int)
- func (m *Role) String() string
- func (Role) SwaggerDoc() map[string]string
- func (m *Role) Unmarshal(data []byte) error
- type RoleBinding
- func (x *RoleBinding) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *RoleBinding) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *RoleBinding) Marshal() (data []byte, err error)
- func (m *RoleBinding) MarshalTo(data []byte) (int, error)
- func (*RoleBinding) ProtoMessage()
- func (m *RoleBinding) Reset()
- func (m *RoleBinding) Size() (n int)
- func (m *RoleBinding) String() string
- func (RoleBinding) SwaggerDoc() map[string]string
- func (m *RoleBinding) Unmarshal(data []byte) error
- type RoleBindingList
- func (x *RoleBindingList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *RoleBindingList) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *RoleBindingList) Marshal() (data []byte, err error)
- func (m *RoleBindingList) MarshalTo(data []byte) (int, error)
- func (*RoleBindingList) ProtoMessage()
- func (m *RoleBindingList) Reset()
- func (m *RoleBindingList) Size() (n int)
- func (m *RoleBindingList) String() string
- func (RoleBindingList) SwaggerDoc() map[string]string
- func (m *RoleBindingList) Unmarshal(data []byte) error
- type RoleList
- func (x *RoleList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *RoleList) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *RoleList) Marshal() (data []byte, err error)
- func (m *RoleList) MarshalTo(data []byte) (int, error)
- func (*RoleList) ProtoMessage()
- func (m *RoleList) Reset()
- func (m *RoleList) Size() (n int)
- func (m *RoleList) String() string
- func (RoleList) SwaggerDoc() map[string]string
- func (m *RoleList) Unmarshal(data []byte) error
- type Subject
- func (x *Subject) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *Subject) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *Subject) Marshal() (data []byte, err error)
- func (m *Subject) MarshalTo(data []byte) (int, error)
- func (*Subject) ProtoMessage()
- func (m *Subject) Reset()
- func (m *Subject) Size() (n int)
- func (m *Subject) String() string
- func (Subject) SwaggerDoc() map[string]string
- func (m *Subject) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
var SchemeGroupVersion = unversioned.GroupVersion{Group: rbac.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func AddToScheme ¶
func Convert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList ¶
func Convert_rbac_ClusterRoleBindingList_To_v1alpha1_ClusterRoleBindingList(in *rbac.ClusterRoleBindingList, out *ClusterRoleBindingList, s conversion.Scope) error
func Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding ¶
func Convert_rbac_ClusterRoleBinding_To_v1alpha1_ClusterRoleBinding(in *rbac.ClusterRoleBinding, out *ClusterRoleBinding, s conversion.Scope) error
func Convert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList ¶
func Convert_rbac_ClusterRoleList_To_v1alpha1_ClusterRoleList(in *rbac.ClusterRoleList, out *ClusterRoleList, s conversion.Scope) error
func Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole ¶
func Convert_rbac_ClusterRole_To_v1alpha1_ClusterRole(in *rbac.ClusterRole, out *ClusterRole, s conversion.Scope) error
func Convert_rbac_PolicyRule_To_v1alpha1_PolicyRule ¶
func Convert_rbac_PolicyRule_To_v1alpha1_PolicyRule(in *rbac.PolicyRule, out *PolicyRule, s conversion.Scope) error
func Convert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList ¶
func Convert_rbac_RoleBindingList_To_v1alpha1_RoleBindingList(in *rbac.RoleBindingList, out *RoleBindingList, s conversion.Scope) error
func Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding ¶
func Convert_rbac_RoleBinding_To_v1alpha1_RoleBinding(in *rbac.RoleBinding, out *RoleBinding, s conversion.Scope) error
func Convert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList ¶
func Convert_v1alpha1_ClusterRoleBindingList_To_rbac_ClusterRoleBindingList(in *ClusterRoleBindingList, out *rbac.ClusterRoleBindingList, s conversion.Scope) error
func Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding ¶
func Convert_v1alpha1_ClusterRoleBinding_To_rbac_ClusterRoleBinding(in *ClusterRoleBinding, out *rbac.ClusterRoleBinding, s conversion.Scope) error
func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList ¶
func Convert_v1alpha1_ClusterRoleList_To_rbac_ClusterRoleList(in *ClusterRoleList, out *rbac.ClusterRoleList, s conversion.Scope) error
func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole ¶
func Convert_v1alpha1_ClusterRole_To_rbac_ClusterRole(in *ClusterRole, out *rbac.ClusterRole, s conversion.Scope) error
func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule ¶
func Convert_v1alpha1_PolicyRule_To_rbac_PolicyRule(in *PolicyRule, out *rbac.PolicyRule, s conversion.Scope) error
func Convert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList ¶
func Convert_v1alpha1_RoleBindingList_To_rbac_RoleBindingList(in *RoleBindingList, out *rbac.RoleBindingList, s conversion.Scope) error
func Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding ¶
func Convert_v1alpha1_RoleBinding_To_rbac_RoleBinding(in *RoleBinding, out *rbac.RoleBinding, s conversion.Scope) error
func DeepCopy_v1alpha1_ClusterRole ¶
func DeepCopy_v1alpha1_ClusterRole(in ClusterRole, out *ClusterRole, c *conversion.Cloner) error
func DeepCopy_v1alpha1_ClusterRoleBinding ¶
func DeepCopy_v1alpha1_ClusterRoleBinding(in ClusterRoleBinding, out *ClusterRoleBinding, c *conversion.Cloner) error
func DeepCopy_v1alpha1_ClusterRoleBindingList ¶
func DeepCopy_v1alpha1_ClusterRoleBindingList(in ClusterRoleBindingList, out *ClusterRoleBindingList, c *conversion.Cloner) error
func DeepCopy_v1alpha1_ClusterRoleList ¶
func DeepCopy_v1alpha1_ClusterRoleList(in ClusterRoleList, out *ClusterRoleList, c *conversion.Cloner) error
func DeepCopy_v1alpha1_PolicyRule ¶
func DeepCopy_v1alpha1_PolicyRule(in PolicyRule, out *PolicyRule, c *conversion.Cloner) error
func DeepCopy_v1alpha1_Role ¶
func DeepCopy_v1alpha1_Role(in Role, out *Role, c *conversion.Cloner) error
func DeepCopy_v1alpha1_RoleBinding ¶
func DeepCopy_v1alpha1_RoleBinding(in RoleBinding, out *RoleBinding, c *conversion.Cloner) error
func DeepCopy_v1alpha1_RoleBindingList ¶
func DeepCopy_v1alpha1_RoleBindingList(in RoleBindingList, out *RoleBindingList, c *conversion.Cloner) error
func DeepCopy_v1alpha1_RoleList ¶
func DeepCopy_v1alpha1_RoleList(in RoleList, out *RoleList, c *conversion.Cloner) error
func DeepCopy_v1alpha1_Subject ¶
func DeepCopy_v1alpha1_Subject(in Subject, out *Subject, c *conversion.Cloner) error
Types ¶
type ClusterRole ¶
type ClusterRole struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Rules holds all the PolicyRules for this ClusterRole Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` }
ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
func (*ClusterRole) CodecDecodeSelf ¶
func (x *ClusterRole) CodecDecodeSelf(d *codec1978.Decoder)
func (*ClusterRole) CodecEncodeSelf ¶
func (x *ClusterRole) CodecEncodeSelf(e *codec1978.Encoder)
func (*ClusterRole) Marshal ¶
func (m *ClusterRole) Marshal() (data []byte, err 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) SwaggerDoc ¶
func (ClusterRole) SwaggerDoc() map[string]string
func (*ClusterRole) Unmarshal ¶
func (m *ClusterRole) Unmarshal(data []byte) error
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Subjects holds references to the objects the role applies to. Subjects []Subject `json:"subjects" protobuf:"bytes,2,rep,name=subjects"` // RoleRef can only reference a ClusterRole in the global namespace. // If the RoleRef cannot be resolved, the Authorizer must return an error. RoleRef v1.ObjectReference `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` }
ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.
func (*ClusterRoleBinding) CodecDecodeSelf ¶
func (x *ClusterRoleBinding) CodecDecodeSelf(d *codec1978.Decoder)
func (*ClusterRoleBinding) CodecEncodeSelf ¶
func (x *ClusterRoleBinding) CodecEncodeSelf(e *codec1978.Encoder)
func (*ClusterRoleBinding) Marshal ¶
func (m *ClusterRoleBinding) Marshal() (data []byte, err error)
func (*ClusterRoleBinding) MarshalTo ¶
func (m *ClusterRoleBinding) MarshalTo(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) SwaggerDoc ¶
func (ClusterRoleBinding) SwaggerDoc() map[string]string
func (*ClusterRoleBinding) Unmarshal ¶
func (m *ClusterRoleBinding) Unmarshal(data []byte) error
type ClusterRoleBindingList ¶
type ClusterRoleBindingList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of ClusterRoleBindings Items []ClusterRoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` }
ClusterRoleBindingList is a collection of ClusterRoleBindings
func (*ClusterRoleBindingList) CodecDecodeSelf ¶
func (x *ClusterRoleBindingList) CodecDecodeSelf(d *codec1978.Decoder)
func (*ClusterRoleBindingList) CodecEncodeSelf ¶
func (x *ClusterRoleBindingList) CodecEncodeSelf(e *codec1978.Encoder)
func (*ClusterRoleBindingList) Marshal ¶
func (m *ClusterRoleBindingList) Marshal() (data []byte, err error)
func (*ClusterRoleBindingList) MarshalTo ¶
func (m *ClusterRoleBindingList) MarshalTo(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) SwaggerDoc ¶
func (ClusterRoleBindingList) SwaggerDoc() map[string]string
func (*ClusterRoleBindingList) Unmarshal ¶
func (m *ClusterRoleBindingList) Unmarshal(data []byte) error
type ClusterRoleList ¶
type ClusterRoleList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of ClusterRoles Items []ClusterRole `json:"items" protobuf:"bytes,2,rep,name=items"` }
ClusterRoleList is a collection of ClusterRoles
func (*ClusterRoleList) CodecDecodeSelf ¶
func (x *ClusterRoleList) CodecDecodeSelf(d *codec1978.Decoder)
func (*ClusterRoleList) CodecEncodeSelf ¶
func (x *ClusterRoleList) CodecEncodeSelf(e *codec1978.Encoder)
func (*ClusterRoleList) Marshal ¶
func (m *ClusterRoleList) Marshal() (data []byte, err 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) SwaggerDoc ¶
func (ClusterRoleList) SwaggerDoc() map[string]string
func (*ClusterRoleList) Unmarshal ¶
func (m *ClusterRoleList) Unmarshal(data []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 `json:"verbs" protobuf:"bytes,1,rep,name=verbs"` // AttributeRestrictions will vary depending on what the Authorizer/AuthorizationAttributeBuilder pair supports. // If the Authorizer does not recognize how to handle the AttributeRestrictions, the Authorizer should report an error. AttributeRestrictions runtime.RawExtension `json:"attributeRestrictions,omitempty" protobuf:"bytes,2,opt,name=attributeRestrictions"` // 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. APIGroups []string `json:"apiGroups" protobuf:"bytes,3,rep,name=apiGroups"` // Resources is a list of resources this rule applies to. ResourceAll represents all resources. Resources []string `json:"resources" protobuf:"bytes,4,rep,name=resources"` // ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. ResourceNames []string `json:"resourceNames,omitempty" protobuf:"bytes,5,rep,name=resourceNames"` // NonResourceURLsSlice 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 // This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. // Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,6,rep,name=nonResourceURLs"` }
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) CodecDecodeSelf ¶
func (x *PolicyRule) CodecDecodeSelf(d *codec1978.Decoder)
func (*PolicyRule) CodecEncodeSelf ¶
func (x *PolicyRule) CodecEncodeSelf(e *codec1978.Encoder)
func (*PolicyRule) Marshal ¶
func (m *PolicyRule) Marshal() (data []byte, err 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) SwaggerDoc ¶
func (PolicyRule) SwaggerDoc() map[string]string
func (*PolicyRule) Unmarshal ¶
func (m *PolicyRule) Unmarshal(data []byte) error
type Role ¶
type Role struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Rules holds all the PolicyRules for this Role Rules []PolicyRule `json:"rules" protobuf:"bytes,2,rep,name=rules"` }
Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
func (*Role) CodecDecodeSelf ¶
func (*Role) CodecEncodeSelf ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (Role) SwaggerDoc ¶
type RoleBinding ¶
type RoleBinding struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Subjects holds references to the objects the role applies to. Subjects []Subject `json:"subjects" protobuf:"bytes,2,rep,name=subjects"` // 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 v1.ObjectReference `json:"roleRef" protobuf:"bytes,3,opt,name=roleRef"` }
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.
func (*RoleBinding) CodecDecodeSelf ¶
func (x *RoleBinding) CodecDecodeSelf(d *codec1978.Decoder)
func (*RoleBinding) CodecEncodeSelf ¶
func (x *RoleBinding) CodecEncodeSelf(e *codec1978.Encoder)
func (*RoleBinding) Marshal ¶
func (m *RoleBinding) Marshal() (data []byte, err 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) SwaggerDoc ¶
func (RoleBinding) SwaggerDoc() map[string]string
func (*RoleBinding) Unmarshal ¶
func (m *RoleBinding) Unmarshal(data []byte) error
type RoleBindingList ¶
type RoleBindingList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of RoleBindings Items []RoleBinding `json:"items" protobuf:"bytes,2,rep,name=items"` }
RoleBindingList is a collection of RoleBindings
func (*RoleBindingList) CodecDecodeSelf ¶
func (x *RoleBindingList) CodecDecodeSelf(d *codec1978.Decoder)
func (*RoleBindingList) CodecEncodeSelf ¶
func (x *RoleBindingList) CodecEncodeSelf(e *codec1978.Encoder)
func (*RoleBindingList) Marshal ¶
func (m *RoleBindingList) Marshal() (data []byte, err 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) SwaggerDoc ¶
func (RoleBindingList) SwaggerDoc() map[string]string
func (*RoleBindingList) Unmarshal ¶
func (m *RoleBindingList) Unmarshal(data []byte) error
type RoleList ¶
type RoleList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of Roles Items []Role `json:"items" protobuf:"bytes,2,rep,name=items"` }
RoleList is a collection of Roles
func (*RoleList) CodecDecodeSelf ¶
func (*RoleList) CodecEncodeSelf ¶
func (*RoleList) ProtoMessage ¶
func (*RoleList) ProtoMessage()
func (RoleList) SwaggerDoc ¶
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 `json:"kind" protobuf:"bytes,1,opt,name=kind"` // APIVersion holds the API group and version of the referenced object. APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt.name=apiVersion"` // Name of the object being referenced. Name string `json:"name" protobuf:"bytes,3,opt,name=name"` // 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. Namespace string `json:"namespace,omitempty" protobuf:"bytes,4,opt,name=namespace"` }
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) CodecDecodeSelf ¶
func (*Subject) CodecEncodeSelf ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()