events

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

LevelMap is a map of event type to Level

Functions

This section is empty.

Types

type Event

type Event struct {
	Code      string
	Title     string
	Kind      string
	Name      string
	Namespace string
	Messages  []string
	Type      config.EventType
	Reason    string
	Error     string
	Level     config.Level
	Cluster   string
	Channel   string
	TimeStamp time.Time
	Count     int32
	Action    string
	Skip      bool `json:",omitempty"`
	Resource  string

	Recommendations []string
	Warnings        []string
}

Event to store required information from k8s objects

func New

func New(object interface{}, eventType config.EventType, resource, clusterName string) Event

New extract required details from k8s object and returns new Event object

Jump to

Keyboard shortcuts

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