Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID uint `gorm:"primarykey" json:"id"` CreateTime time.Time `gorm:"autoCreateTime" json:"create_time"` // InformerName is unique value represents the informer config, // every Event belongs to an informer. InformerName string `json:"informer_name"` EventType string `json:"event_type"` Group string `gorm:"column:event_group" json:"group"` Version string `json:"version"` Resource string `json:"resource"` Kind string `json:"kind"` Namespace string `json:"namespace"` Name string `json:"name"` Obj []byte `json:"obj,omitempty"` OldObj []byte `json:"old_obj,omitempty"` }
Event is a copy of Kubernetes event, to persistent event history, and to avoid improper ADDED events when the controller restart.
func (*Event) GetObj ¶
func (e *Event) GetObj() (obj *unstructured.Unstructured)
func (*Event) GetOldObj ¶
func (e *Event) GetOldObj() (obj *unstructured.Unstructured)
Click to show internal directories.
Click to hide internal directories.