handlers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

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

func WithAuth

func WithAuth(tokenToCheck, tokenHeaderName string, next http.Handler) http.Handler

WithAuth provides handling of endpoints requiring authentication

Types

This section is empty.

Jump to

Keyboard shortcuts

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