event

package
v0.0.0-...-507e24d Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 2 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 {
	Reason      string
	Name        string
	Annotations map[string]string
}

Event represent an event got from k8s api server

func New

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

New create new KubewatchEvent

func (*Event) Message

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

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

Jump to

Keyboard shortcuts

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