package
0.0.0-20200819162119-23d10c987c6b
Repository: https://github.com/ipb-halle/k8sticket.git
Documentation: pkg.go.dev

# Functions

Namespace This function returns the namespace of the running pod.
NewDeploymentController This function creates a new Deployment controller for a proxy with a hardcoded InClusterConfig and a given namespace to watch.
NewDeploymentHandlerForK8sconfig This function creates a new deployment handler.
NewDeploymentMetaController This function creates a new controller for the meta data of Deployments.
NewMetaDeploymentHandlerForK8sconfig This function creates a new handler for the meta data of Deployments.
NewPMetric This function defines the metrics from the PMetric struct.
NewPodController This function creates a new Pod controller for a proxy with a kubernetes.Clientset and a given namespace to watch.
NewPodHandlerForServerlist This function creates the PodHandler for a given Proxy.
NewProxyForDeployment The main idea of the k8sTicket structure is that every Deployment is one application that should be delivered with the proxy.
NewProxyMap Creates a new ProxyMap with initialized ProxyForDeployment map.
PodToConfig This function reads the k8sTicket annotations and creates a config for the reverse proxy.

# Structs

Controller This struct includes all components of the Controller It has a clientset, a Informer.SharedInformerFactory, the Informer that was created by the Factory and a Channel stop the informer.
PMetric This struct defines our exported metrics.
ProxyForDeployment This struct includes everything needed for running the ticket proxy for one deployment.
ProxyMap This is a map with a mux that stores the ProxyForDeployments.