commit | 49252c3eb9cae51514d1b1bfcdb726b62c9bdaf5 | [log] [tgz] |
---|---|---|
author | Scott Ganyo <scott@ganyo.com> | Tue Nov 01 14:17:03 2016 -0700 |
committer | Scott Ganyo <scott@ganyo.com> | Tue Nov 01 14:17:03 2016 -0700 |
tree | 588a65dffb0f1087aceec211a455565aaf06db83 | |
parent | 18f11889deb68496106dd400dfd608ae17b4466c [diff] |
remove authCode (scope should suffice), add org and env to bundles.
This core plugin for apid responds to apidApigeeSync events and publishes an API that allows clients to deploy and update a locally configured gateway.
This plugin simply tracks counters based on called URIs:
GET /deployments/current
- retrieve current deploymentPOST /deployments/{id}
- update specified deploymentFirst, install prerequisites:
glide install
To run an apid test instance with just this plugin installed, change to the cmd/apidGatewayDeploy
folder. From here, you may create an executable with:
go build
Alternatively, you may run without creating an executable with:
go run main.go
Command line options:
If you use the -manifest
option, the server will start using a clean database that contains only the deployment manifest specified.
Once the process is running, you should be able to manually give the plugin's API a whirl...
curl -i localhost:9000/deployments/current curl -i -X POST localhost:9000/deployments/entityId -d '{ "status": "SUCCESS" }'
The following may be interesting env vars for configuration:
To run the tests, just run:
go test
To generate coverage, you may run:
./cover.sh
Then open cover.html
with your browser to see details.