Documentation
¶
Overview ¶
Command uploadtestserver serves the media upload and read APIs over an isolated MinIO/RGW namespace for the browser SDK's integration tests (sdk/ui/test) and e2e specs. It reads the CONTENTKIT_TEST_S3_* variables, presigns for -public (a proxy the test controls), prints "READY <url> <namespace>" and runs until stdin closes. CONTENTKIT_TEST_S3_BUCKET selects an existing bucket; cleanup removes only the test namespace. CONTENTKIT_TEST_URL supplies PostgreSQL for the real recovery journal and manifest lock; the fixture migrates and drops its own isolated schema.
/upload/... the upload API; X-Test-Actor names the caller ("reader" may not upload)
/upload-on-upload/... the same with ProcessOnUpload
/read/... the read API; "reader" reads as a viewer, everyone else as an editor
/ck/... contentkit.Runtime.Handler: content, media, codes, taxonomy (content.go);
signed-out visitors comment, react and vote
/ck-members/... the same over the same schema with the default: signed-out visitors only read
GET /object?kind&id&path|public {"size","sha256"} of a stored file: an
item's file by path (or stem), or a public name
It has no libvips or ffmpeg: a stand-in worker (standIn) processes items.
Click to show internal directories.
Click to hide internal directories.