pub struct GitHubPipelineClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl PipelineClient for GitHubPipelineClient
impl PipelineClient for GitHubPipelineClient
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 GitHubPipelineClient
impl RefUnwindSafe for GitHubPipelineClient
impl Send for GitHubPipelineClient
impl Sync for GitHubPipelineClient
impl Unpin for GitHubPipelineClient
impl UnsafeUnpin for GitHubPipelineClient
impl UnwindSafe for GitHubPipelineClient
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