Function brane_tsk::api::get_package_index
source · pub async fn get_package_index(
endpoint: impl AsRef<str>,
) -> Result<PackageIndex, Error>
Expand description
Downloads the current package index from the Brane API service.
§Arguments
endpoint
: The endpoint to send the request to.
§Returns
The PackageIndex that represents the packages currently known to the instance at the time of the call.
§Errors
This function errors for many reasons, chief of which may be that the endpoint is unavailable or its response was ill-formed.