utils

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterKeysWithoutPrefix added in v0.1.3

func FilterKeysWithoutPrefix(object map[string]string, prefix string) map[string]string

FilterKeysWithoutPrefix removes keys from a map if they don't start with a given prefix

func FilterMap added in v0.1.5

func FilterMap(originalMap map[string]string, substring string) map[string]string

FilterMap returns a new map containing only the key-value pairs where the key contains the specified substring.

func IsOnOpenshift

func IsOnOpenshift(config *rest.Config) (bool, error)

IsOnOpenshift returns true if the cluster has the openshift config group

func MergeMaps added in v0.1.4

func MergeMaps(m1 map[string]string, m2 map[string]string) map[string]string

MergeMaps merges two string-string maps by combining their key-value pairs into a new map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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