pub async fn all_manifests() -> Result<()> {
    let regions = Config::read().await?.list_regions();
    let mut buffered = stream::iter(regions).map(verify_region).buffer_unordered(4);

    let mut errs = vec![];
    while let Some(r) = buffered.next().await {
        if let Err(e) = r {
            errs.push(e);
        }
    }
    if !errs.is_empty() {
        for e in &errs {
            error!("{}", e.display_chain());
            debug!("{:?}", e.display_chain());
        }
        bail!("Invalid shipcat data in {} files", errs.len());
    }
    Ok(())
}
/// Validate all manifests in a service directory for ALL regions
///
/// This is meant to replace a for loop over shipcat list-regions
/// This does not check secrets
Validate all manifests in a service directory for ALL regions
This is meant to replace a for loop over shipcat list-regions
This does not check secrets
Validate all manifests in a service directory for ALL regions This is meant to replace a for loop over shipcat list - regions This does not check secrets
pub async fn all_manifests() -> Result<()> {
    let regions = Config::read().await?.list_regions();
    let mut buffered = stream::iter(regions).map(verify_region).buffer_unordered(4);
    let mut errs = vec![];
    while let Some(r) = buffered.next().await {
        if let Err(e) = r {
            errs.push(e);
        }
    }
    if !errs.is_empty() {
        for e in &errs {
            error!("{}", e.display_chain());
            debug!("{:?}", e.display_chain());
        }
        bail!("Invalid shipcat data in {} files", errs.len());
    }
    Ok(())
}
pub async fn all_manifests ( ) -> Result < ( ) > { let regions = Config :: read ( ) . await ? . list_regions ( ) ; let mut buffered = stream :: iter ( regions ) . map ( verify_region ) . buffer_unordered ( 4 ) ; let mut errs = vec ! [ ] ; while let Some ( r ) = buffered . next ( ) . await { if let Err ( e ) = r { errs . push ( e ) ; } } if ! errs . is_empty ( ) { for e in & errs { error ! ( " " e display_chain ( ) ) ; debug ! ( " " e display_chain ( ) ) ; } bail ! ( " " errs len ( ) ) ; } Ok ( ( ) ) }
Validate all manifests in a service directory for ALL regions
This is meant to replace a for loop over shipcat list-regions
This does not check secrets
Validate all manifests in a service directory for ALL regions This is meant to replace a for loop over shipcat list - regions This does not check secrets