pub struct BuildClient { /* private fields */ }
Expand description
Build API 客户端
Implementations§
Source§impl BuildClient
impl BuildClient
Sourcepub async fn post_repo_build_stop_sn(
&self,
repo: String,
sn: String,
) -> Result<Value>
pub async fn post_repo_build_stop_sn( &self, repo: String, sn: String, ) -> Result<Value>
停止一个构建。 Stop a build.
Sourcepub async fn post_repo_build_start(
&self,
repo: String,
request_data: Value,
) -> Result<Value>
pub async fn post_repo_build_start( &self, repo: String, request_data: Value, ) -> Result<Value>
开始一个构建。Start a build.
Sourcepub async fn get_repo_build_logs_stage_sn_pipeline_id_stage_id(
&self,
repo: String,
sn: String,
pipeline_id: String,
stage_id: String,
) -> Result<Value>
pub async fn get_repo_build_logs_stage_sn_pipeline_id_stage_id( &self, repo: String, sn: String, pipeline_id: String, stage_id: String, ) -> Result<Value>
查询流水线Stage详情。Get pipeline build stage detail.
Sourcepub async fn get_repo_build_logs(
&self,
repo: String,
create_time: Option<String>,
end_time: Option<String>,
event: Option<String>,
page: Option<i64>,
pagesize: Option<i64>,
sha: Option<String>,
sn: Option<String>,
source_ref: Option<String>,
status: Option<String>,
target_ref: Option<String>,
user_id: Option<String>,
user_name: Option<String>,
) -> Result<Value>
pub async fn get_repo_build_logs( &self, repo: String, create_time: Option<String>, end_time: Option<String>, event: Option<String>, page: Option<i64>, pagesize: Option<i64>, sha: Option<String>, sn: Option<String>, source_ref: Option<String>, status: Option<String>, target_ref: Option<String>, user_id: Option<String>, user_name: Option<String>, ) -> Result<Value>
查询流水线构建列表。List pipeline builds.
Auto Trait Implementations§
impl Freeze for BuildClient
impl !RefUnwindSafe for BuildClient
impl Send for BuildClient
impl Sync for BuildClient
impl Unpin for BuildClient
impl !UnwindSafe for BuildClient
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