Juan Carlos Mejías Rodríguez
|
3bb570b9ef
|
Add go module config
|
2019-08-09 01:42:13 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
6171228435
|
Fix typo in "Unknown configuration key" error
|
2019-08-08 15:47:23 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
1425d5b31f
|
Add Go Report Card badge
|
2019-08-08 15:45:49 -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 |
|
Juan Carlos Mejías Rodríguez
|
fe469e1154
|
Split common error printing into "Error" and message with details
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
042fde2c79
|
Add --endpoint flag to remove command
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
ba9f9b8725
|
Add extra logging when getting stack by name
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
b3f1989a25
|
Fix inconsistencies with EndpointID and SwarmID filtering
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
0c3e255bf2
|
Fix Client interface's functions comments
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
c4e2f0145f
|
Enhance flag descriptions
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
faf021e863
|
Replace debug and verbose modes with logging levels
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
7589f97105
|
Move util.NewTabWriter to common.NewTabWriter
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
1830fea7b7
|
Move PrintVerbose() calls in client to it's callers
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
955a79de6f
|
Remove printing of token after authentication
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
d058337412
|
Move PrintDebugRequest() and PrintDebugResponse() logic to client hooks declaration
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
5748d862bb
|
Move PrintDebugRequest() and PrintDebugResponse() calls in client to hooks
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
76d92c5885
|
Add "before request" and "after response" hooks to client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
356979a7a4
|
Move util.CheckError to common.CheckError
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
3989715b70
|
Change PortainerClientImp to unexported
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
27b418cb3c
|
Rename client.ClientConfig to client.Config
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
9c79379191
|
Split common package into common, client, and util packages
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
a3b58499b8
|
Add interface for Portainer client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
4f3892368e
|
Move deactivation of token usage for authentication into Authenticate()
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
cdc54111a1
|
Add flexibility to Portainer client creation
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
a0d75c8df9
|
Rename client to cachedClient
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
64619fc90f
|
Remove error return from Client.Clone()
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
0d42ed73c6
|
Enhance Portainer URL parsing in Client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
00439cc1c1
|
Delay new auth token retrieval until it is really necessary
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
04a05fad86
|
Move clientConfig declaration to the top
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
8d0fb72034
|
Fix PortainerClient.Authenticate usage of viper
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
064e7789fb
|
Add comments to Client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
5dc5f43763
|
Remove unused CheckResponseForErrors error handling helper
It's logic is now implemented into the Client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
93f08172ac
|
Rename Client.DoJson to doJson
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
70621c750c
|
Move URL handling logic (calls to DoJson) into Client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
7f048def9c
|
Remove old unused connection and authentication code
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
fa666db1b8
|
Replace manual request creation and marshaling with new client
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
1b1c2bc1d1
|
Encapsulate network communication into a Client struct
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
a22aaa20f5
|
Format code
|
2019-08-08 11:56:07 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
d770da7414
|
Enhance error printing
|
2019-07-23 22:44:29 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
6200b6c667
|
Add login command to log in to a Portainer instance
|
2019-07-23 22:12:45 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
53d26a8ac3
|
Split config setting and getting into separate functions
|
2019-07-23 21:59:08 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
143215b39f
|
Add --auth-token global flag to set the auth flag to be used with potainer
|
2019-07-23 21:57:26 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
35a0d089cb
|
Add shorthands for --url, --user, --password and --insecure flags
|
2019-07-23 21:27:38 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
44319f3655
|
Change --prune flag shorthand to -r
|
2019-07-23 21:27:38 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
3d475143c1
|
Add --keys flag to config list command to show only config keys
|
2019-07-23 21:27:34 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
1ca444a79d
|
Move config listing to new command config list
|
2019-07-23 21:27:05 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
5d723af9fd
|
Move AuthenticateUserRequest and AuthenticateUserResponse to types.go
|
2019-07-23 18:17:25 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
5664faf2dd
|
Add --list flag to config command to list all available configuration keys
|
2019-07-23 16:43:40 -04:00 |
|
Juan Carlos Mejías Rodríguez
|
0723ae0eb8
|
Add config command to get and set configuration options
|
2019-07-23 16:43:40 -04:00 |
|