Commit Graph

15 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
16517713ac Move response errors checking from portainerClientImp.do() to doJSON() 2019-09-01 23:56:55 -04:00
Juan Carlos Mejías Rodríguez
2fe292bb64 Add tests for portainerClientImp.doJSONWithToken() 2019-08-26 22:56:15 -04:00
Juan Carlos Mejías Rodríguez
fa0071883d Add tests for portainerClientImp.doJSON() 2019-08-26 09:11:17 -04:00
Juan Carlos Mejías Rodríguez
5d95af3681 Split Portainer client source file into several function-related ones 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
53b13b1c76 Rename PortainerClient.Authenticate() to Auth() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
1c3a1c665e Add unit tests for checkResponseForErrors() 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
a8bed6a7cc Rename request and reponse to requestBody and responseBody 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
19f58c4e1f Move Content-Type header setting to doJSON() in Portainer client 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
14043a8bf8 Refactor auth token setting in Portainer client 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
2cc0faa625 Add unit tests for portainerClientImpl.do() 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
be51da44bf Rename some identifiers to pass go-lint 2019-08-23 12:35:01 -04:00
Juan Carlos Mejías Rodríguez
cf823f9dcf Add custom User-Agent to API requests 2019-08-09 15:16:12 -04:00
Juan Carlos Mejías Rodríguez
7fcdd73066 Move Portainer API URL parsing outside the client 2019-08-09 12:39:40 -04:00
Juan Carlos Mejías Rodríguez
0f0eaa7c3f Add tests for client.NewClient() 2019-08-08 11:56:07 -04:00
Juan Carlos Mejías Rodríguez
a7bfa6e0b0 Add tests for Client.Authenticate() 2019-08-08 11:56:07 -04:00