reconciler

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventAs = errors.As

EventAs finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.

View Source
var EventIs = errors.Is

EventIs reports whether any error in err's chain matches target.

Functions

This section is empty.

Types

type Event

type Event error

Event leverages go's 1.13 error wrapping.

func NewEvent

func NewEvent(eventtype, reason, messageFmt string, args ...interface{}) Event

NewEvent returns a new Event.

type ReconcilerEvent

type ReconcilerEvent struct {
	EventType string
	Reason    string
	Format    string
	Args      []interface{}
}

ReconcilerEvent ...

func (*ReconcilerEvent) As

func (e *ReconcilerEvent) As(target interface{}) bool

As ...

func (*ReconcilerEvent) Error

func (e *ReconcilerEvent) Error() string

Error ...

func (*ReconcilerEvent) Is

func (e *ReconcilerEvent) Is(target error) bool

Is ...

func (*ReconcilerEvent) Record

func (e *ReconcilerEvent) Record(obj runtime.Object, recorder record.EventRecorder)

Record ...

type RecordFactory

type RecordFactory func(eventtype, reason, messageFmt string, args ...interface{}) Event

RecordFactory is a function that returns a new Event.

Jump to

Keyboard shortcuts

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