Expand description
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);
}
Structs§
- Build
Iterator - The iterator state.
- Build
Result - A build result.
- Client
- The prow client.
- ProwID
- A build id.
- Storage
Path - The storage path, e.g. “origin-ci-test”
- Storage
Type - The storage type, e.g. “gs”
Enums§
- Error
- The prow error.
Functions§
- get_
prow_ job_ history - The low-level function to query a single page.