util

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 14 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 FetchLatestEvent added in v0.3.30

func FetchLatestEvent(ctx context.Context, kubernetesClient *kubernetes.Client, namespace string, name string) (*v1.Event, 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 LabelsIncludeAny added in v0.3.23

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

func MapToString added in v0.3.11

func MapToString(m map[string]string) string

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 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