Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 204 additions & 6 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions rust/agama-software/src/model/registration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ pub struct Registration {
// `to_registration_info` function.
connect_params: ConnectParams,
creds: Credentials,
/// list of services for each registered product
/// the first service is always the one for base product registration
services: Vec<suseconnect_agama::Service>,
// Holds the addons information because the status cannot be obtained from SCC yet
// (e.g., whether and add-on is register or its registration code).
Expand Down Expand Up @@ -266,6 +268,10 @@ impl Registration {
fn find_registered_addon(&self, id: &str) -> Option<&Addon> {
self.addons.iter().find(|a| a.id == id)
}

pub fn base_product_service_name(&self) -> Option<String> {
self.services.first().map(|s| s.name.clone())
}
}

/// A builder for a [Registration] object.
Expand Down
Loading
Loading