v1alpha2

package
v1.0.0-beta.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the kubeeye v1alpha2 API group +kubebuilder:object:generate=true +groupName=kubeeye.kubesphere.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kubeeye.kubesphere.io", Version: "v1alpha2"}

	// 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
)
View Source
var SchemeGroupVersion = GroupVersion

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	Name     string `json:"name,omitempty"`
	Provider string `json:"provider,omitempty"`
}

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

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"`
}

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 CommandResultItem

type CommandResultItem struct {
	Name     string `json:"name,omitempty"`
	Command  string `json:"command,omitempty"`
	Level    Level  `json:"level,omitempty"`
	Assert   bool   `json:"assert,omitempty"`
	Value    string `json:"value,omitempty"`
	NodeName string `json:"nodeName,omitempty"`
}

func (*CommandResultItem) DeepCopy

func (in *CommandResultItem) DeepCopy() *CommandResultItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommandResultItem.

func (*CommandResultItem) DeepCopyInto

func (in *CommandResultItem) DeepCopyInto(out *CommandResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ComponentResultItem

type ComponentResultItem struct {
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Endpoint  string `json:"endpoint,omitempty"`
	Level     Level  `json:"level,omitempty"`
	Assert    bool   `json:"assert,omitempty"`
}

func (*ComponentResultItem) DeepCopy

func (in *ComponentResultItem) DeepCopy() *ComponentResultItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentResultItem.

func (*ComponentResultItem) DeepCopyInto

func (in *ComponentResultItem) DeepCopyInto(out *ComponentResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ComponentRule

type ComponentRule struct {
	ExcludeComponent []string `json:"excludeComponent,omitempty"`
	IncludeComponent []string `json:"includeComponent,omitempty"`
}

func (*ComponentRule) DeepCopy

func (in *ComponentRule) DeepCopy() *ComponentRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentRule.

func (*ComponentRule) DeepCopyInto

func (in *ComponentRule) DeepCopyInto(out *ComponentRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomCommandRule

type CustomCommandRule struct {
	RuleItemBases `json:",inline"`
	Command       string `json:"command,omitempty"`
	Node          `json:",inline"`
}

func (*CustomCommandRule) DeepCopy

func (in *CustomCommandRule) DeepCopy() *CustomCommandRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCommandRule.

func (*CustomCommandRule) DeepCopyInto

func (in *CustomCommandRule) DeepCopyInto(out *CustomCommandRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExtraInfo

type ExtraInfo struct {
	WorkloadsCount int      `json:"workloadsCount,omitempty"`
	NamespacesList []string `json:"namespacesList,omitempty"`
}

func (*ExtraInfo) DeepCopy

func (in *ExtraInfo) DeepCopy() *ExtraInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExtraInfo.

func (*ExtraInfo) DeepCopyInto

func (in *ExtraInfo) DeepCopyInto(out *ExtraInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileChangeResultItem

type FileChangeResultItem struct {
	FileName string   `json:"fileName,omitempty"`
	Issues   []string `json:"issues,omitempty"`
	Path     string   `json:"path,omitempty"`
	Level    Level    `json:"level,omitempty"`
	NodeName string   `json:"nodeName,omitempty"`
	Assert   bool     `json:"assert,omitempty"`
}

func (*FileChangeResultItem) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileChangeResultItem.

func (*FileChangeResultItem) DeepCopyInto

func (in *FileChangeResultItem) DeepCopyInto(out *FileChangeResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileChangeRule

type FileChangeRule struct {
	RuleItemBases `json:",inline"`
	Path          string `json:"path,omitempty"`
	Node          `json:",inline"`
}

func (*FileChangeRule) DeepCopy

func (in *FileChangeRule) DeepCopy() *FileChangeRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileChangeRule.

func (*FileChangeRule) DeepCopyInto

func (in *FileChangeRule) DeepCopyInto(out *FileChangeRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FileFilterRule

type FileFilterRule struct {
	RuleItemBases `json:",inline"`
	Path          string `json:"path,omitempty"`
	Node          `json:",inline"`
}

func (*FileFilterRule) DeepCopy

func (in *FileFilterRule) DeepCopy() *FileFilterRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FileFilterRule.

func (*FileFilterRule) DeepCopyInto

func (in *FileFilterRule) DeepCopyInto(out *FileFilterRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectPlan

type InspectPlan struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InspectPlanSpec   `json:"spec,omitempty"`
	Status InspectPlanStatus `json:"status,omitempty"`
}

InspectPlan is the Schema for the InspectPlans API

func (*InspectPlan) DeepCopy

func (in *InspectPlan) DeepCopy() *InspectPlan

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectPlan.

func (*InspectPlan) DeepCopyInto

func (in *InspectPlan) DeepCopyInto(out *InspectPlan)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectPlan) DeepCopyObject

func (in *InspectPlan) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectPlanList

type InspectPlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InspectPlan `json:"items"`
}

InspectPlanList contains a list of InspectPlan

func (*InspectPlanList) DeepCopy

func (in *InspectPlanList) DeepCopy() *InspectPlanList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectPlanList.

func (*InspectPlanList) DeepCopyInto

func (in *InspectPlanList) DeepCopyInto(out *InspectPlanList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectPlanList) DeepCopyObject

func (in *InspectPlanList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectPlanSpec

type InspectPlanSpec struct {
	Schedule    *string            `json:"schedule,omitempty"`
	Suspend     bool               `json:"suspend,omitempty"`
	Timeout     string             `json:"timeout,omitempty"`
	RuleNames   []InspectRuleNames `json:"ruleNames,omitempty"`
	MaxTasks    int                `json:"maxTasks,omitempty"`
	ClusterName []Cluster          `json:"clusterName,omitempty"`
	KubeConfig  string             `json:"kubeConfig,omitempty"`
	Once        *metav1.Time       `json:"one,omitempty"`
}

InspectPlanSpec defines the desired state of InspectPlan

func (*InspectPlanSpec) DeepCopy

func (in *InspectPlanSpec) DeepCopy() *InspectPlanSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectPlanSpec.

func (*InspectPlanSpec) DeepCopyInto

func (in *InspectPlanSpec) DeepCopyInto(out *InspectPlanSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectPlanStatus

type InspectPlanStatus struct {
	LastScheduleTime  *metav1.Time `json:"lastScheduleTime,omitempty"`
	LastTaskStartTime *metav1.Time `json:"lastTaskStartTime,omitempty"`
	LastTaskEndTime   *metav1.Time `json:"lastTaskEndTime,omitempty"`
	LastTaskName      string       `json:"lastTaskName,omitempty"`
	TaskNames         []TaskNames  `json:"TaskNames,omitempty"`
	LastTaskStatus    Phase        `json:"lastTaskStatus,omitempty"`
	NextScheduleTime  *metav1.Time `json:"nextScheduleTime,omitempty"`
}

InspectPlanStatus defines the observed state of InspectPlan

func (*InspectPlanStatus) DeepCopy

func (in *InspectPlanStatus) DeepCopy() *InspectPlanStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectPlanStatus.

func (*InspectPlanStatus) DeepCopyInto

func (in *InspectPlanStatus) DeepCopyInto(out *InspectPlanStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectResult

type InspectResult struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InspectResultSpec   `json:"spec,omitempty"`
	Status InspectResultStatus `json:"status,omitempty"`
}

InspectResult is the Schema for the inspectresults API

func (*InspectResult) DeepCopy

func (in *InspectResult) DeepCopy() *InspectResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectResult.

func (*InspectResult) DeepCopyInto

func (in *InspectResult) DeepCopyInto(out *InspectResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectResult) DeepCopyObject

func (in *InspectResult) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectResultList

type InspectResultList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InspectResult `json:"items"`
}

InspectResultList contains a list of InspectResult

func (*InspectResultList) DeepCopy

func (in *InspectResultList) DeepCopy() *InspectResultList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectResultList.

func (*InspectResultList) DeepCopyInto

func (in *InspectResultList) DeepCopyInto(out *InspectResultList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectResultList) DeepCopyObject

func (in *InspectResultList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectResultSpec

type InspectResultSpec struct {
	InspectCluster   Cluster                 `json:"inspectCluster,omitempty"`
	InspectRuleTotal map[string]int          `json:"inspectRuleTotal,omitempty"`
	PrometheusResult []PrometheusResult      `json:"prometheusResult,omitempty"`
	OpaResult        KubeeyeOpaResult        `json:"opaResult,omitempty"`
	NodeInfo         []NodeInfoResultItem    `json:"nodeInfo,omitempty"`
	FileChangeResult []FileChangeResultItem  `json:"fileChangeResult,omitempty"`
	FileFilterResult []FileChangeResultItem  `json:"fileFilterResult,omitempty"`
	SysctlResult     []NodeMetricsResultItem `json:"sysctlResult,omitempty"`
	SystemdResult    []NodeMetricsResultItem `json:"systemdResult,omitempty"`
	CommandResult    []CommandResultItem     `json:"commandResult,omitempty"`
	ComponentResult  []ComponentResultItem   `json:"componentResult,omitempty"`
}

InspectResultSpec defines the desired state of InspectResult

func (*InspectResultSpec) DeepCopy

func (in *InspectResultSpec) DeepCopy() *InspectResultSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectResultSpec.

func (*InspectResultSpec) DeepCopyInto

func (in *InspectResultSpec) DeepCopyInto(out *InspectResultSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectResultStatus

type InspectResultStatus struct {
	Complete      bool           `json:"complete,omitempty"`
	Policy        Policy         `json:"policy,omitempty"`
	Duration      string         `json:"duration,omitempty"`
	TaskStartTime string         `json:"taskStartTime,omitempty"`
	TaskEndTime   string         `json:"taskEndTime,omitempty"`
	Level         map[Level]*int `json:"level,omitempty"`
}

InspectResultStatus defines the observed state of InspectResult

func (*InspectResultStatus) DeepCopy

func (in *InspectResultStatus) DeepCopy() *InspectResultStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectResultStatus.

func (*InspectResultStatus) DeepCopyInto

func (in *InspectResultStatus) DeepCopyInto(out *InspectResultStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectRule

type InspectRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InspectRuleSpec   `json:"spec,omitempty"`
	Status InspectRuleStatus `json:"status,omitempty"`
}

InspectRule is the Schema for the InspectRule API

func (*InspectRule) DeepCopy

func (in *InspectRule) DeepCopy() *InspectRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectRule.

func (*InspectRule) DeepCopyInto

func (in *InspectRule) DeepCopyInto(out *InspectRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectRule) DeepCopyObject

func (in *InspectRule) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectRuleList

type InspectRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InspectRule `json:"items"`
}

InspectRuleList contains a list of InspectRule

func (*InspectRuleList) DeepCopy

func (in *InspectRuleList) DeepCopy() *InspectRuleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectRuleList.

func (*InspectRuleList) DeepCopyInto

func (in *InspectRuleList) DeepCopyInto(out *InspectRuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectRuleList) DeepCopyObject

func (in *InspectRuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectRuleNames

type InspectRuleNames struct {
	Name         string            `json:"name,omitempty"`
	NodeName     string            `json:"nodeName,omitempty"`
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}

func (*InspectRuleNames) DeepCopy

func (in *InspectRuleNames) DeepCopy() *InspectRuleNames

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectRuleNames.

func (*InspectRuleNames) DeepCopyInto

func (in *InspectRuleNames) DeepCopyInto(out *InspectRuleNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectRuleSpec

type InspectRuleSpec struct {
	PrometheusEndpoint string              `json:"prometheusEndpoint,omitempty"`
	Opas               []OpaRule           `json:"opas,omitempty"`
	Prometheus         []PrometheusRule    `json:"prometheus,omitempty"`
	FileChange         []FileChangeRule    `json:"fileChange,omitempty" `
	Sysctl             []SysRule           `json:"sysctl,omitempty"`
	Systemd            []SysRule           `json:"systemd,omitempty"`
	FileFilter         []FileFilterRule    `json:"fileFilter,omitempty"`
	CustomCommand      []CustomCommandRule `json:"customCommand,omitempty"`
	NodeInfo           []NodeInfo          `json:"nodeInfo,omitempty"`
	Component          *ComponentRule      `json:"component,omitempty"`
}

InspectRuleSpec defines the desired state of InspectRule

func (*InspectRuleSpec) DeepCopy

func (in *InspectRuleSpec) DeepCopy() *InspectRuleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectRuleSpec.

func (*InspectRuleSpec) DeepCopyInto

func (in *InspectRuleSpec) DeepCopyInto(out *InspectRuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectRuleStatus

type InspectRuleStatus struct {
	StartImportTime *metav1.Time   `json:"startImportTime,omitempty"`
	EndImportTime   *metav1.Time   `json:"endImportTime,omitempty"`
	State           State          `json:"state,omitempty"`
	LevelCount      map[Level]*int `json:"levelCount,omitempty"`
}

InspectRuleStatus defines the observed state of InspectRule

func (*InspectRuleStatus) DeepCopy

func (in *InspectRuleStatus) DeepCopy() *InspectRuleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectRuleStatus.

func (*InspectRuleStatus) DeepCopyInto

func (in *InspectRuleStatus) DeepCopyInto(out *InspectRuleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectTask

type InspectTask struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   InspectTaskSpec   `json:"spec,omitempty"`
	Status InspectTaskStatus `json:"status,omitempty"`
}

InspectTask is the Schema for the InspectTasks API

func (*InspectTask) DeepCopy

func (in *InspectTask) DeepCopy() *InspectTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectTask.

func (*InspectTask) DeepCopyInto

func (in *InspectTask) DeepCopyInto(out *InspectTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectTask) DeepCopyObject

func (in *InspectTask) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectTaskList

type InspectTaskList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []InspectTask `json:"items"`
}

InspectTaskList contains a list of InspectTask

func (*InspectTaskList) DeepCopy

func (in *InspectTaskList) DeepCopy() *InspectTaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectTaskList.

func (*InspectTaskList) DeepCopyInto

func (in *InspectTaskList) DeepCopyInto(out *InspectTaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*InspectTaskList) DeepCopyObject

func (in *InspectTaskList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type InspectTaskSpec

type InspectTaskSpec struct {
	ClusterName   []Cluster          `json:"clusterName,omitempty"`
	RuleNames     []InspectRuleNames `json:"ruleNames,omitempty"`
	Timeout       string             `json:"timeout,omitempty"`
	InspectPolicy Policy             `json:"inspectPolicy,omitempty"`
}

InspectTaskSpec defines the desired state of InspectTask

func (*InspectTaskSpec) DeepCopy

func (in *InspectTaskSpec) DeepCopy() *InspectTaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectTaskSpec.

func (*InspectTaskSpec) DeepCopyInto

func (in *InspectTaskSpec) DeepCopyInto(out *InspectTaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InspectTaskStatus

type InspectTaskStatus struct {
	ClusterInfo     `json:"clusterInfo,omitempty" yaml:"clusterInfo"`
	JobPhase        []JobPhase   `json:"jobPhase,omitempty" yaml:"jobPhase"`
	StartTimestamp  *metav1.Time `json:"startTimestamp,omitempty" yaml:"startTimestamp"`
	EndTimestamp    *metav1.Time `json:"endTimestamp,omitempty" yaml:"endTimestamp"`
	Duration        string       `json:"duration,omitempty" yaml:"duration"`
	Status          Phase        `json:"status,omitempty" yaml:"status,omitempty"`
	InspectRuleType []string     `json:"inspectRuleType,omitempty" yaml:"inspectRuleType"`
}

InspectTaskStatus defines the observed state of InspectTask

func (*InspectTaskStatus) DeepCopy

func (in *InspectTaskStatus) DeepCopy() *InspectTaskStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InspectTaskStatus.

func (*InspectTaskStatus) DeepCopyInto

func (in *InspectTaskStatus) DeepCopyInto(out *InspectTaskStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type JobPhase

type JobPhase struct {
	JobName string `json:"jobName,omitempty"`
	Phase   Phase  `json:"phase,omitempty"`
}

func (*JobPhase) DeepCopy

func (in *JobPhase) DeepCopy() *JobPhase

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobPhase.

func (*JobPhase) DeepCopyInto

func (in *JobPhase) DeepCopyInto(out *JobPhase)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type JobRule

type JobRule struct {
	JobName  string `json:"jobName,omitempty"`
	RuleType string `json:"ruleType,omitempty"`
	RunRule  []byte `json:"runRule,omitempty"`
}

func (*JobRule) DeepCopy

func (in *JobRule) DeepCopy() *JobRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobRule.

func (*JobRule) DeepCopyInto

func (in *JobRule) DeepCopyInto(out *JobRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeeyeOpaResult

type KubeeyeOpaResult struct {
	ScoreInfo       `json:"scoreInfo,omitempty"`
	ResourceResults []ResourceResult `json:"resourceResults,omitempty"`
	Percent         int              `json:"percent,omitempty"`
	ExtraInfo       `json:"extraInfo,omitempty"`
}

kubeeye inspect result

func (*KubeeyeOpaResult) DeepCopy

func (in *KubeeyeOpaResult) DeepCopy() *KubeeyeOpaResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeeyeOpaResult.

func (*KubeeyeOpaResult) DeepCopyInto

func (in *KubeeyeOpaResult) DeepCopyInto(out *KubeeyeOpaResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Level

type Level string
const (
	DangerLevel  Level = "danger"
	WarningLevel Level = "warning"
	IgnoreLevel  Level = "ignore"
)

type Node

type Node struct {
	NodeName     *string           `json:"nodeName,omitempty"`
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
}

func (*Node) DeepCopy

func (in *Node) DeepCopy() *Node

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Node.

func (*Node) DeepCopyInto

func (in *Node) DeepCopyInto(out *Node)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeInfo

type NodeInfo struct {
	RuleItemBases `json:",inline"`
	Node          `json:",inline"`
	ResourcesType string `json:"resourcesType,omitempty"`
	Mount         string `json:"mount,omitempty"`
}

func (*NodeInfo) DeepCopy

func (in *NodeInfo) DeepCopy() *NodeInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfo.

func (*NodeInfo) DeepCopyInto

func (in *NodeInfo) DeepCopyInto(out *NodeInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeInfoResultItem

type NodeInfoResultItem struct {
	Name          string        `json:"name,omitempty"`
	ResourcesType ResourcesType `json:",inline"`
	Value         string        `json:"value,omitempty"`
	Assert        bool          `json:"assert,omitempty"`
	Level         Level         `json:"level,omitempty"`
	NodeName      string        `json:"nodeName,omitempty"`
}

func (*NodeInfoResultItem) DeepCopy

func (in *NodeInfoResultItem) DeepCopy() *NodeInfoResultItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfoResultItem.

func (*NodeInfoResultItem) DeepCopyInto

func (in *NodeInfoResultItem) DeepCopyInto(out *NodeInfoResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeMetricsResultItem

type NodeMetricsResultItem struct {
	Name     string  `json:"name,omitempty"`
	Assert   bool    `json:"assert,omitempty"`
	Value    *string `json:"value,omitempty"`
	Level    Level   `json:"level,omitempty"`
	NodeName string  `json:"nodeName,omitempty"`
}

func (*NodeMetricsResultItem) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetricsResultItem.

func (*NodeMetricsResultItem) DeepCopyInto

func (in *NodeMetricsResultItem) DeepCopyInto(out *NodeMetricsResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OpaRule

type OpaRule struct {
	RuleItemBases `json:",inline"`
	Module        string `json:"module,omitempty"`
}

func (*OpaRule) DeepCopy

func (in *OpaRule) DeepCopy() *OpaRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpaRule.

func (*OpaRule) DeepCopyInto

func (in *OpaRule) DeepCopyInto(out *OpaRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Phase

type Phase string
const (
	PhasePending   Phase = "Pending"
	PhaseRunning   Phase = "Running"
	PhaseSucceeded Phase = "Succeeded"
	PhaseFailed    Phase = "Failed"
	PhaseUnknown   Phase = "Unknown"
)

func (Phase) IsEmpty

func (p Phase) IsEmpty() bool

func (Phase) IsFailed

func (p Phase) IsFailed() bool

func (Phase) IsPending

func (p Phase) IsPending() bool

func (Phase) IsRunning

func (p Phase) IsRunning() bool

func (Phase) IsSucceeded

func (p Phase) IsSucceeded() bool

func (Phase) IsUnknown

func (p Phase) IsUnknown() bool

type Policy

type Policy string
const (
	CyclePolicy  Policy = "cycle"
	SinglePolicy Policy = "single"
)
const (
	InspectTypeTiming  Policy = "timing"
	InspectTypeInstant Policy = "instant"
)

type PrometheusResult

type PrometheusResult struct {
	Result string `json:"result,omitempty"`
	Assert bool   `json:"assert,omitempty"`
	Level  Level  `json:"level,omitempty"`
}

func (*PrometheusResult) DeepCopy

func (in *PrometheusResult) DeepCopy() *PrometheusResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusResult.

func (*PrometheusResult) DeepCopyInto

func (in *PrometheusResult) DeepCopyInto(out *PrometheusResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PrometheusRule

type PrometheusRule struct {
	RuleItemBases `json:",inline"`
	Endpoint      string `json:"endpoint,omitempty"`
}

func (*PrometheusRule) DeepCopy

func (in *PrometheusRule) DeepCopy() *PrometheusRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusRule.

func (*PrometheusRule) DeepCopyInto

func (in *PrometheusRule) DeepCopyInto(out *PrometheusRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceResult

type ResourceResult struct {
	NameSpace    string       `json:"namespace,omitempty"`
	ResourceType string       `json:"resourceType,omitempty"`
	Name         string       `json:"name,omitempty"`
	ResultItems  []ResultItem `json:"resultItems,omitempty"`
}

func (*ResourceResult) DeepCopy

func (in *ResourceResult) DeepCopy() *ResourceResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceResult.

func (*ResourceResult) DeepCopyInto

func (in *ResourceResult) DeepCopyInto(out *ResourceResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourcesType

type ResourcesType struct {
	Mount string `json:"mount,omitempty"`
	Type  string `json:"type,omitempty"`
}

func (*ResourcesType) DeepCopy

func (in *ResourcesType) DeepCopy() *ResourcesType

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcesType.

func (*ResourcesType) DeepCopyInto

func (in *ResourcesType) DeepCopyInto(out *ResourcesType)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResultItem

type ResultItem struct {
	Level   string `json:"level,omitempty"`
	Message string `json:"message,omitempty"`
	Reason  string `json:"reason,omitempty"`
}

func (*ResultItem) DeepCopy

func (in *ResultItem) DeepCopy() *ResultItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultItem.

func (*ResultItem) DeepCopyInto

func (in *ResultItem) DeepCopyInto(out *ResultItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RuleItemBases

type RuleItemBases struct {
	Name  string  `json:"name,omitempty"`
	Rule  *string `json:"rule,omitempty"`
	Desc  string  `json:"desc,omitempty"`
	Level Level   `json:"level,omitempty"`
}

func (*RuleItemBases) DeepCopy

func (in *RuleItemBases) DeepCopy() *RuleItemBases

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleItemBases.

func (*RuleItemBases) DeepCopyInto

func (in *RuleItemBases) DeepCopyInto(out *RuleItemBases)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ScoreInfo

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

func (in *ScoreInfo) DeepCopy() *ScoreInfo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScoreInfo.

func (*ScoreInfo) DeepCopyInto

func (in *ScoreInfo) DeepCopyInto(out *ScoreInfo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type State

type State string
const (
	StartImport    State = "StartImport"
	ImportComplete State = "ImportComplete"
)

type SysRule

type SysRule struct {
	RuleItemBases `json:",inline"`
	Node          `json:",inline"`
}

func (*SysRule) DeepCopy

func (in *SysRule) DeepCopy() *SysRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SysRule.

func (*SysRule) DeepCopyInto

func (in *SysRule) DeepCopyInto(out *SysRule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskNames

type TaskNames struct {
	Name       string `json:"name,omitempty"`
	TaskStatus Phase  `json:"taskStatus,omitempty"`
}

func (*TaskNames) DeepCopy

func (in *TaskNames) DeepCopy() *TaskNames

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskNames.

func (*TaskNames) DeepCopyInto

func (in *TaskNames) DeepCopyInto(out *TaskNames)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL