Cicd

Trait Cicd 

Source
pub trait Cicd {
    // Required methods
    fn list(&self, args: PipelineBodyArgs) -> Result<Vec<Pipeline>>;
    fn get_pipeline(&self, id: i64) -> Result<Pipeline>;
    fn num_pages(&self) -> Result<Option<u32>>;
    fn num_resources(&self) -> Result<Option<NumberDeltaErr>>;
    fn lint(&self, body: YamlBytes<'_>) -> Result<LintResponse>;
}

Required Methods§

Source

fn list(&self, args: PipelineBodyArgs) -> Result<Vec<Pipeline>>

Source

fn get_pipeline(&self, id: i64) -> Result<Pipeline>

Source

fn num_pages(&self) -> Result<Option<u32>>

Source

fn num_resources(&self) -> Result<Option<NumberDeltaErr>>

Source

fn lint(&self, body: YamlBytes<'_>) -> Result<LintResponse>

Lints ci/cd pipeline file contents. In gitlab this is the .gitlab-ci.yml file. Checks that the file is valid and has no syntax errors.

Implementors§

Source§

impl<R: HttpRunner<Response = HttpResponse>> Cicd for Github<R>

Source§

impl<R: HttpRunner<Response = HttpResponse>> Cicd for Gitlab<R>