util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItems

func GetItems(list client.ObjectList) []client.Object

this is an ugly function to retrieve the list of Items from a client.ObjectList because the interface doesn't have a GetItems method

func Hash

func Hash(o interface{}) string

Hash returns a hash of the passed object

func IsBeingDeleted

func IsBeingDeleted(o client.Object) bool

func MergeMaps

func MergeMaps(base map[string]string, merges ...map[string]string) map[string]string

MergeMaps merges a list maps into the first one. B overrides A if keys collide.

func ObjectKey

func ObjectKey(o client.Object) types.NamespacedName

Types

This section is empty.

Jump to

Keyboard shortcuts

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