Function brane_tsk::api::get_data_index

source ·
pub async fn get_data_index(
    endpoint: impl AsRef<str>,
) -> Result<DataIndex, Error>
Expand description

Downloads the current data index from the Brane API service.

§Arguments

  • endpoint: The endpoint to send the request to.

§Returns

The DataIndex 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.