log

package
v1.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Package log provides log utils.

Package log provides log utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOwners

AddOwners adds the owners of an Object based on OwnerReferences as k/v pairs to the logger in ctx. Note: If an owner is a MachineSet we also add the owners from the MachineSet OwnerReferences.

func ListToString added in v1.9.0

func ListToString[T any](list []T, stringFunc func(T) string, n int) string

ListToString returns a comma-separated list of the first n entries of the list (strings are calculated via stringFunc).

func ObjNamesString added in v1.9.0

func ObjNamesString[T client.Object](objs []T) string

ObjNamesString returns a comma separated list of the object names, limited to five objects. On more than five objects it outputs the first five objects and adds information about how much more are in the given list.

func StringListToString added in v1.9.0

func StringListToString(objs []string) string

StringListToString returns a comma separated list of the strings, limited to five objects. On more than five objects it outputs the first five objects and adds information about how much more are in the given list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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