pub struct GitLabPipelineClient { /* private fields */ }Implementations§
Source§impl GitLabPipelineClient
impl GitLabPipelineClient
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Kept for parity with the other platform clients — the factory
constructs GitLab via new_with_base_url (self-hosted support).
Sourcepub fn new_with_base_url(base_url: Option<&str>) -> Result<Self>
pub fn new_with_base_url(base_url: Option<&str>) -> Result<Self>
0.8.0 — construct against a custom GitLab API base URL
(self-hosted instances declared in platforms.toml). None
falls back to GITLAB_URL env or https://gitlab.com/api/v4.
Trait Implementations§
Source§impl PipelineClient for GitLabPipelineClient
impl PipelineClient for GitLabPipelineClient
fn list( &self, owner: &str, repo: &str, filters: &ListFilters, ) -> Result<Vec<Pipeline>>
fn cancel(&self, owner: &str, repo: &str, id: &str) -> Result<()>
fn retry(&self, owner: &str, repo: &str, id: &str) -> Result<()>
fn delete(&self, owner: &str, repo: &str, id: &str) -> Result<()>
fn list_jobs( &self, owner: &str, repo: &str, pipeline_id: &str, status_filter: Option<&str>, ) -> Result<Vec<Job>>
Source§fn job_log(&self, owner: &str, repo: &str, job_id: &str) -> Result<String>
fn job_log(&self, owner: &str, repo: &str, job_id: &str) -> Result<String>
Fetch the raw log/trace for a single job. Returned as a String;
caller decides whether to print it all or
--tail N.fn job_retry(&self, owner: &str, repo: &str, job_id: &str) -> Result<()>
fn job_cancel(&self, owner: &str, repo: &str, job_id: &str) -> Result<()>
Source§fn job_artifacts_download(
&self,
owner: &str,
repo: &str,
job_id: &str,
output_path: &Path,
) -> Result<()>
fn job_artifacts_download( &self, owner: &str, repo: &str, job_id: &str, output_path: &Path, ) -> Result<()>
Download the job’s artifacts archive to
output_path. GitLab
supports this per-job; GitHub Actions only offers artifacts at
the workflow-run level, so the GitHub impl returns an error
pointing the user at the per-run download flow.Auto Trait Implementations§
impl Freeze for GitLabPipelineClient
impl RefUnwindSafe for GitLabPipelineClient
impl Send for GitLabPipelineClient
impl Sync for GitLabPipelineClient
impl Unpin for GitLabPipelineClient
impl UnsafeUnpin for GitLabPipelineClient
impl UnwindSafe for GitLabPipelineClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more