Crate prow_build

Source
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§

BuildIterator
The iterator state.
BuildResult
A build result.
Client
The prow client.
ProwID
A build id.
StoragePath
The storage path, e.g. “origin-ci-test”
StorageType
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.