event

package
v0.0.0-...-c6334f4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Namespace string
	Kind      string
	Component string
	Host      string
	Reason    string
	Status    interface{}
	Level     string
	Name      string
}

Event represent an event got from k8s api server Events from different endpoints need to be casted to KubewatchEvent before being able to be handled by handler

func New

func New(obj interface{}, action string) Event

New create new KubewatchEvent

func (*Event) HTMLDetail

func (e *Event) HTMLDetail() (msg string)

func (*Event) HTMLHeadline

func (e *Event) HTMLHeadline() (msg string)

func (*Event) MDMessage

func (e *Event) MDMessage(action string, env string) (msg string)

func (*Event) Message

func (e *Event) Message() (msg string)

Message returns event message in standard format. included as a part of event packege to enhance code resuablity across handlers.

type NodeCondition

type NodeCondition struct {
	Type    string
	Status  string
	Reason  string
	Message string
}

Jump to

Keyboard shortcuts

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