Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppsGroup = "apps" NoGroup = "" BatchGroup = "batch" RoleGroup = "rbac.authorization.k8s.io" APIVersionV1 = "v1" Nodes = "nodes" Deployments = "deployments" Pods = "pods" Daemonsets = "daemonsets" Statefulsets = "statefulsets" Jobs = "jobs" Cronjobs = "cronjobs" Namespaces = "namespaces" Events = "events" Roles = "roles" Clusterroles = "clusterroles" Group = "kubeeyeplugins.kubesphere.io" Version = "v1alpha1" Resource = "pluginsubscriptions" KubeeyeNameSpace = "kubeeye-system" PluginInstalled string = "installed" PluginPause string = "pause" PluginInstalling string = "installing" PluginUninstalled string = "uninstalled" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailConfig ¶ added in v1.0.0
type EventHandler ¶ added in v1.0.0
type EventHandler interface {
HandleMessageEvent(event *MessageEvent)
}
type ImageConfig ¶ added in v1.0.0
type JobConfig ¶ added in v1.0.0
type JobConfig struct { ImageConfig `json:",inline"` BackLimit *int32 `json:"backLimit,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` AutoDelTime *int32 `json:"autoDelTime,omitempty"` MultiCluster map[string]ImageConfig `json:"multiCluster,omitempty"` }
type KubeEyeConfig ¶ added in v1.0.0
type KubeEyeConfig struct { Job *JobConfig `json:"job,omitempty"` Message *MessageConfig `json:"message,omitempty"` }
func (*KubeEyeConfig) GetClusterJobConfig ¶ added in v1.0.0
func (k *KubeEyeConfig) GetClusterJobConfig(clusterName string) *JobConfig
type MessageConfig ¶ added in v1.0.0
type MessageConfig struct { Enable bool `json:"enable,omitempty"` Type MessageType `json:"type,omitempty"` Mode Mode `json:"mode,omitempty"` Email EmailConfig `json:"email,omitempty"` }
type MessageEvent ¶ added in v1.0.0
type MessageType ¶ added in v1.0.0
type MessageType string
const ( AlarmMessage MessageType = "alarm" EmailMessage MessageType = "email" )
Click to show internal directories.
Click to hide internal directories.