voltest

command
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

voltest — HTTP server that persists messages to a mounted volume.

Endpoints:

POST /write?msg=hello   append a message to /data/log.txt
GET  /                  list all messages written so far
DELETE /reset           clear the log

Mount a volume at /data to verify persistence across VM restarts:

jerboa volume create testdata
jerboa build ./voltest --name voltest
jerboa run voltest:latest -v testdata:/data -p 8080:8080 --name v1
curl -X POST "http://localhost:8080/write?msg=hello"
curl -X POST "http://localhost:8080/write?msg=world"
curl http://localhost:8080/
jerboa stop v1 && jerboa rm v1
jerboa run voltest:latest -v testdata:/data -p 8080:8080 --name v2
curl http://localhost:8080/   ← still shows "hello" and "world"

Jump to

Keyboard shortcuts

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