teleport/integrations/lib/opsgenie
Edward Dowling 3195d9bf74
Add initial opsgenie client (#23707)
* Add initial opsgenie client

* Embed opsgenie client config in client and move some helper funcs

* Fix mod and sum and call to opsgenie client buildalertbody

* Add more godocs and use vendored teleport plugins lib

* Rename opsgenie client and config to prevent repetition

* Fix struct tag in opsgenie alertbody

* Fix misleading comment

* Add tests to opsgenie client to check note bodies are formatted

* Wrap errs with more descriptive types

* Close response bodies and fix error handling

* Add missing godoc and fix defer and return order

* Add missing godocs to opsgenie types

* Change opsgenie client test to not depend on json indent etc

* Add example of api url to godoc

* Undo unnecessary mod and sum changes

* Fix go sum

* Move opsgenie client code to integrations/lib

* Fix typos
2023-04-19 15:56:24 +00:00
..
client.go Add initial opsgenie client (#23707) 2023-04-19 15:56:24 +00:00
client_test.go Add initial opsgenie client (#23707) 2023-04-19 15:56:24 +00:00
plugindata.go Add initial opsgenie client (#23707) 2023-04-19 15:56:24 +00:00
types.go Add initial opsgenie client (#23707) 2023-04-19 15:56:24 +00:00