routes

package
v0.0.0-...-1236268 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunctionWithRevisionWithWasmModule

func AddFunctionWithRevisionWithWasmModule(functionName, revisionName, wasmModuleUrl string, wasmModule models.RunningWasmModule, functions map[string]models.Function)

AddFunctionWithRevisionWithWasmModule updates the functions map

func AddRevisionWithWasmModuleToFunction

func AddRevisionWithWasmModuleToFunction(functionName, revisionName, wasmModuleUrl string, wasmModule models.RunningWasmModule, functions map[string]models.Function)

AddRevisionWithWasmModuleToFunction updates the functions map

func AddRunningWasmModuleToRevision

func AddRunningWasmModuleToRevision(functionName, revisionName string, wasmModule models.RunningWasmModule, functions map[string]models.Function)

AddRunningWasmModuleToRevision updates the functions map

func AddUrlToRevision

func AddUrlToRevision(functionName, revisionName, moduleServerUrl, reverseProxy, backend, reverseProxyAdminToken string) (status string)

func ChangeDefaultRevisionFlag

func ChangeDefaultRevisionFlag()

func CheckWorkerAdminToken

func CheckWorkerAdminToken(c *gin.Context, workerAdminToken string) bool

func CreateDefaultRevisionWithFirstModuleUrl

func CreateDefaultRevisionWithFirstModuleUrl(functionName, revisionName, moduleServerUrl, reverseProxy, backend, reverseProxyAdminToken string) (status string)

CreateDefaultRevisionWithFirstModuleUrl : reverse-proxy side

func DefineDeployRoute

func DefineDeployRoute(router *gin.Engine, functions map[string]models.Function, capsulePath string, httpPortCounter int, workerDomain, reverseProxy, backend, reverseProxyAdminToken, workerAdminToken string)

func DefineDeploymentsListRoute

func DefineDeploymentsListRoute(router *gin.Engine, functions map[string]models.Function, reverseProxy, backend, reverseProxyAdminToken, workerAdminToken string)

func DefineDownscaleRevisionDeploymentRoute

func DefineDownscaleRevisionDeploymentRoute(router *gin.Engine, functions map[string]models.Function, capsulePath string, httpPortCounter int, workerDomain, reverseProxy, backend, reverseProxyAdminToken, workerAdminToken string)

func DefineRemoveRevisionDeploymentRoute

func DefineRemoveRevisionDeploymentRoute(router *gin.Engine, functions map[string]models.Function, capsulePath string, httpPortCounter int, workerDomain, reverseProxy, backend, reverseProxyAdminToken, workerAdminToken string)

func DefineSwitchRoutes

func DefineSwitchRoutes(router *gin.Engine, functions map[string]models.Function, capsulePath string, httpPortCounter int, workerDomain, reverseProxy, backend, reverseProxyAdminToken, workerAdminToken string)

func RegisterFunction

func RegisterFunction(functionName, revisionName, moduleServerUrl, reverseProxy, backend, processStatus, reverseProxyAdminToken string) string

RegisterFunction : Register a function to the reverse proxy

func RegisterRevision

func RegisterRevision(functionName, revisionName, moduleServerUrl, reverseProxy, backend, processStatus, reverseProxyAdminToken string) string

func RegisterURL

func RegisterURL(functionName, revisionName, moduleServerUrl, reverseProxy, backend, processStatus, reverseProxyAdminToken string) string

func RemoveDefaultRevisionFromReverseProxy

func RemoveDefaultRevisionFromReverseProxy(functionName, reverseProxy, backend, reverseProxyAdminToken string) (status string)

RemoveDefaultRevisionFromReverseProxy : remove the default revision from the reverse proxy

func RemoveRevisionFromReverseProxy

func RemoveRevisionFromReverseProxy(functionName, revisionName, reverseProxy, backend, reverseProxyAdminToken string) (status string)

func RemoveUrlRevisionFromReverseProxy

func RemoveUrlRevisionFromReverseProxy(urlToRemove, functionName, revisionName, reverseProxy, backend, reverseProxyAdminToken string) (status string)

func StartFunction

func StartFunction(capsulePath string, wasmEnvVariables map[string]string, wasmModuleUrl string, httpPortCounter int) (pid int, processStatus, tmpFileName string)

StartFunction : Start a function

Types

This section is empty.

Jump to

Keyboard shortcuts

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