eventrecorder

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package eventrecorder defines event recorder for k8s leader election.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalEventRecorder

type LocalEventRecorder struct{}

LocalEventRecorder is a recorder for leaderelection which print event log to local logs. LocalEventRecorder implements recode.EventRecorder interface. only Eventf func is needed.

func (*LocalEventRecorder) AnnotatedEventf

func (ler *LocalEventRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{})

func (*LocalEventRecorder) Event

func (ler *LocalEventRecorder) Event(object runtime.Object, eventtype, reason, message string)

func (*LocalEventRecorder) Eventf

func (ler *LocalEventRecorder) Eventf(obj runtime.Object, eventType, reason, message string, args ...interface{})

func (*LocalEventRecorder) PastEventf

func (ler *LocalEventRecorder) PastEventf(object runtime.Object, timestamp metav1.Time, eventtype, reason, messageFmt string, args ...interface{})

Jump to

Keyboard shortcuts

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