events

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 22 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(
	logger *slog.Logger,
	opts ...EventCollectorOption,
) (*EventCollector, error)

func (*EventCollector) ConfigureNode

func (c *EventCollector) ConfigureNode(config *node.LoggingCapabilityConfig)

func (*EventCollector) Name

func (c *EventCollector) Name() string

type EventCollectorOption

type EventCollectorOption func(*EventCollectorOptions)

func WithMaxRetries

func WithMaxRetries(retries int) EventCollectorOption

func WithRestConfig

func WithRestConfig(restConfig *rest.Config) 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