circleci-runner-go-sdk

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: CC0-1.0

README

circleci-runner-go-sdk

(Unofficial) Go SDK for CircleCI Runner API

The code here is auto-generated via go-swagger and the openapi.yaml (Swagger 2.0) API definition.

# Assumes you have go-swagger installed outside of this project.
# See https://goswagger.io/install.html#installing-from-binary-distributions
$ swagger generate client -f ./openapi.yaml -A circleci

$ go mod tidy

Validating

# (optional) install swagger-cli
# see https://apitools.dev/swagger-cli/
$ npm install -g @apidevtools/swagger-cli

$ swagger-cli validate ./openapi.yaml

Notes

This is separate from https://github.com/kelvintaywl/circleci-go-sdk.

The reasons being:

  1. Runner APIs used here are not public / official on CircleCI Docs yet.
  2. (for CircleCI Cloud) Runner APIs are run against https://runner.circleci.com, not https://circleci.com

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL