events

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LevelMap map[string]Level

LevelMap is a map of event type to Level

Functions

This section is empty.

Types

type Event

type Event struct {
	Code            string
	Kind            string
	Name            string
	Namespace       string
	Messages        []string
	Type            string
	Reason          string
	Error           string
	Level           Level
	Cluster         string
	Recommendations []string
	TimeStamp       time.Time
	Count           int32
	Action          string
}

Event to store required information from k8s objects

func New

func New(object interface{}, eventType string, kind string) Event

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

type Level

type Level string

Level type to store event levels

const (
	// Info level
	Info Level = "info"
	// Warn level
	Warn Level = "warn"
	// Debug level
	Debug Level = "debug"
	// Error level
	Error Level = "error"
	// Critical level
	Critical Level = "critical"
)

Jump to

Keyboard shortcuts

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