Documentation ¶
Index ¶
- func CreateKubeClientFromConfig(conf *k8s.KubeConfig) (*kubernetes.Clientset, error)
- func CreateLease(clusterLister gke.ClusterLister, services k8s.ServiceGetterUpdater, ...) http.Handler
- func DeleteLease(services k8s.ServiceGetterUpdater, clusterLister gke.ClusterLister, ...) http.Handler
- func WithAuth(tokenToCheck, tokenHeaderName string, next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubeClientFromConfig ¶
func CreateKubeClientFromConfig(conf *k8s.KubeConfig) (*kubernetes.Clientset, error)
CreateKubeClientFromConfig creates a new Kubernetes client from the given configuration. returns nil and the appropriate error if the client couldn't be created for any reason
func CreateLease ¶
func CreateLease( clusterLister gke.ClusterLister, services k8s.ServiceGetterUpdater, k8sServiceName, gCloudProjID, gCloudZone string, ) http.Handler
CreateLease creates the handler that responds to the POST /lease endpoint
func DeleteLease ¶
func DeleteLease( services k8s.ServiceGetterUpdater, clusterLister gke.ClusterLister, k8sServiceName string, projID, zone string, clearNamespaces bool, nsFunc func(*k8s.KubeConfig) (k8s.NamespaceListerDeleter, error), ) http.Handler
DeleteLease returns the http handler for the DELETE /lease/{token} endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.