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) LimitedListAllNamespace(limit int, cont *string) (*apiv1.EventList, *string, error)
- func (e *Event) ListByNamespace(namespace string) (*apiv1.EventList, error)
- func (e *Event) WatchPodEventsAllNamespaces(ctx context.Context, callback func(*apiv1.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) LimitedListAllNamespace ¶
LimitedListAllNamespace limit list event all namespaces
func (*Event) ListByNamespace ¶
ListByNamespace list event by namespace
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 WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
func WithKubernetesClient ¶
func WithKubernetesClient(client *kubernetes.Clientset) Option
Click to show internal directories.
Click to hide internal directories.