util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirExists added in v0.2.3

func EnsureDirExists(dir string) error

func FileExists added in v0.2.3

func FileExists(path string) (bool, error)

func GetCacheKey added in v0.2.2

func GetCacheKey(provider string, language 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