Commit Graph

260 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
1717f2f42a Add known limitations section in the Readme to the TOC 2019-09-02 00:17:53 -04:00
Juan Carlos Mejías Rodríguez
d06d1dd3f0 Add mission and vision sections to Readme 2019-09-01 23:56:56 -04:00
Juan Carlos Mejías Rodríguez
9fc71f808a Add known Docker proxy limitations section to Readme 2019-09-01 23:56:56 -04:00
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
be6aa497d8
Add Bash version Docker image note to Readme 2019-08-30 16:48:29 -04:00
Juan Carlos Mejías Rodríguez
1ab06d66a4
Merge pull request #30 from greenled/docker-proxy
Docker proxy
2019-08-30 16:34:42 -04:00
Juan Carlos Mejías Rodríguez
2c04b82794 Merge branch 'master' into docker-proxy 2019-08-26 23:35:34 -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
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
dca719a15e Add endpoint's Docker API proxy section to Readme 2019-08-23 10:35:16 -04:00
Juan Carlos Mejías Rodríguez
0014a39265 Add Docker image envvars for proxy command 2019-08-23 03:02:55 -04:00
Juan Carlos Mejías Rodríguez
84374e6ba4 Add proxy command to start a proxy to an endpoint's Docker API 2019-08-23 03:02:55 -04:00
Juan Carlos Mejías Rodríguez
6c45c77466 Add function in Portainer client to proxy a request to Docker API 2019-08-23 03:02:55 -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