eventrecorder

package
v0.0.0-...-196de0d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LogController string = "LogController"
	Logtail       string = "Logtail"
)
View Source
const ProductCode = "SLS"

Variables

This section is empty.

Functions

func Init

func Init(nodeIPStr, nodeNameStr, podNameStr, podNamespaceStr string)

func SetEventRecorder

func SetEventRecorder(kubeclientset *kubernetes.Clientset, module string)

Types

type Action

type Action string
const (
	CreateConfig Action = "CreateConfig"

	CreateConfigStatus Action = "CreateConfigStatus"

	UpdateConfig Action = "UpdateConfig"

	UpdateConfigStatus Action = "UpdateConfigStatus"

	DeleteConfig Action = "DeleteConfig"

	CreateProject Action = "CreateProject"

	CreateLogstore Action = "CreateLogstore"

	CreateTag Action = "CreateTag"

	CreateIndex Action = "CreateIndex"

	CreateProductLogStore Action = "CreateProductLogstore"

	CreateProductApp Action = "CreateProductApp"
)

type Alarm

type Alarm string
const (
	CommonAlarm Alarm = "Fail"
)

type EventDefine

type EventDefine struct {
	// contains filtered or unexported fields
}

func NewEventDefine

func NewEventDefine(moduleCode string) *EventDefine

type EventRecorder

type EventRecorder struct {
	// contains filtered or unexported fields
}

func GetEventRecorder

func GetEventRecorder() *EventRecorder

func (*EventRecorder) GetObject

func (e *EventRecorder) GetObject() runtime.Object

func (*EventRecorder) SendErrorEventWithAnnotation

func (e *EventRecorder) SendErrorEventWithAnnotation(object runtime.Object, annotations map[string]string, action Action, alarm Alarm, message string)

func (*EventRecorder) SendNormalEventWithAnnotation

func (e *EventRecorder) SendNormalEventWithAnnotation(object runtime.Object, annotations map[string]string, action Action, message string)

Jump to

Keyboard shortcuts

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