Documentation ¶
Index ¶
- Variables
- func GetSelectorString(selector *metav1.LabelSelector) (string, error)
- func HomeDir() string
- func InClusterAuth() (*kubernetes.Clientset, error)
- func OutOfClusterAuth(providedConfigPath string) (*kubernetes.Clientset, error)
- func PathExists(path string) bool
- func StringSliceContains(sl []string, s string) bool
- type MetricsAPI
- type PrometheusAPI
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logrus.New()
Log is the common logger
Functions ¶
func GetSelectorString ¶
func GetSelectorString(selector *metav1.LabelSelector) (string, error)
func InClusterAuth ¶
func InClusterAuth() (*kubernetes.Clientset, error)
InClusterAuth returns an in-cluster kubernetes client
func OutOfClusterAuth ¶
func OutOfClusterAuth(providedConfigPath string) (*kubernetes.Clientset, error)
OutOfClusterAuth returns an external kubernetes client
func PathExists ¶
PathExists checks whether a given path exists or not
func StringSliceContains ¶
Types ¶
type MetricsAPI ¶
type PrometheusAPI ¶
type PrometheusAPI struct { //Base URL Pushgateway string }
API for Query Metrics
func NewPrometheusAPI ¶
func NewPrometheusAPI(pushgateway string) *PrometheusAPI
func (*PrometheusAPI) SetMetricValue ¶
Click to show internal directories.
Click to hide internal directories.