Go Lang library to access GoCD API
package main
import (
"github.com/mhanygin/go-gocd"
)
func main() {
client := gocd.New("http://gocd.com:8153", "login", "password")
// ... do whatever you want with the client
}
## API Endpoints Pending
- Agents
- [x] Get all Agents
- [x] Get one Agent
- [x] Update an Agent
- [x] Delete an Agent
- [ ] Agent job run history
- Users
- [x] Get all Users
- [x] Get one user
- [x] Create a user
- [x] Update a user
- [x] Delete a user
- Materials
- [ ] Get all Materials
- [ ] Get material modifications
- [ ] Notify SVN materials
- [ ] Notify git materials
- Backups
- [ ] Create a backup
- Pipeline Group
- [x] Config listing
- Artifacts
- [ ] Get all Artifacts
- [ ] Get artifact file
- [ ] Get artifact directory
- [ ] Create artifact
- [ ] Append to artifact
- Pipelines
- [x] Get pipeline instance
- [ ] Get pipeline status
- [x] Pause a pipeline
- [x] Unpause a pipeline
- [ ] Releasing a pipeline lock
- [x] Scheduling Pipelines
- Stages
- [x] Cancel Stage
- [x] Get Stage instance
- [x] Get stage history
- Jobs
- [ ] Get Scheduled Jobs
- [ ] 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
- Environment Config
- [x] Get all environments
- [x] Get environment config
- [x] Create an environment
- [x] Update an environment
- [x] Delete an environment
- [ ] Dashboard
- [ ] Get Dashboard
- Pipeline Config
- [x] Get pipeline Configuration
- [x] Edit Pipeline configuration
- [x] Create Pipeline
- [x] Delete Pipeline