Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationRule ¶
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 ClusterRoleSelectors []apimachinery_pkg_apis_meta_v1.LabelSelector `json:"clusterRoleSelectors"` }
AggregationRule AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
swagger:model AggregationRule
func (AggregationRule) MarshalEasyJSON ¶
func (v AggregationRule) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AggregationRule) MarshalJSON ¶
func (v AggregationRule) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AggregationRule) UnmarshalEasyJSON ¶
func (v *AggregationRule) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AggregationRule) UnmarshalJSON ¶
func (v *AggregationRule) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClusterRole ¶
type ClusterRole struct { // 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. AggregationRule *AggregationRule `json:"aggregationRule,omitempty"` // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // Rules holds all the PolicyRules for this ClusterRole Rules []*PolicyRule `json:"rules"` }
ClusterRole 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.
swagger:model ClusterRole
func (ClusterRole) MarshalEasyJSON ¶
func (v ClusterRole) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClusterRole) MarshalJSON ¶
func (v ClusterRole) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClusterRole) UnmarshalEasyJSON ¶
func (v *ClusterRole) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClusterRole) UnmarshalJSON ¶
func (v *ClusterRole) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClusterRoleBinding ¶
type ClusterRoleBinding struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. // Required: true RoleRef *RoleRef `json:"roleRef"` // Subjects holds references to the objects the role applies to. Subjects []*Subject `json:"subjects"` }
ClusterRoleBinding 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.
swagger:model ClusterRoleBinding
func (ClusterRoleBinding) MarshalEasyJSON ¶
func (v ClusterRoleBinding) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClusterRoleBinding) MarshalJSON ¶
func (v ClusterRoleBinding) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClusterRoleBinding) UnmarshalEasyJSON ¶
func (v *ClusterRoleBinding) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClusterRoleBinding) UnmarshalJSON ¶
func (v *ClusterRoleBinding) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClusterRoleBindingList ¶
type ClusterRoleBindingList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Items is a list of ClusterRoleBindings // Required: true Items []*ClusterRoleBinding `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
ClusterRoleBindingList 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.
swagger:model ClusterRoleBindingList
func (ClusterRoleBindingList) MarshalEasyJSON ¶
func (v ClusterRoleBindingList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClusterRoleBindingList) MarshalJSON ¶
func (v ClusterRoleBindingList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClusterRoleBindingList) UnmarshalEasyJSON ¶
func (v *ClusterRoleBindingList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClusterRoleBindingList) UnmarshalJSON ¶
func (v *ClusterRoleBindingList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClusterRoleList ¶
type ClusterRoleList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Items is a list of ClusterRoles // Required: true Items []*ClusterRole `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
ClusterRoleList 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.
swagger:model ClusterRoleList
func (ClusterRoleList) MarshalEasyJSON ¶
func (v ClusterRoleList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClusterRoleList) MarshalJSON ¶
func (v ClusterRoleList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClusterRoleList) UnmarshalEasyJSON ¶
func (v *ClusterRoleList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClusterRoleList) UnmarshalJSON ¶
func (v *ClusterRoleList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PolicyRule ¶
type PolicyRule struct { // 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"` // 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. NonResourceURLs []string `json:"nonResourceURLs"` // 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"` // Resources is a list of resources this rule applies to. ResourceAll represents all resources. Resources []string `json:"resources"` // Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds. // Required: true Verbs []string `json:"verbs"` }
PolicyRule 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.
swagger:model PolicyRule
func (PolicyRule) MarshalEasyJSON ¶
func (v PolicyRule) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PolicyRule) MarshalJSON ¶
func (v PolicyRule) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PolicyRule) UnmarshalEasyJSON ¶
func (v *PolicyRule) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PolicyRule) UnmarshalJSON ¶
func (v *PolicyRule) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Role ¶
type Role struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // Rules holds all the PolicyRules for this Role Rules []*PolicyRule `json:"rules"` }
Role 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.
swagger:model Role
func (Role) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Role) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Role) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Role) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RoleBinding ¶
type RoleBinding struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,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. // Required: true RoleRef *RoleRef `json:"roleRef"` // Subjects holds references to the objects the role applies to. Subjects []*Subject `json:"subjects"` }
RoleBinding 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.
swagger:model RoleBinding
func (RoleBinding) MarshalEasyJSON ¶
func (v RoleBinding) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoleBinding) MarshalJSON ¶
func (v RoleBinding) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RoleBinding) UnmarshalEasyJSON ¶
func (v *RoleBinding) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoleBinding) UnmarshalJSON ¶
func (v *RoleBinding) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RoleBindingList ¶
type RoleBindingList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Items is a list of RoleBindings // Required: true Items []*RoleBinding `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
RoleBindingList 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.
swagger:model RoleBindingList
func (RoleBindingList) MarshalEasyJSON ¶
func (v RoleBindingList) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoleBindingList) MarshalJSON ¶
func (v RoleBindingList) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RoleBindingList) UnmarshalEasyJSON ¶
func (v *RoleBindingList) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoleBindingList) UnmarshalJSON ¶
func (v *RoleBindingList) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RoleList ¶
type RoleList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Items is a list of Roles // Required: true Items []*Role `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
RoleList 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.
swagger:model RoleList
func (RoleList) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoleList) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RoleList) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoleList) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type RoleRef ¶
type RoleRef struct { // APIGroup is the group for the resource being referenced // Required: true APIGroup *string `json:"apiGroup"` // Kind is the type of resource being referenced // Required: true Kind *string `json:"kind"` // Name is the name of resource being referenced // Required: true Name *string `json:"name"` }
RoleRef RoleRef contains information that points to the role being used
swagger:model RoleRef
func (RoleRef) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (RoleRef) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*RoleRef) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RoleRef) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Subject ¶
type Subject struct { // 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. APIVersion string `json:"apiVersion,omitempty"` // 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. // Required: true Kind *string `json:"kind"` // Name of the object being referenced. // Required: true Name *string `json:"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"` }
Subject 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.
swagger:model Subject
func (Subject) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Subject) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Subject) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Subject) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Source Files ¶
- aggregation_rule.go
- aggregation_rule_easyjson.go
- cluster_role.go
- cluster_role_binding.go
- cluster_role_binding_easyjson.go
- cluster_role_binding_list.go
- cluster_role_binding_list_easyjson.go
- cluster_role_easyjson.go
- cluster_role_list.go
- cluster_role_list_easyjson.go
- policy_rule.go
- policy_rule_easyjson.go
- role.go
- role_binding.go
- role_binding_easyjson.go
- role_binding_list.go
- role_binding_list_easyjson.go
- role_easyjson.go
- role_list.go
- role_list_easyjson.go
- role_ref.go
- role_ref_easyjson.go
- subject.go
- subject_easyjson.go