Skip to content

samsarahq/go-buildkite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

go get github.com/buildkite/go-buildkite/buildkite

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

import (
    "github.com/buildkite/go-buildkite/buildkite"
)
...

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

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

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

pipelines, _, 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.

Packages

No packages published

Languages

  • Go 99.1%
  • Other 0.9%