handlers

package
v0.0.0-...-e62a7ec Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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(s *resmngr.ResourceManagerStates) 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 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 This would be called by an outside monitor to scale stuff up and down THIS IS NOT USED ATM

func MakeUpdateHandler

func MakeUpdateHandler() http.HandlerFunc

MakeUpdateHandler update specified function

Types

This section is empty.

Jump to

Keyboard shortcuts

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