#
abf17354 |
| 22-Dec-2020 |
William A. Kennington III <wak@google.com> |
version-handler: Refactor handler construction
Instead of requiring callers to build maps and info blobs, take the minimal required amount of information about the blob configuration and build requi
version-handler: Refactor handler construction
Instead of requiring callers to build maps and info blobs, take the minimal required amount of information about the blob configuration and build required datastructures internally.
This reduces the amount of code, and nearly eliminates all of the untested code in main.cpp.
Change-Id: Iaa398eb404814e9263e6707b71b38a9831d96697 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
a62c1704 |
| 22-Dec-2020 |
William A. Kennington III <wak@google.com> |
version-handler: Remove create special cases
Our builder is validated to not pass invalid configurations to the handler. Since we can guarantee the invariant that we will never construct handlers wi
version-handler: Remove create special cases
Our builder is validated to not pass invalid configurations to the handler. Since we can guarantee the invariant that we will never construct handlers with null paramemters, we don't need have extra checks.
Change-Id: I48d24874298c1c5ead74724921c86ea0a022a53c Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
c78bfc82 |
| 05-Nov-2020 |
Jason Ling <jasonling@google.com> |
version-handler: add version-handler, blob handler
Implement version-handler: a blob handler for retrieving version information about a blob.
Problem: ipmi-flash(firmware-handler) provides a mechan
version-handler: add version-handler, blob handler
Implement version-handler: a blob handler for retrieving version information about a blob.
Problem: ipmi-flash(firmware-handler) provides a mechanism to transfer firmware updates, verify them and perform updates but there is no mechanism to interrogate the firmware for its version.
Solution: version-handler provides handlers for retrieving information about firmware blobs. Adding "version" syntax to "/flash/blob" entries in the json configuration file enables this feature. The mechanism to retrieve version is identical to the mechanism used by firmware-handler to perform preparation, verification and updates (kick off systemd targets).
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I28868ca8dd76d63af668d2e46b9359401d45f0bc
show more ...
|