Commit Graph

249 Commits

Author SHA1 Message Date
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
a98dbfdda2 Enhance tests for Portainer client user authentication 2019-08-26 09:11:17 -04:00
Juan Carlos Mejías Rodríguez
1efa02abf3 Add username and password to PortainerClient.AuthenticateUser() 2019-08-26 09:11:17 -04:00
Juan Carlos Mejías Rodríguez
854db31543 Merge branch 'refactoring' 2019-08-26 09:11:04 -04:00
Juan Carlos Mejías Rodríguez
22dc5e5d75 Rename PortainerClient.Auth() to AuthenticateUser() 2019-08-26 09:10:28 -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
f745392e41 Rename client/portainerTypes.go to types.go 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
d17b9eb9f5 Add options object for PortainerClient.StackUpdate() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
17b941d108 Add options object for PortainerClient.StackCreateCompose() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
768410ce20 Add options object for PortainerClient.StackCreateSwarm() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
26a3efdd3a Add options object for PortainerClient.StackList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
f38481b008 Rename PortainerClient.GetStatus() to Status() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
aa606782af Rename PortainerClient.GetEndpointDockerInfo() to EndpointDockerInfo() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
636757e289 Rename PortainerClient.GetStackFileContent() to StackFileInspect() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
0b946ac0ec Rename PortainerClient.DeleteStack() to StackDelete() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
ea63f26ee0 Rename PortainerClient.UpdateStack() to StackUpdate() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
00b7daae73 Rename PortainerClient.CreateSwarmStack() to StackCreateSwarm() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
87ba553153 Rename PortainerClient.GetStacks() to StackList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
623788b624 Rename PortainerClient.GetEndpointGroups() to EndpointGroupList() 2019-08-26 09:10:28 -04:00
Juan Carlos Mejías Rodríguez
0adb18bc8a Rename PortainerClient.GetEndpoints() to EndpointList() 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
5c9de76d5f Merge branch 'refactoring-and-tests' 2019-08-25 00:15:43 -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
7fb7710c55 Remove condition of requestBody being not nil to set user agent 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
f82f116e1b Change GetTranslatedStackType to use StackType instead of Stack 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
c0cc50c81a Add unit test for client/portainerTypes.go 2019-08-25 00:14:53 -04:00
Juan Carlos Mejías Rodríguez
3194260c05 Remove else statement with single return sentence 2019-08-23 13:14:49 -04:00
Juan Carlos Mejías Rodríguez
161fc48b5a Add comments to exported types to pass go-lint 2019-08-23 13:12: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
c6b7c2ce25 Update stack deploy output example in the Readme
"endpoint" field contains endpoint name now, not endpoint id.
2019-08-23 11:21:21 -04:00
Juan Carlos Mejías Rodríguez
e1b4a6f436 Move "getting endpoint info..." debug message out of common.GetEndpointSwarmClusterId() 2019-08-23 11:19:42 -04:00
Juan Carlos Mejías Rodríguez
0be0262fcb Add support for Azure and Edge Agent endpoint types 2019-08-17 19:13:13 -04:00
Juan Carlos Mejías Rodríguez
3c409ca3f3 Update usage section in commands to use <> for args 2019-08-17 17:20:31 -04:00
Juan Carlos Mejías Rodríguez
b1d9b4b857 Fix command examples indentation 2019-08-17 17:18:44 -04:00
Juan Carlos Mejías Rodríguez
ba0071a73a Update completion command documentation 2019-08-17 17:10:48 -04:00
Juan Carlos Mejías Rodríguez
6939361670 Add endpoint group inspect command to inspect an endpoint group 2019-08-17 17:03:07 -04:00
Juan Carlos Mejías Rodríguez
b4f6dd7476 Add function to get endpoint group by name 2019-08-17 16:37:41 -04:00
Juan Carlos Mejías Rodríguez
d2030e6bfb Add endpoint inspect command to inspect an endpoint 2019-08-17 16:29:39 -04:00
Juan Carlos Mejías Rodríguez
6782318c60 Add stack inspect command to inspect a stack 2019-08-17 16:27:59 -04:00
Juan Carlos Mejías Rodríguez
d2e1327407 Add exit statuses section to Readme 2019-08-17 16:09:02 -04:00
Juan Carlos Mejías Rodríguez
3915fa6b92 Add json format to logs 2019-08-17 16:08:57 -04:00
Juan Carlos Mejías Rodríguez
3dec0205a6 Remove copyright header from cmd/endpointList.go 2019-08-17 12:36:05 -04:00
Juan Carlos Mejías Rodríguez
d921dd0ba6 Add issue templates 2019-08-17 02:05:37 -04:00
Juan Carlos Mejías Rodríguez
115754a061 Fix 0.1.1 release url 2019-08-17 01:42:31 -04:00
Juan Carlos Mejías Rodríguez
999f1f5c4e Update installation section in Readme 2019-08-17 01:15:54 -04:00