A Rust binding to the Buildkite V2 API.
First, add following to Cargo.toml
:
[dependencies]
buildkite = "0.1.0"
Then use the crate with:
use buildkite;
fn main() {
let client = buildkite::client::Client::new("BUILDKITE_TOKEN");
}
// List Organizations
client
.organizations()
.list();
// Get a sepcific organization
client
.organizations()
.get(org_name);
// List builds for a specific pipeline
client
.builds()
.list(org_name, pipeline_name);
// List agents
client
.agents()
.list(org_name)
// Get agent
client
.agents()
.get(org_name, agent_id)
Licensed under Apache License, Version 2.0