ba9808cebb
Adds the ability to compute a "multihash" (see the Glance spec for what this is exactly). To maintain backward compatability, a new store_add_to_backend_with_multihash function is added. Backward compatability for each store's add() method is achieved by a back_compat_add wrapper. Co-Authored-by: Scott McClymont <scott.mcclymont@verizonwireless.com> Co-Authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com> Change-Id: I063d0900b7dc7e0d94dfb685971eb9b17ed67c7b Partially-implements: blueprint multihash
14 lines
636 B
YAML
14 lines
636 B
YAML
---
|
|
prelude: >
|
|
This release adds support for Glance multihash computation.
|
|
features:
|
|
- |
|
|
A new function, ``store_add_to_backend_with_multihash``, has been
|
|
added. This function wraps each store's ``add`` method to provide
|
|
consumers with a constant interface. It is similar to the existing
|
|
``store_add_to_backend`` function but requires the caller to
|
|
specify an additional ``hashing_algo`` argument whose value is
|
|
a hashlib algorithm identifier. The function returns a 5-tuple
|
|
containing a ``multihash`` value, which is a hexdigest of the
|
|
stored data computed using the specified hashing algorithm.
|