Documentation
¶
Index ¶
- Constants
- func MakeDeleteHandler(proxy http.HandlerFunc) http.HandlerFunc
- func MakeDeployHandler(proxy http.HandlerFunc, providerLookup routing.ProviderLookup) http.HandlerFunc
- func MakeFunctionReader(providers []string) http.HandlerFunc
- func MakeHealthHandler() http.HandlerFunc
- func MakeInfoHandler(version, sha string) http.HandlerFunc
- func MakeProxyHandler(proxy http.HandlerFunc) http.HandlerFunc
- func MakeReplicaReader() http.HandlerFunc
- func MakeReplicaUpdater() http.HandlerFunc
- func MakeUpdateHandler(proxy http.HandlerFunc, providerLookup routing.ProviderLookup) http.HandlerFunc
- type FunctionLookup
Constants ¶
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