routes

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSiteHandler

func CreateSiteHandler(c *gin.Context)

CreateSiteHandler is the handler for POST /site, which creates a new site

func DeleteSiteHandler

func DeleteSiteHandler(c *gin.Context)

DeleteSiteHandler is the handler for DELETE /site/{domain}, which deletes a site

func DeploySiteHandler

func DeploySiteHandler(c *gin.Context)

DeploySiteHandler is the handler for POST/PUT /site/{domain}/app, which deploys an app

func GetStateHandler

func GetStateHandler(c *gin.Context)

GetStateHandler is the handler for GET /state, which dumps the state

func InfoHandler

func InfoHandler(c *gin.Context)

InfoHandler is the handler for GET /info, which returns information about the agent running

func KeyVaultInfoHandler

func KeyVaultInfoHandler(c *gin.Context)

KeyVaultInfoHandler is the handler for GET /keyvaultinfo, which returns the name of the Azure Key Vault instance used

func ListSiteHandler

func ListSiteHandler(c *gin.Context)

ListSiteHandler is the handler for GET /site, which lists all sites

func PatchSiteHandler

func PatchSiteHandler(c *gin.Context)

PatchSiteHandler is the handler for PATCH /site/{domain}, which replaces a site

func PutStateHandler

func PutStateHandler(c *gin.Context)

PutStateHandler is the handler for PUT /state (and POST /state), which replaces the state with the input

func ShowSiteHandler

func ShowSiteHandler(c *gin.Context)

ShowSiteHandler is the handler for GET /site/{domain}, which shows a site

func StatusHandler

func StatusHandler(c *gin.Context)

StatusHandler is the handler for GET /status (with an optional domain as in /status/:domain), which returns the status and health of the node

func UploadAuthHandler

func UploadAuthHandler(c *gin.Context)

UploadAuthHandler is the handler for POST /uploadauth, which returns the SAS token to authorize uploads to Azure Blob Storage

Types

This section is empty.

Jump to

Keyboard shortcuts

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