Client

Trait Client 

Source
pub trait Client {
    // Required methods
    fn download_job_artifact(
        &self,
        job_id: Uuid,
        name: &str,
    ) -> Result<Box<dyn Read + Send + Sync + 'static>, Report<ClientError>>;
    fn delete_job_artifact(
        &self,
        job_id: Uuid,
        name: &str,
    ) -> Result<(), Report<ClientError>>;
    fn delete_job(&self, job_id: Uuid) -> Result<(), Report<ClientError>>;
    fn dispatch_scan(
        &self,
        workflow_id: Uuid,
        scan_name: String,
        inputs: Option<BTreeMap<String, Value>>,
    ) -> Result<(), Report<ClientError>>;
    fn download_blob_file(
        &self,
        path: &str,
    ) -> Result<Box<dyn Read + Send + Sync + 'static>, Report<ClientError>>;
    fn upload_blob_file(
        &self,
        file: File,
        dst: &str,
    ) -> Result<(), Report<ClientError>>;
    fn create_runner_registration(
        &self,
    ) -> Result<RunnerRegistrationResponse, Report<ClientError>>;
}

Required Methods§

Source

fn download_job_artifact( &self, job_id: Uuid, name: &str, ) -> Result<Box<dyn Read + Send + Sync + 'static>, Report<ClientError>>

Source

fn delete_job_artifact( &self, job_id: Uuid, name: &str, ) -> Result<(), Report<ClientError>>

Source

fn delete_job(&self, job_id: Uuid) -> Result<(), Report<ClientError>>

Source

fn dispatch_scan( &self, workflow_id: Uuid, scan_name: String, inputs: Option<BTreeMap<String, Value>>, ) -> Result<(), Report<ClientError>>

Source

fn download_blob_file( &self, path: &str, ) -> Result<Box<dyn Read + Send + Sync + 'static>, Report<ClientError>>

Source

fn upload_blob_file( &self, file: File, dst: &str, ) -> Result<(), Report<ClientError>>

Source

fn create_runner_registration( &self, ) -> Result<RunnerRegistrationResponse, Report<ClientError>>

Implementors§