Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +groupName=policy.kubeedge.io
Index ¶
Constants ¶
const ( // GroupName is the group name use in this package. GroupName = "policy.kubeedge.io" // Version is the API version. Version = "v1alpha1" )
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var ( // SchemeGroupVersion is the group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group-qualified GroupResource.
Types ¶
type AccessClusterRoleBinding ¶
type AccessClusterRoleBinding struct { // ClusterRoleBinding represents rbac ClusterRoleBinding. ClusterRoleBinding rbac.ClusterRoleBinding `json:"clusterRoleBinding,omitempty"` // Rules contains role rules. Rules []rbac.PolicyRule `json:"rules,omitempty"` }
AccessClusterRoleBinding represents rbac ClusterRoleBinding plus detailed ClusterRole info.
func (*AccessClusterRoleBinding) DeepCopy ¶
func (in *AccessClusterRoleBinding) DeepCopy() *AccessClusterRoleBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessClusterRoleBinding.
func (*AccessClusterRoleBinding) DeepCopyInto ¶
func (in *AccessClusterRoleBinding) DeepCopyInto(out *AccessClusterRoleBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessRoleBinding ¶
type AccessRoleBinding struct { // RoleBinding represents rbac rolebinding. RoleBinding rbac.RoleBinding `json:"roleBinding,omitempty"` // Rules contains role rules. Rules []rbac.PolicyRule `json:"rules,omitempty"` }
AccessRoleBinding represents rbac rolebinding plus detailed role info.
func (*AccessRoleBinding) DeepCopy ¶
func (in *AccessRoleBinding) DeepCopy() *AccessRoleBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessRoleBinding.
func (*AccessRoleBinding) DeepCopyInto ¶
func (in *AccessRoleBinding) DeepCopyInto(out *AccessRoleBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessSpec ¶
type AccessSpec struct { // ServiceAccount is one-to-one corresponding relations with the serviceaccountaccess. ServiceAccount corev1.ServiceAccount `json:"serviceAccount,omitempty"` // ServiceAccountUID is the uid of serviceaccount. ServiceAccountUID types.UID `json:"serviceAccountUid,omitempty"` // AccessRoleBinding represents rbac rolebinding plus detailed role info. AccessRoleBinding []AccessRoleBinding `json:"accessRoleBinding,omitempty"` // AccessClusterRoleBinding represents rbac ClusterRoleBinding plus detailed ClusterRole info. AccessClusterRoleBinding []AccessClusterRoleBinding `json:"accessClusterRoleBinding,omitempty"` }
AccessSpec defines the desired state of AccessSpec
func (*AccessSpec) DeepCopy ¶
func (in *AccessSpec) DeepCopy() *AccessSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessSpec.
func (*AccessSpec) DeepCopyInto ¶
func (in *AccessSpec) DeepCopyInto(out *AccessSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessStatus ¶
type AccessStatus struct { // NodeList represents the node name which store the rules. NodeList []string `json:"nodeList,omitempty"` }
AccessStatus defines the observed state of ServiceAccountAccess
func (*AccessStatus) DeepCopy ¶
func (in *AccessStatus) DeepCopy() *AccessStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessStatus.
func (*AccessStatus) DeepCopyInto ¶
func (in *AccessStatus) DeepCopyInto(out *AccessStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceAccountAccess ¶
type ServiceAccountAccess struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec represents the specification of rbac. // +required Spec AccessSpec `json:"spec,omitempty"` // Status represents the node list which store the rules. // +optional Status AccessStatus `json:"status,omitempty"` }
ServiceAccountAccess is the Schema for the ServiceAccountAccess API
func (*ServiceAccountAccess) DeepCopy ¶
func (in *ServiceAccountAccess) DeepCopy() *ServiceAccountAccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountAccess.
func (*ServiceAccountAccess) DeepCopyInto ¶
func (in *ServiceAccountAccess) DeepCopyInto(out *ServiceAccountAccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccountAccess) DeepCopyObject ¶
func (in *ServiceAccountAccess) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceAccountAccessList ¶
type ServiceAccountAccessList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceAccountAccess `json:"items"` }
ServiceAccountAccessList contains a list of ServiceAccountAccess
func (*ServiceAccountAccessList) DeepCopy ¶
func (in *ServiceAccountAccessList) DeepCopy() *ServiceAccountAccessList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountAccessList.
func (*ServiceAccountAccessList) DeepCopyInto ¶
func (in *ServiceAccountAccessList) DeepCopyInto(out *ServiceAccountAccessList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceAccountAccessList) DeepCopyObject ¶
func (in *ServiceAccountAccessList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.