Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 contains API Schema definitions for the kubeeye v1alpha1 API group +kubebuilder:object:generate=true +groupName=kubeeye.kubesphere.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AuditResults
- type ClusterInfo
- type ClusterInsight
- type ClusterInsightList
- type ClusterInsightSpec
- type ClusterInsightStatus
- type PluginsResult
- type ResourceInfos
- type ResultInfos
- type ResultItems
- type ScoreInfo
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kubeeye.kubesphere.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶ added in v0.5.0
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource ¶ added in v0.5.0
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AuditResults ¶ added in v0.4.1
type AuditResults struct { NameSpace string `json:"namespace,omitempty"` ResultInfos []ResultInfos `json:"resultInfos,omitempty"` }
func (*AuditResults) DeepCopy ¶ added in v0.4.1
func (in *AuditResults) DeepCopy() *AuditResults
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuditResults.
func (*AuditResults) DeepCopyInto ¶ added in v0.4.1
func (in *AuditResults) DeepCopyInto(out *AuditResults)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterInfo ¶
type ClusterInfo struct { ClusterVersion string `json:"version,omitempty"` NodesCount int `json:"nodesCount,omitempty"` NamespacesCount int `json:"namespacesCount,omitempty"` WorkloadsCount int `json:"workloadsCount,omitempty"` NamespacesList []string `json:"namespacesList,omitempty"` }
func (*ClusterInfo) DeepCopy ¶
func (in *ClusterInfo) DeepCopy() *ClusterInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfo.
func (*ClusterInfo) DeepCopyInto ¶
func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterInsight ¶
type ClusterInsight struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterInsightSpec `json:"spec,omitempty"` Status ClusterInsightStatus `json:"status,omitempty"` }
ClusterInsight is the Schema for the clusterinsights API
func (*ClusterInsight) DeepCopy ¶
func (in *ClusterInsight) DeepCopy() *ClusterInsight
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInsight.
func (*ClusterInsight) DeepCopyInto ¶
func (in *ClusterInsight) DeepCopyInto(out *ClusterInsight)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterInsight) DeepCopyObject ¶
func (in *ClusterInsight) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterInsightList ¶
type ClusterInsightList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterInsight `json:"items"` }
ClusterInsightList contains a list of ClusterInsight
func (*ClusterInsightList) DeepCopy ¶
func (in *ClusterInsightList) DeepCopy() *ClusterInsightList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInsightList.
func (*ClusterInsightList) DeepCopyInto ¶
func (in *ClusterInsightList) DeepCopyInto(out *ClusterInsightList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterInsightList) DeepCopyObject ¶
func (in *ClusterInsightList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterInsightSpec ¶
type ClusterInsightSpec struct {
AuditPeriod string `json:"auditPeriod"`
}
ClusterInsightSpec defines the desired state of ClusterInsight
func (*ClusterInsightSpec) DeepCopy ¶
func (in *ClusterInsightSpec) DeepCopy() *ClusterInsightSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInsightSpec.
func (*ClusterInsightSpec) DeepCopyInto ¶
func (in *ClusterInsightSpec) DeepCopyInto(out *ClusterInsightSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterInsightStatus ¶
type ClusterInsightStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"` ClusterInfo `json:"clusterInfo,omitempty"` ScoreInfo `json:"scoreInfo,omitempty"` AuditResults []AuditResults `json:"auditResults,omitempty"` PluginsResults []PluginsResult `json:"pluginsResults,omitempty"` AuditPercent int `json:"auditPercent,omitempty"` }
ClusterInsightStatus defines the observed state of ClusterInsight
func (*ClusterInsightStatus) DeepCopy ¶
func (in *ClusterInsightStatus) DeepCopy() *ClusterInsightStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInsightStatus.
func (*ClusterInsightStatus) DeepCopyInto ¶
func (in *ClusterInsightStatus) DeepCopyInto(out *ClusterInsightStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginsResult ¶ added in v0.5.0
type PluginsResult struct { // +kubebuilder:pruning:PreserveUnknownFields Result runtime.RawExtension `json:"result,omitempty"` Name string `json:"pluginName,omitempty"` Ready bool `json:"ready,omitempty"` }
func (*PluginsResult) DeepCopy ¶ added in v0.5.0
func (in *PluginsResult) DeepCopy() *PluginsResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginsResult.
func (*PluginsResult) DeepCopyInto ¶ added in v0.5.0
func (in *PluginsResult) DeepCopyInto(out *PluginsResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceInfos ¶
type ResourceInfos struct { Name string `json:"name,omitempty"` ResultItems []ResultItems `json:"items,omitempty"` }
func (*ResourceInfos) DeepCopy ¶
func (in *ResourceInfos) DeepCopy() *ResourceInfos
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceInfos.
func (*ResourceInfos) DeepCopyInto ¶
func (in *ResourceInfos) DeepCopyInto(out *ResourceInfos)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResultInfos ¶
type ResultInfos struct { ResourceType string `json:"resourceType,omitempty"` ResourceInfos `json:"resourceInfos,omitempty"` }
func (*ResultInfos) DeepCopy ¶
func (in *ResultInfos) DeepCopy() *ResultInfos
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultInfos.
func (*ResultInfos) DeepCopyInto ¶
func (in *ResultInfos) DeepCopyInto(out *ResultInfos)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResultItems ¶
type ResultItems struct { Level string `json:"level,omitempty"` Message string `json:"message,omitempty"` Reason string `json:"reason,omitempty"` }
func (*ResultItems) DeepCopy ¶
func (in *ResultItems) DeepCopy() *ResultItems
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultItems.
func (*ResultItems) DeepCopyInto ¶
func (in *ResultItems) DeepCopyInto(out *ResultItems)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScoreInfo ¶ added in v0.4.1
type ScoreInfo struct { Score int `json:"score,omitempty"` Total int `json:"total,omitempty"` Dangerous int `json:"dangerous,omitempty"` Warning int `json:"warning,omitempty"` Ignore int `json:"ignore,omitempty"` Passing int `json:"passing,omitempty"` }
func (*ScoreInfo) DeepCopy ¶ added in v0.4.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScoreInfo.
func (*ScoreInfo) DeepCopyInto ¶ added in v0.4.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.