record

package
v1.44.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostName

func GetHostName() string

GetHostName returns OS's hostname

Types

type EventRecorder

type EventRecorder interface {

	// The resulting event will be created in the same namespace as the reference object.
	Event(cli *client.Client, object runtime.Object, eventType, reason, message string)

	// Eventf is just like Event, but with Sprintf for the message field.
	Eventf(cli *client.Client, object runtime.Object, eventType, reason, messageFmt string, args ...interface{})
}

EventRecorder knows how to record events on behalf of an EventSource.

func NewRecorder

func NewRecorder(scheme *runtime.Scheme, source corev1.EventSource) EventRecorder

NewRecorder returns an EventRecorder that can be used to send events with the given event source.

Jump to

Keyboard shortcuts

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