INNER CODE UNIT · Rust

create_executor

tangle-network/blueprint · crates/blueprint-faas/src/lib.rs:134

    pub async fn create_executor(
        provider_config: FaasProviderConfig,
    ) -> Result<DynFaasExecutor, FaasError> {
        match provider_config.provider {
            #[cfg(feature = "aws")]
            FaasProvider::AwsLambda { region, role_arn } => {
                let executor = crate::aws::LambdaExecutor::new(&region, role_arn).await?;
                Ok(Arc::new(executor) as DynFaasExecutor)
            }
            #[cfg(feature = "gcp")]
            FaasProvider::GcpFunctions { project_id, region } => {
                let executor = crate::gcp::CloudFunctionExecutor::new(project_id, region).await?;
                Ok(Arc::new(executor) as DynFaasExecutor)
            }
            #[cfg(feature = "azure")]
            FaasProvider::AzureFunctions {
                subscription_id,
                region,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…