Goose (Go Online Storage Engine) is a simple static file server implemented in Go over MongoDB's GridFS spec.
curl -X POST -v -H "Content-Type: application/json" -d '{"Name":"mybucket"}' http://api.goose.loc:3000/buckets
curl -X GET -v http://api.goose.loc:3000/buckets/name/mybucket
curl -X GET -v http://api.goose.loc:3000/buckets/
In this example, we use cURL to upload a PDF file:
The ID of the bucket we're uploading it to is 546e1759494d911a70000001
The path under the bucket where the file will be accesible is /uploads/Book.pdf
curl --tr-encoding -X POST -v -# -o output -T Book.pdf -H "Content-Type: application/pdf" \
http://api.goose.loc:3000/buckets/546e1759494d911a70000001/objects?name=/uploads/Book.pdf
Content type
Image
Digest
sha256:877c5a89f…
Size
181.7 MB
Last updated
almost 11 years ago
docker pull sybdevs/goose