pub async fn get_curated_group_from_xname_hostlist(
infra: &InfraContext<'_>,
auth_token: &str,
xname_vec: &[String],
) -> Result<HashMap<String, Vec<String>>, Error>Expand description
Group the supplied xnames by their parent HSM group.
Fetches the HSM groups the caller can access, then for each group
returns the intersection of its membership with xname_vec.
Groups whose intersection is empty are omitted, so the returned
map contains only groups that actually contribute at least one
matching node.
Used by crate::service::migrate::migrate_nodes to slice a
single resolved xname list across multiple parent groups for the
per-pair migrate_group_members calls.
ยงErrors
[Error::NetError] / [Error::CsmError] from
get_group_name_available or get_group_map_and_filter_by_group_vec.