Skip to main content

get_available_endpoints

Function get_available_endpoints 

Source
pub fn get_available_endpoints(
    deployments: &[DeployedService],
) -> Vec<AvailableServiceEndpoint>
Expand description

Filter deployments down to services that have a reachable URL (public or private) and are not in a known-bad state.

The list_deployments API may return multiple records per service (one per deploy attempt). We deduplicate by service_name, keeping the most recent record (the API returns most-recent-first).

A service is included if it has a public_url OR a private_ip (for internal services deployed on a private network without public access).