handlers

package
v0.0.0-...-23d8f6d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//OrchestrationIdentifier identifier string for provider orchestration
	OrchestrationIdentifier = "federation"
	//ProviderName name of the provider
	ProviderName = "faas-federation"
)

Variables

This section is empty.

Functions

func MakeDeleteHandler

func MakeDeleteHandler(proxy http.HandlerFunc) http.HandlerFunc

MakeDeleteHandler delete a function

func MakeDeployHandler

func MakeDeployHandler(proxy http.HandlerFunc, providerLookup routing.ProviderLookup) http.HandlerFunc

MakeDeployHandler creates a handler to create new functions in the cluster

func MakeFunctionReader

func MakeFunctionReader(providers []string) http.HandlerFunc

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

func MakeHealthHandler

func MakeHealthHandler() http.HandlerFunc

MakeHealthHandler returns 200/OK when healthy

func MakeInfoHandler

func MakeInfoHandler(version, sha string) http.HandlerFunc

MakeInfoHandler creates handler for /system/info endpoint

func MakeProxyHandler

func MakeProxyHandler(proxy http.HandlerFunc) http.HandlerFunc

MakeProxyHandler creates a handler to invoke functions downstream

func MakeReplicaReader

func MakeReplicaReader() http.HandlerFunc

MakeReplicaReader reads the amount of replicas for a deployment

func MakeReplicaUpdater

func MakeReplicaUpdater() http.HandlerFunc

MakeReplicaUpdater updates desired count of replicas

func MakeUpdateHandler

func MakeUpdateHandler(proxy http.HandlerFunc, providerLookup routing.ProviderLookup) http.HandlerFunc

MakeUpdateHandler update specified function

Types

type FunctionLookup

type FunctionLookup struct {
	// contains filtered or unexported fields
}

FunctionLookup is a openfaas-provider proxy.BaseURLResolver that allows the caller to verify that a function is resolvable.

func NewFunctionLookup

func NewFunctionLookup(providerLookup routing.ProviderLookup) *FunctionLookup

NewFunctionLookup creates a new FunctionLookup resolver

func (*FunctionLookup) Resolve

func (l *FunctionLookup) Resolve(name string) (u url.URL, err error)

Resolve implements the openfaas-provider proxy.BaseURLResolver interface.

Jump to

Keyboard shortcuts

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