util

package
v0.0.0-...-1f46663 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateHasGivenCondition

func CertificateHasGivenCondition(
	cert *v1.Cert,
	c v1.CertificateCondition,
) bool

CertificateHasGivenCondition will return true if the given certificate's status conditions has one of the CertificateCondition matching

func GetFullName

func GetFullName(namespace, name string) string

func GetLogObject

func GetLogObject(
	inputLog logr.Logger,
	controllerName string,
	namespacedName types.NamespacedName,
) (logr.Logger, string)

GetLogObject will add the requestId ( Random string ) along with the controller name and the current object in process in the controller

func GetRecoveryHandlerFunc

func GetRecoveryHandlerFunc(
	l logr.Logger,
	randString string,
	namespacedName types.NamespacedName,
	controllerName string,
	objectName string,
) func()

GetRecoveryHandlerFunc returns the recovery handler function

func RandSeq

func RandSeq(
	n int,
) string

RandSeq will generate a random string with 'n' number of characters in it

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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