Commit Graph

5 Commits

Author SHA1 Message Date
Marius 71765b61e4
hooks: Allow pre-create to change upload ID, meta data and storage details (#962)
* hooks: Allow pre-create to change upload ID, meta data and storage details

* fixup! hooks: Allow pre-create to change upload ID, meta data and storage details

* hooks: Add support for ChangeFileInfo in gRPC
2023-06-20 11:32:51 +02:00
Marius a75c24996f Add v2 to module name
See https://github.com/tus/tusd/pull/672#issuecomment-1082737523 for context
2023-03-08 13:03:18 +01:00
Marius 12c10bf62f
v2: Rework hooks system (#516)
* ci: Remove plugin hook handler

* Rework error type from interface to struct

* Avoid writing to http.ResponseWriter directly

* Allow hooks to modify response

* Add example for HTTP hooks using Python

* Implement new plugin system using Hashicorp/go-plugin

* Enable returning partial HTTPResponses

* Remove some (unnecessary) error handling

* Forward stdout and stderr from plugin to tusd

* docs: Update examples

* cli: Update filehooks to new system

* cli: Renovate gRPC hooks

* docs: Correct casing of gRPC

* misc: Documentation, better examples, and code structure
2022-03-02 00:36:49 +01:00
Marius 48ffebec56
docs: Fix hook example when accessing upload metadata
Closes https://github.com/tus/tusd/issues/545
2021-10-29 11:01:47 +02:00
Marius 76f8489d37 misc: Remove dots from folders 2019-09-12 13:10:51 +02:00