Documentation
¶
Index ¶
- Constants
- func MakeDeleteHandler() http.HandlerFunc
- func MakeDeployHandler() http.HandlerFunc
- func MakeFunctionReader() http.HandlerFunc
- func MakeHealthHandler() http.HandlerFunc
- func MakeInfoHandler(version, sha string) http.HandlerFunc
- func MakeProxy() http.HandlerFunc
- func MakeReplicaReader() http.HandlerFunc
- func MakeReplicaUpdater() http.HandlerFunc
- func MakeSecretsHandler() http.HandlerFunc
- func MakeUpdateHandler() http.HandlerFunc
- func NamespaceLister() http.HandlerFunc
- func NewLogRequester() logs.Requester
- type LogRequester
Constants ¶
const ( //OrchestrationIdentifier identifier string for provider orchestration OrchestrationIdentifier = "memory" //ProviderName name of the provider ProviderName = "faas-memory" )
Variables ¶
This section is empty.
Functions ¶
func MakeDeleteHandler ¶
func MakeDeleteHandler() http.HandlerFunc
MakeDeleteHandler delete a function
func MakeDeployHandler ¶
func MakeDeployHandler() http.HandlerFunc
MakeDeployHandler creates a handler to create new functions in the cluster
func MakeFunctionReader ¶
func MakeFunctionReader() 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 MakeProxy ¶
func MakeProxy() http.HandlerFunc
MakeProxy creates a proxy for HTTP web requests which can be routed to a function.
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 MakeSecretsHandler ¶
func MakeSecretsHandler() http.HandlerFunc
func MakeUpdateHandler ¶
func MakeUpdateHandler() http.HandlerFunc
MakeUpdateHandler update specified function
func NamespaceLister ¶
func NamespaceLister() http.HandlerFunc
faas-memory does not use namespaces, so we return an empty list. see https://github.com/openfaas-incubator/connector-sdk/pull/46
func NewLogRequester ¶
NewLogRequester returns a Requestor instance that can be used in the function logs endpoint