utils

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneMap

func CloneMap(source map[string]interface{}) (map[string]interface{}, error)

func FormatDuration

func FormatDuration(sinceNanosec int64) string

func GetConfigMapKey

func GetConfigMapKey(cm *v1.ConfigMap) string

func GetContainerKey

func GetContainerKey(podObj *m.PodSchema, c *m.ContainerSchema) string

func GetDeployKey

func GetDeployKey(deployObj *appsv1.Deployment) string

func GetEndpointKey

func GetEndpointKey(ep *v1.Endpoints) string

func GetIndex

func GetIndex(s string, list []string) int

func GetK8sServiceKey

func GetK8sServiceKey(svc *v1.Service) string

func GetKey

func GetKey(namespace, podName string) string

func GetPodKey

func GetPodKey(podObj *v1.Pod) string

func GetPodSchemaKey

func GetPodSchemaKey(podObj *m.PodSchema) string

func GetSecretKey

func GetSecretKey(secret *v1.Secret) string

func GetServiceKey

func GetServiceKey(svc *m.ServiceSchema) string

func IsPodRunnnig

func IsPodRunnnig(podObj *v1.Pod) bool

func IsSystemNamespace

func IsSystemNamespace(namespace string) bool

func MapContainsNocase

func MapContainsNocase(m map[string]interface{}, key string) (interface{}, bool)

func NSQualifiesForMonitoring

func NSQualifiesForMonitoring(ns string, bag *m.AppDBag) bool

func NodeQualifiesForMonitoring

func NodeQualifiesForMonitoring(name string, bag *m.AppDBag) bool

func RemoveFromSlice

func RemoveFromSlice(s string, list []string) []string

func SplitPodKey

func SplitPodKey(podKey string) (string, string)

func SplitUrl

func SplitUrl(url string) (string, string, int, error)

func StringInSlice

func StringInSlice(s string, list []string) bool

func TruncateString

func TruncateString(str string, maxLength int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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