forked from TrueCloudLab/distribution
3911880491
This change provides a toolkit for intercepting registry calls, such as `ManifestService.Get` and `LayerUpload.Finish`, with the goal of easily supporting interesting callbacks and listeners. The package proxies returned objects through the decorate function before creation, allowing one to carefully choose injection points. Use cases range from notification systems all the way to cache integration. While such a tool isn't strictly necessary, it reduces the amount of code required to accomplish such tasks, deferring the tricky aspects to the decorator package. Signed-off-by: Stephen J Day <stephen.day@docker.com> |
||
---|---|---|
.. | ||
decorator.go | ||
decorator_test.go |