package
0.5.0-beta.3
Repository: https://github.com/statiko-dev/statiko.git
Documentation: pkg.go.dev

# Functions

ACMEChallengeHandler is the handler for GET /.well-known/acme-challenge/:token, which is used by the ACME challenge.
AppDeleteHandler is the handler for DELETE /app/:name which removes an app from the storage.
AppListHandler is the handler for GET /app which returns the list of apps.
AppUpdateHandler is the handler for POST /app/:name, which updates the signature of a file The request may contain a "signature" field or a "hash" onne.
AppUploadHandler is the handler for POST /app, which is used to upload new app bundles The request body must be a multipart/form-data with a "file" field containing the bundle, a "name" field containing the name, and a "type" one containing the type (file extension) Optionally, pass a "signature" and/or "hash" fielld.
ClusterStatusHandler is the handler for GET /clusterstatus, which returns the status of the entire cluster.
CreateSiteHandler is the handler for POST /site, which creates a new site.
DeleteCertificateHandler is the handler for DELETE /certificate/{name}, which removes a certificate from the store Only certificates not used by any site can be deleted.
DeleteSiteHandler is the handler for DELETE /site/:domain, which deletes a site.
DeploySiteHandler is the handler for POST/PUT /site/{domain}/app, which deploys an app.
DHParamsGetHandler is the handler for GET /dhparams, which returns wether DH parameters exist or are being re-generated The response type is "builtin" when the cluster is using the built-in DH parameters, and "cluster" when it's using DH parameters generated for the cluster.
DHParamsSetHandler is the handler for POST /dhparams, which stores new DH parameters (PEM-encoded).
GetStateHandler is the handler for GET /state, which dumps the state.
ImportCertificateHandler is the handler for POST /certificate, which stores a new certificate Certificate must be an object with a key and a certificate, both PEM-encoded Certificate name must be a lowercase string with letters, numbers, dashes and dots only, and must begin with a letter.
InfoHandler is the handler for GET /info, which returns information about the agent running.
ListCertificateHandler is the handler for GET /certificate, which lists all certificates currently stored (names only).
ListSiteHandler is the handler for GET /site, which lists all sites.
PatchSiteHandler is the handler for PATCH /site/:domain, which replaces a site.
PutStateHandler is the handler for PUT /state (and POST /state), which replaces the state with the input.
ShowSiteHandler is the handler for GET /site/:domain, which shows a site.
StatusHandler is the handler for GET /status (with an optional domain as in /status/:domain), which returns the status and health of the node.
SyncHandler is the handler for POST /sync, which forces a new sync.