handlers

package
v0.0.0-...-46bfd7e Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFunctionNamespace string = "default"

DefaultFunctionNamespace define default work namespace

Variables

This section is empty.

Functions

func MakeDeleteHandler

func MakeDeleteHandler(functionNamespace string, clientset *kubernetes.Clientset) http.HandlerFunc

MakeDeleteHandler delete a function

func MakeDeployHandler

func MakeDeployHandler(functionNamespace string, clientset *kubernetes.Clientset, config *DeployHandlerConfig) http.HandlerFunc

MakeDeployHandler creates a handler to create new functions in the cluster

func MakeFunctionReader

func MakeFunctionReader(functionNamespace string, clientset *kubernetes.Clientset) http.HandlerFunc

MakeFunctionReader handler for reading functions deployed in the cluster as deployments.

func MakeProxy

func MakeProxy(functionNamespace string) http.HandlerFunc

MakeProxy creates a proxy for HTTP web requests which can be routed to a function.

func MakeReplicaReader

func MakeReplicaReader(functionNamespace string, clientset *kubernetes.Clientset) http.HandlerFunc

MakeReplicaReader reads the amount of replicas for a deployment

func MakeReplicaUpdater

func MakeReplicaUpdater(functionNamespace string, clientset *kubernetes.Clientset) http.HandlerFunc

MakeReplicaUpdater updates desired count of replicas

func MakeUpdateHandler

func MakeUpdateHandler(functionNamespace string, clientset *kubernetes.Clientset) http.HandlerFunc

MakeUpdateHandler update specified function

func ValidateDeployRequest

func ValidateDeployRequest(request *requests.CreateFunctionRequest) error

ValidateDeployRequest validates that the service name is valid for Kubernetes

Types

type DeployHandlerConfig

type DeployHandlerConfig struct {
	EnableFunctionReadinessProbe bool
}

DeployHandlerConfig specify options for Deployments

Jump to

Keyboard shortcuts

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