Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add inspectManifest API endpoint
### What does this PR do? * Adds the inspectManifest API endpoint so we can retrieve information regarding a manifest from the podman libpodApi endpoint ### Screenshot / video of UI <!-- If this PR is changing UI, please include screenshots or screencasts showing the difference --> N/A, it's an API call. ### What issues does this PR fix or reference? <!-- Include any related issues from Podman Desktop repository (or from another issue tracker). --> Closes #6793 ### How to test this PR? <!-- Please explain steps to verify the functionality, do not forget to provide unit/component tests --> - [X] Tests are covering the bug fix or the new feature Tests cover, otherwise you could also put the following (after creating ANY manifest, in a svelte file:) ```ts // List all the images const images = await window.listImages(); // Get all the ones that have isManifest set to true const manifestImages = images.filter(image => image.isManifest); // For each manifestImages use inspectManifest to get the information (passing in engineId as well) const imageInfoPromises = manifestImages.map(image => window.inspectManifest(image.engineId, image.Id)); // Wait for all the promises to resolve const imageInfos = await Promise.all(imageInfoPromises); // Consoel log each one imageInfos.forEach(imageInfo => { console.log(imageInfo); }); ``` Signed-off-by: Charlie Drage <charlie@charliedrage.com>
- Loading branch information
Showing
9 changed files
with
217 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters