util

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheKey added in v0.2.2

func GetCacheKey(provider string, sEnc string) string

func GetParent

func GetParent(client *kubernetes.Client, meta metav1.ObjectMeta) (string, bool)

func GetPodListByLabels added in v0.2.2

func GetPodListByLabels(client k.Interface,
	namespace string,
	labels map[string]string) (*v1.PodList, error)

func MaskString added in v0.2.1

func MaskString(input string) string

func RemoveDuplicates added in v0.1.5

func RemoveDuplicates(slice []string) ([]string, []string)

func ReplaceIfMatch added in v0.2.1

func ReplaceIfMatch(text string, pattern string, replacement string) string

func SliceContainsString added in v0.2.1

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

func SliceDiff added in v0.1.5

func SliceDiff(source, dest []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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