Skip to main content

StopgapApi

Trait StopgapApi 

Source
pub trait StopgapApi {
    // Required methods
    fn deploy(
        &mut self,
        env: &str,
        from_schema: &str,
        label: Option<&str>,
        prune: bool,
        deploy_exports_json: Option<&str>,
    ) -> Result<i64>;
    fn rollback(
        &mut self,
        env: &str,
        steps: i32,
        to_id: Option<i64>,
    ) -> Result<i64>;
    fn status(&mut self, env: &str) -> Result<Option<Value>>;
    fn deployments(&mut self, env: &str) -> Result<Value>;
    fn diff(&mut self, env: &str, from_schema: &str) -> Result<Value>;
}

Required Methods§

Source

fn deploy( &mut self, env: &str, from_schema: &str, label: Option<&str>, prune: bool, deploy_exports_json: Option<&str>, ) -> Result<i64>

Source

fn rollback(&mut self, env: &str, steps: i32, to_id: Option<i64>) -> Result<i64>

Source

fn status(&mut self, env: &str) -> Result<Option<Value>>

Source

fn deployments(&mut self, env: &str) -> Result<Value>

Source

fn diff(&mut self, env: &str, from_schema: &str) -> Result<Value>

Implementors§