#serde #api-bindings #prow

prow-build

Decoders and Iterators for https://prow.k8s.io/

1 unstable release

0.1.0 Aug 15, 2023

#2011 in Development tools

Apache-2.0

12KB
199 lines

This library provides an Iterator to crawl build results from prow.

Here is an example usage:

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);
}

Dependencies

~5–17MB
~250K SLoC