Documentation ¶
Index ¶
- Constants
- func Init(nodeIPStr, nodeNameStr, podNameStr, podNamespaceStr string)
- func SetEventRecorder(kubeclientset *kubernetes.Clientset, module string)
- type Action
- type Alarm
- type EventDefine
- type EventRecorder
- func (e *EventRecorder) GetObject() runtime.Object
- func (e *EventRecorder) SendErrorEventWithAnnotation(object runtime.Object, annotations map[string]string, action Action, ...)
- func (e *EventRecorder) SendNormalEventWithAnnotation(object runtime.Object, annotations map[string]string, action Action, ...)
Constants ¶
View Source
const ( LogController string = "LogController" Logtail string = "Logtail" )
View Source
const ProductCode = "SLS"
Variables ¶
This section is empty.
Functions ¶
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 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 (*EventRecorder) SendNormalEventWithAnnotation ¶
Click to show internal directories.
Click to hide internal directories.