Skip to content

leakingtapan/buildkite-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rust library for Buildkite API

A Rust binding to the Buildkite V2 API.

Getting Started

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

Examples

Organizations

// List Organizations
client
    .organizations()
    .list();

// Get a sepcific organization
client
    .organizations()
    .get(org_name);

Builds

// List builds for a specific pipeline
client
    .builds()
    .list(org_name, pipeline_name);

Agents

// List agents
client
    .agents()
    .list(org_name)

// Get agent
client
    .agents()
    .get(org_name, agent_id)

License

Licensed under Apache License, Version 2.0

About

A Rust library for the Buildkite API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages