canonical / operator-libs-linux

Linux helper libraries for the operator framework
Apache License 2.0
11 stars 37 forks source link

RFE: extend the snap module to provide more info eg. on available tracks / risk levels and revisions #118

Open sabaini opened 7 months ago

sabaini commented 7 months ago

The snap module provides a convenient way to interact with snaps, however it's limited in the information it provides from the snap store.

E.g. you can query the SnapCache for a snap name but afaict it will only give you info for the default track and risk level

c = snap.SnapCache()
microceph_snap = c["microceph"]
print(mc)
<Snap: microceph-817.reef/stable -- SnapState.Available>

It would be great to get more info on

benhoyt commented 7 months ago

Hi @sabaini, thanks for the request. This sounds reasonable, however, Charm Tech has limited time to work on operator-libs-linux at the moment with our roadmap items. Often operator-libs-linux changes come from PRs submitted by devs who need the feature. Are you able to do work on this, or at least suggest how it would work and what changes would be need? We can probably get to it (we also have a new guy starting soon), but possibly not in the timeframe you'd need. Let us know.