-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to work correctly with V2 API #23
Conversation
dthagard
commented
Sep 3, 2016
- Overhauled the SDK to work correctly with the PagerDuty v2 API.
- Eliminated all golint warnings including adding documentation.
- Hid some methods on Client that should not be exposed.
- Changed behavior on create/update of objects to return the resultant object.
- Fixed some struct definitions so that they are serialized to JSON correctly.
- Implemented some missing methods.
- Vendored external required libraries.
* Added documentation to all exported types. * Hid some internal functions to client. * Updated Team methods to return Team interface on get/set operations. * Fixed JSON conversion for Team object. * Removed unused fields from Integration object. * Updated field names to match official documentation. * Fixed JSON conversion for OnCall object. * implemented UpdateEscalationPolicy. * Vendored third-party libraries.
…rvice. * Added ability to parse and return the error object from PagerDuty API. * Added missing RepeatEnabled to escalation_policy. * Added return of Schedule for create/update. * Added return of Service for create/update.
Please don't do this. This will cause trouble when vendoring your library into a binary project.
As an example: When my project uses (and vendors) Another example: if I'm using logrus (I saw you've vendored that one) Go has to decide whether to use the version in In the end: this will cause trouble… |
Awesome. Dan, thanks for all the hard work. As Knut mentioned, can you On Sep 3, 2016 12:38 PM, "Knut Ahlers" [email protected] wrote:
|
Yep definitely! Thank you very much for rewriting this. As far as I've seen the code this looks very good to me. 👍 |
🏆 |