Commit Graph

277 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
2ee0c6c956 Enhance Dockerfile environment variables declaration 2019-11-27 02:00:32 -05:00
Juan Carlos Mejías Rodríguez
f5854d8c30 Run go mod tidy 2019-11-27 00:20:22 -05:00
Juan Carlos Mejías Rodríguez
b1af2ca92f Update viper to v1.5.0 2019-11-27 00:18:03 -05:00
Juan Carlos Mejías Rodríguez
7474b2fd1d
Merge pull request #34 from greenled/resource-control
Resource control
2019-11-27 00:00:41 -05:00
Juan Carlos Mejías Rodríguez
08c20f9f49 Update changelog 2019-11-26 23:43:27 -05:00
Juan Carlos Mejías Rodríguez
e82631c5ef Add command to manage access to Portainer stacks 2019-11-26 23:43:27 -05:00
Juan Carlos Mejías Rodríguez
c72d160c96 Add utility function to retrieve a Portainer stack's access control (if any) 2019-11-26 23:43:27 -05:00
Juan Carlos Mejías Rodríguez
bee4e9c033 Add commands to manage access to Docker resources (containers, networks, secrets, services and volumes) 2019-11-26 23:43:27 -05:00
Juan Carlos Mejías Rodríguez
57962c0849 Add utility function to retrieve a Docker resource's Portainer access control (if any) 2019-11-26 23:43:27 -05:00
Juan Carlos Mejías Rodríguez
921248d2cf Add Portainer client methods to create/update/delete resource controls 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
eaf7d2e5cf Enhance Portainer API error handling 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
63c82efd33 Export doJSONWithToken 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
49eb081130 Add function to get user by its name 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
ca14cf6f5e Add function to portainer client to get users list 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
1674d1879c Add function to portainer client to get current user name 2019-11-26 23:27:15 -05:00
Juan Carlos Mejías Rodríguez
97f04cff31 Update bug report GitHub issue template 2019-09-02 00:25:10 -04:00
Juan Carlos Mejías Rodríguez
0f3abf25f7 Add reference to related issue in known limitations section 2019-09-02 00:18:56 -04:00
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