diff options
author | Scott McClymont <scott.mcclymont@verizonwireless.com> | 2017-12-18 19:03:18 +0000 |
---|---|---|
committer | Brian Rosmaita <rosmaita.fossdev@gmail.com> | 2018-07-18 09:27:54 -0400 |
commit | ba9808cebb93e8e22a49652ce534c31d2012343b (patch) | |
tree | 25c983d60ad915c3d53d3cdeca49d4062a9cd814 /releasenotes | |
parent | baa663ec5c497aeab6f2cfa82946c2d70607d9dd (diff) | |
download | glance_store-ba9808cebb93e8e22a49652ce534c31d2012343b.tar.gz |
Multihash Implementation for Glance
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
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/multihash-support-629e9cbc283a8b47.yaml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/releasenotes/notes/multihash-support-629e9cbc283a8b47.yaml b/releasenotes/notes/multihash-support-629e9cbc283a8b47.yaml new file mode 100644 index 0000000..c511a31 --- /dev/null +++ b/releasenotes/notes/multihash-support-629e9cbc283a8b47.yaml @@ -0,0 +1,13 @@ +--- +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. |