record

package
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2017 License: Apache-2.0, Apache-2.0 Imports: 4 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 {
	Eventtype string
	Reason    string
	Message   string
}

type Recorder

type Recorder struct {
	Events chan Event
}

func NewRecorder

func NewRecorder(bufferSize int) *Recorder

NewFakeRecorder creates new fake event recorder with event channel with buffer of given size.

func (*Recorder) Event

func (e *Recorder) Event(object runtime.Object, eventtype, reason, message string)

func (*Recorder) Eventf

func (e *Recorder) Eventf(object runtime.Object, eventtype, reason, messageFmt string, args ...interface{})

func (*Recorder) PastEventf

func (e *Recorder) 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