conf

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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 EmailConfig struct {
	Address   string   `json:"address,omitempty"`
	Port      int32    `json:"port,omitempty"`
	Fo        string   `json:"fo,omitempty"`
	To        []string `json:"to,omitempty"`
	SecretKey string   `json:"secretKey,omitempty"`
}

type EventHandler added in v1.0.0

type EventHandler interface {
	HandleMessageEvent(event *MessageEvent)
}

type ImageConfig added in v1.0.0

type ImageConfig struct {
	Image           string `json:"image,omitempty"`
	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
}

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

func (*JobConfig) DeepCopy added in v1.0.0

func (j *JobConfig) DeepCopy() *JobConfig

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 MessageEvent struct {
	Title     string
	Content   []byte
	Timestamp time.Time
}

type MessageType added in v1.0.0

type MessageType string
const (
	AlarmMessage MessageType = "alarm"
	EmailMessage MessageType = "email"
)

type Mode added in v1.0.0

type Mode string
const (
	CompleteMode Mode = "complete"
	AbnormalMode Mode = "abnormal"
)

Jump to

Keyboard shortcuts

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