api

package
v0.0.0-...-2e020bf Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(w http.ResponseWriter, req *http.Request)

AddHandler gets sent form data from the cli. The form data includes the name of the executable binary or script being sent and the contents of the executable binary or script being sent. It then hashes the contents of the executable binary or script and writes the contents to test/binaries/hash. Lastly it adds a symbolic link to test/defaut/givenname. That link links test/binaries/hash and test/default/givenname.

func ListHandler

func ListHandler(w http.ResponseWriter, req *http.Request)

func RunHandler

func RunHandler(w http.ResponseWriter, req *http.Request)

RunHandler processes a run request. A run request is an HTTP POST that has a body of "binary" which represents the binary to... run.

func Server

func Server() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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