Add support for fetching images across all projects
Resolves https://github.com/canonical/lxd/issues/14126.
This PR adds support for fetching images across all projects by adding a query parameter all-projects and doGetImagesAllProjects(). I've also added a client function to lxd_images.go if we ever want to use this feature in the LXD CLI.
Heads up @mionaalex - the "Documentation" label was applied to this issue.
This PR should be good to go. It adds support for the --all-projects flag when running lxc image list. I'm planning to open separate PR's for --all-projects support for network zones, profiles, networks, network-acls, and storage buckets (Incus cherry picks).
Just a few nits that should be easy to fix :)
Thanks for the review @markylaing :) I think I've addressed everything now.
Just a couple of last bits. Thanks :)
Should be good to go, thanks!
Rebased and good to go 👍
There are no tests, we especially need tests to check access control of images.
Tests added! 😄