commit 284bbdd391b24823f1f1154577b2b68575e7f7e9
Author: Tim Burke <email address hidden>
Date: Thu Oct 11 23:25:32 2018 +0000
Add slo_manifest_hook callback
... to allow other middlewares to impose additional constraints on
or make edits to SLO manifests before being written.
The callback takes a single argument: the python list that represents
the manifest to be written. All the normal list operations listed at https://docs.python.org/2/library/stdtypes.html#mutable-sequence-types
are available to make changes to that before SLO serializes it as JSON.
The callback may return a list of problematic segments; each item in the
list should be a tuple of
(quoted object name, description of problem)
This will be useful both for s3api minimum segment size validation and
creating tar large objects.
Reviewed: https:/ /review. openstack. org/609860 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=284bbdd391b 24823f1f1154577 b2b68575e7f7e9
Committed: https:/
Submitter: Zuul
Branch: master
commit 284bbdd391b2482 3f1f1154577b2b6 8575e7f7e9
Author: Tim Burke <email address hidden>
Date: Thu Oct 11 23:25:32 2018 +0000
Add slo_manifest_hook callback
... to allow other middlewares to impose additional constraints on
or make edits to SLO manifests before being written.
The callback takes a single argument: the python list that represents /docs.python. org/2/library/ stdtypes. html#mutable- sequence- types
the manifest to be written. All the normal list operations listed at
https:/
are available to make changes to that before SLO serializes it as JSON.
The callback may return a list of problematic segments; each item in the
list should be a tuple of
(quoted object name, description of problem)
This will be useful both for s3api minimum segment size validation and
creating tar large objects.
Change-Id: I198c5196e0221a 72b14597a06e5ce 3c4b2bbf436
Related-Bug: #1636663