events

package
v0.12.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventCollector

type EventCollector struct {
	EventCollectorOptions
	// contains filtered or unexported fields
}

func NewEventCollector

func NewEventCollector(ctx context.Context, endpoint string, opts ...EventCollectorOption) *EventCollector

func (*EventCollector) Run

func (c *EventCollector) Run(stopCh <-chan struct{}) error

type EventCollectorOption

type EventCollectorOption func(*EventCollectorOptions)

func WithMaxRetries

func WithMaxRetries(retries int) EventCollectorOption

type EventCollectorOptions

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

type EventOutput

type EventOutput struct {
	*corev1.Event
	ClusterID string    `json:"cluster_id,omitempty"`
	LogType   string    `json:"log_type,omitempty"`
	PodName   string    `json:"pod_name,omitempty"`
	Time      time.Time `json:"time,omitempty"`
}

Jump to

Keyboard shortcuts

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