#serde #api-bindings #prow

prow-build

用于 https://prow.k8s.io/ 的解码器和迭代器

1 个不稳定版本

0.1.0 2023年8月15日

#2011开发工具

Apache-2.0 协议

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