buildkite/go-buildkite

Name: go-buildkite

Owner: Buildkite

Description: A Go library for the Buildkite API

Created: 2015-04-04 03:25:46.0

Updated: 2018-05-21 15:12:28.0

Pushed: 2018-05-17 07:27:45.0

Homepage: https://github.com/buildkite/go-buildkite

Size: 80

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

buildkite-go GoDoc Build status

A Go library and client for the Buildkite API. This project draws a lot of it's structure and testing methods from go-github.

Usage

To get the package, execute:

et github.com/buildkite/go-buildkite/buildkite

Simple shortened example for listing all pipelines is provided below, see examples for more.

rt (
"github.com/buildkite/go-buildkite/buildkite"



ig, err := buildkite.NewTokenConfig(*apiToken)

rr != nil {
log.Fatalf("client config failed: %s", err)


nt := buildkite.NewClient(config.Client())

lines, _, err := client.Pipelines.List(*org, nil)

Note: not everything in the API is present here just yet?if you need something please make an issue or submit a pull request.

License

This library is distributed under the BSD-style license found in the LICENSE file.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.