util

package
v0.33.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 78

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEventName

func GenerateEventName(refName string, unixNano int64) string

GenerateEventName generates a valid Event name from the referenced name and the passed UNIX timestamp. The referenced Object name may not be a valid name for Events and cause the Event to fail to be created, so we need to generate a new one in that case. Ref: https://issues.k8s.io/127594

func IsKeyNotFoundError

func IsKeyNotFoundError(err error) bool

IsKeyNotFoundError is utility function that checks if an error is not found error

func ValidateEventType

func ValidateEventType(eventtype string) bool

ValidateEventType checks that eventtype is an expected type of event

Types

This section is empty.

Jump to

Keyboard shortcuts

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