docker/docker-registry — pull request #607 by ncdc (2014-10-03 20:16:46+00:00)
Title: Add before_put_image_json signal

Add before_put_image_json signal that allows receivers to short-circuit
the put if they return any non-None value. This can be useful for things
such as enforcing quotas, e.g. by having a custom extension connect to
this signal, check the layer's Size, and returning something to the
effect that the put was denied due to quota.

Signed-off-by: Andy Goldstein