util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirExists

func EnsureDirExists(dir string) error

func FileExists

func FileExists(path string) (bool, error)

func GetCacheKey

func GetCacheKey(provider string, language string, sEnc string) string

func GetParent

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

func GetPodListByLabels

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

func LabelsIncludeAny

func LabelsIncludeAny(predefinedSelector, Labels map[string]string) bool

func MapToString

func MapToString(m map[string]string) string

func MaskString

func MaskString(input string) string

func RemoveDuplicates

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

func ReplaceIfMatch

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

func SliceContainsString

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

func SliceDiff

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