Skip to main content

DeployDriver

Trait DeployDriver 

Source
pub trait DeployDriver: Send + Sync {
    // Required method
    fn apply<'a>(
        &'a self,
        spec: &'a DeploymentSpec,
    ) -> BoxFuture<'a, Result<DeploymentRef, DeployError>>;
}
Expand description

Creates or updates a deployment version (graphrt deploy --target <t>). Writes secrets to the provider’s secret store as references; the gateway never receives them.

Required Methods§

Source

fn apply<'a>( &'a self, spec: &'a DeploymentSpec, ) -> BoxFuture<'a, Result<DeploymentRef, DeployError>>

Applies spec and returns the reference the gateway will wake.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§