https://github.com/ashwanthkumar/go-gocd
Go Lang library to access GoCD API.
https://github.com/ashwanthkumar/go-gocd
Last synced: 11 months ago
JSON representation
Go Lang library to access GoCD API.
- Host: GitHub
- URL: https://github.com/ashwanthkumar/go-gocd
- Owner: ashwanthkumar
- License: apache-2.0
- Created: 2016-02-20T18:11:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T10:48:20.000Z (about 2 years ago)
- Last Synced: 2025-04-11T18:56:01.261Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 69.3 KB
- Stars: 5
- Watchers: 2
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://snap-ci.com/ashwanthkumar/go-gocd/branch/master) [](https://godoc.org/github.com/ashwanthkumar/go-gocd)
# go-gocd
Go Lang library to access [GoCD API](https://api.go.cd/current/).
## Usage
```go
package main
import (
"github.com/ashwanthkumar/go-gocd"
)
func main() {
client := gocd.New("http://localhost:8153", "admin", "badger")
agents, err := client.GetAllAgents()
// ... do whatever you want with the agents
}
```
## API Endpoints Pending
- [x] Agents
- [x] Get all Agents
- [x] Get one Agent
- [x] Update an Agent
- [x] Disable Agent
- [x] Delete an Agent
- [x] Agent job run history
- [ ] Users
- [ ] Get all Users
- [ ] Get one user
- [ ] Create a user
- [ ] Update a user
- [ ] Delete a user
- [ ] Materials
- [ ] Get all Materials
- [ ] Get material modifications
- [ ] Notify SVN materials
- [ ] Notify git materials
- [ ] Backups
- [ ] Create a backup
- [ ] Pipeline Group
- [ ] Config listing
- [ ] Artifacts
- [ ] Get all Artifacts
- [ ] Get artifact file
- [ ] Get artifact directory
- [ ] Create artifact
- [ ] Append to artifact
- [ ] Pipelines
- [X] Get pipeline instance
- [X] Get pipeline status
- [X] Pause a pipeline
- [X] Unpause a pipeline
- [X] Releasing a pipeline lock
- [ ] Scheduling pipelines
- [ ] Create a pipeline
- [ ] Delete a pipeline
- [ ] Stages
- [ ] Cancel Stage
- [ ] Get Stage instance
- [ ] Get stage history
- [x] Jobs
- [x] Get Scheduled Jobs
- [x] Get Job history
- [ ] Properties
- [ ] Get all job Properties
- [ ] Get one property
- [ ] Get historical properties
- [ ] Create property
- [ ] Configurations
- [ ] List all modifications
- [ ] Get repository modification diff
- [ ] Get Configuration
- Create pipeline (Deprecated API)
- Feeds (will not support)
- [ ] Dashboard
- [ ] Get Dashboard
- [ ] Pipeline Config
- [ ] Get pipeline Configuration
- [ ] Edit Pipeline configuration
- [ ] Create Pipeline
- [ ] Environment Config
- [x] Get all environments
- [x] Get environment config
- [ ] Create an environment
- [ ] Update an environment
- [ ] Patch an environment
- [ ] Delete an environment