Skip to main content

CanaryDeployment

Trait CanaryDeployment 

Source
pub trait CanaryDeployment: Send + Sync {
    // Required methods
    fn start_canary<'life0, 'async_trait>(
        &'life0 mut self,
        request: DeploymentRequest,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn promote<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn complete<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn abort<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<RollbackResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_status<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn can_promote<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deployment_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for canary deployment

Required Methods§

Source

fn start_canary<'life0, 'async_trait>( &'life0 mut self, request: DeploymentRequest, ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start a canary deployment

Source

fn promote<'life0, 'life1, 'async_trait>( &'life0 mut self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Promote to next canary phase

Source

fn complete<'life0, 'life1, 'async_trait>( &'life0 mut self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Complete canary deployment (promote to 100%)

Source

fn abort<'life0, 'life1, 'async_trait>( &'life0 mut self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<RollbackResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Abort canary deployment

Source

fn get_status<'life0, 'life1, 'async_trait>( &'life0 self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<DeploymentStatus>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get current canary status

Source

fn can_promote<'life0, 'life1, 'async_trait>( &'life0 self, deployment_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = ActuatorResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check if phase can be promoted

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§