Documentation ¶
Overview ¶
Package event manipulates the k8s api of event object
Package event manipulates the k8s api of event object ¶
Package event manipulates the k8s api of event object
Index ¶
- type Event
- func (e *Event) AnalyzePodEvents(namespace, name string) (MessageList, error)
- func (e *Event) ListByNamespace(namespace string) (*corev1.EventList, error)
- func (e *Event) WatchHPAEventsAllNamespaces(ctx context.Context, callback func(*corev1.Event)) error
- func (e *Event) WatchPodEventsAllNamespaces(ctx context.Context, callback func(*corev1.Event)) error
- type Message
- type MessageList
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event is the object to encapsulate docker
func (*Event) AnalyzePodEvents ¶
func (e *Event) AnalyzePodEvents(namespace, name string) (MessageList, error)
AnalyzePodEvents Analyze pod events and turn them into interpretable content
func (*Event) ListByNamespace ¶
ListByNamespace list event by namespace
func (*Event) WatchHPAEventsAllNamespaces ¶
type MessageList ¶
type MessageList []Message
MessageList 事件消息列表
func (MessageList) Len ¶
func (em MessageList) Len() int
func (MessageList) Less ¶
func (em MessageList) Less(i, j int) bool
func (MessageList) Swap ¶
func (em MessageList) Swap(i, j int)
type Option ¶
type Option func(*Event)
Option configures an Event
func WithKubernetesClient ¶
func WithKubernetesClient(client kubernetes.Interface) Option
Click to show internal directories.
Click to hide internal directories.