Awesome Go

circleci

CategoryThird-party APIs
SubcategoryThird-party APIs
Stars0

Go client library for interacting with CircleCI's API

About circleci

go-circleci

GoDoc Circle CI Go Report Card coverage

Go library for interacting with CircleCI's API. Supports all current API endpoints allowing you do do things like:

  • Query for recent builds
  • Get build details
  • Retry builds
  • Manipulate checkout keys, environment variables, and other settings for a project

The CircleCI HTTP API response schemas are not well documented so please file an issue if you run into something that doesn't match up.

Example usage:

package main

import (
        "fmt"

        "github.com/jszwedko/go-circleci"
)

func main() {
        client := &circleci.Client{Token: "YOUR TOKEN"} // Token not required to query info for public projects

        builds, _ := client.ListRecentBuildsForProject("jszwedko", "circleci-cli", "master", "", -1, 0)

        for _, build := range builds {
                fmt.Printf("%d: %s\n", build.BuildNum, build.Status)
        }
}

For the CLI that uses this library (or to see more example usages), please see circleci-cli.

See GoDoc for API usage.

Feature requests and issues welcome!

Frequently Asked Questions

What is circleci?

circleci is a Third-party APIs library for the Go programming language. Go client library for interacting with CircleCI's API

How do I install circleci?

Install circleci with the Go module system using `go get jszwedko/go-circleci`. Check the repository for the current installation instructions.

What category does circleci belong to?

circleci is listed under Third-party APIs, specifically Third-party APIs.

← Back to Third-party APIs