1 个不稳定版本
0.1.0 | 2023年8月15日 |
---|
#2011 在 开发工具
12KB
199 行代码(不含注释)
此库提供了一个迭代器,用于爬取 prow 的构建结果。
以下是一个使用示例
let client = prow_build::Client {
client: reqwest::blocking::Client::new(),
api_url: url::Url::parse("https://prow.ci.openshift.org/").unwrap(),
storage_type: "gs".into(),
storage_path: "origin-ci-test".into(),
};
let max_result = 42;
for build in prow_build::BuildIterator::new(&client, "my-job").take(max_result) {
println!("{:#?}", build);
}
依赖项
~5–17MB
~250K SLoC