Documentation ¶
Index ¶
- func EnsureDirExists(dir string) error
- func FetchLatestEvent(ctx context.Context, kubernetesClient *kubernetes.Client, namespace string, ...) (*v1.Event, error)
- func FileExists(path string) (bool, error)
- func GetCacheKey(provider string, language string, sEnc string) string
- func GetParent(client *kubernetes.Client, meta metav1.ObjectMeta) (string, bool)
- func GetPodListByLabels(client k.Interface, namespace string, labels map[string]string) (*v1.PodList, error)
- func LabelStrToSelector(labelStr string) labels.Selector
- func LabelsIncludeAny(predefinedSelector, Labels map[string]string) bool
- func MapToString(m map[string]string) string
- func MaskString(input string) string
- func NewHeaders(customHeaders []string) []http.Header
- func RemoveDuplicates(slice []string) ([]string, []string)
- func ReplaceIfMatch(text string, pattern string, replacement string) string
- func SliceDiff(source, dest []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDirExists ¶ added in v0.2.3
func FetchLatestEvent ¶ added in v0.3.30
func FileExists ¶ added in v0.2.3
func GetCacheKey ¶ added in v0.2.2
func GetParent ¶
func GetParent(client *kubernetes.Client, meta metav1.ObjectMeta) (string, bool)
func GetPodListByLabels ¶ added in v0.2.2
func LabelStrToSelector ¶ added in v0.3.39
func LabelsIncludeAny ¶ added in v0.3.23
func MapToString ¶ added in v0.3.11
func MaskString ¶ added in v0.2.1
func NewHeaders ¶ added in v0.3.38
NewHeaders parses a slice of strings in the format "key:value" into []http.Header It handles headers with the same key by appending values
func RemoveDuplicates ¶ added in v0.1.5
func ReplaceIfMatch ¶ added in v0.2.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.