utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepHashString

func DeepHashString(obj interface{}) string

func GetKey

func GetKey(obj metav1.Object) client.ObjectKey

func IsNil

func IsNil(v interface{}) bool

func MergeMap

func MergeMap(sources ...map[string]string) map[string]string

MergeMap will take two or more maps, merging the entries of the sources map into a destination map. If both maps share the same key then destination's value for that key will be overwritten with what's in source.

func RemoveValue

func RemoveValue(slice []string, value string) []string

func SliceContains

func SliceContains(slice []string, s string) bool

func UnmarshalToMap

func UnmarshalToMap(data []byte) (map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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