pub async fn manifest(services: Vec<String>, conf: &Config, reg: &Region, secrets: bool) -> Result<()> {
    conf.verify()?; // this should work even with a limited config!
    for svc in services {
        debug!("validating {} for {}", svc, reg.name);
        let mf = if secrets {
            shipcat_filebacked::load_manifest(&svc, conf, reg)
                .await?
                .complete(reg)
                .await?
        } else {
            shipcat_filebacked::load_manifest(&svc, conf, reg)
                .await?
                .stub(reg)
                .await?
        };
        mf.verify(conf, reg)?;
        debug!("validated {} for {}", svc, reg.name);
    }
    Ok(())
}
/// Validate the manifest of a service in the services directory
///
/// This will populate the manifest for all supported environments,
/// and `verify` their parameters.
/// Optionally, it will also verify that all secrets are found in the corresponding
/// vault locations serverside (which require vault credentials).
Validate the manifest of a service in the services directory
This will populate the manifest for all supported environments,
and `verify` their parameters.
Optionally, it will also verify that all secrets are found in the corresponding
vault locations serverside (which require vault credentials).
Validate the manifest of a service in the services directory This will populate the manifest for all supported environments and ` verify ` their parameters . Optionally it will also verify that all secrets are found in the corresponding vault locations serverside ( which require vault credentials ) .
pub async fn manifest(services: Vec<String>, conf: &Config, reg: &Region, secrets: bool) -> Result<()> {
    conf.verify()?; // this should work even with a limited config!
    for svc in services {
        debug!("validating {} for {}", svc, reg.name);
        let mf = if secrets {
            shipcat_filebacked::load_manifest(&svc, conf, reg)
                .await?
                .complete(reg)
                .await?
        } else {
            shipcat_filebacked::load_manifest(&svc, conf, reg)
                .await?
                .stub(reg)
                .await?
        };
        mf.verify(conf, reg)?;
        debug!("validated {} for {}", svc, reg.name);
    }
    Ok(())
}
pub async fn manifest ( services : Vec < String > , conf : & Config , reg : & Region , secrets : bool ) -> Result < ( ) > { conf . verify ( ) ? ; // this should work even with a limited config! for svc in services { debug ! ( " " svc reg name ) ; let mf = if secrets { shipcat_filebacked :: load_manifest ( & svc , conf , reg ) . await ? . complete ( reg ) . await ? } else { shipcat_filebacked :: load_manifest ( & svc , conf , reg ) . await ? . stub ( reg ) . await ? } ; mf . verify ( conf , reg ) ? ; debug ! ( " " svc reg name ) ; } Ok ( ( ) ) }
Validate the manifest of a service in the services directory
This will populate the manifest for all supported environments,
and `verify` their parameters.
Validate the manifest of a service in the services directory This will populate the manifest for all supported environments and ` verify ` their parameters .
services
Vec<String>
conf
&Config
reg
&Region
secrets
bool
services
Vec<String>
conf
&Config
reg
&Region
secrets
bool