Commit Graph

165 Commits

Author SHA1 Message Date
Juan Carlos Mejías Rodríguez
49367f2a11 Split config setting and getting in two new commands config set and config get 2019-08-09 19:11:14 -04:00
Juan Carlos Mejías Rodríguez
648cd6651a Add more fields, default table format and --format custom format flag to config list command 2019-08-09 19:00:49 -04:00
Juan Carlos Mejías Rodríguez
feae59a058 Remove config list --keys flag 2019-08-09 15:43:45 -04:00
Juan Carlos Mejías Rodríguez
3f788efff5 Remove commit hash uppercase in version and User-Agent strings 2019-08-09 15:17:55 -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
4c2d66e7b4 Add suggestions to FatalLevel log messages 2019-08-09 14:57:35 -04:00
Juan Carlos Mejías Rodríguez
1f78446a6f Change "unknown log level" ErrorLevel message to WarningLevel with implications 2019-08-09 14:53:20 -04:00
Juan Carlos Mejías Rodríguez
12b89062c7 Add implications to WarningLevel log messages 2019-08-09 14:51:25 -04:00
Juan Carlos Mejías Rodríguez
105178c07c Update required flag stack-file not set log message
Now it looks more like default "required flag" errors
2019-08-09 14:44:32 -04:00
Juan Carlos Mejías Rodríguez
245b84d0b4 Remove error checking helper in util/errors.go
It was previously moved to common/errors.go
2019-08-09 14:25:43 -04:00
Juan Carlos Mejías Rodríguez
2e74ac508b Fix Dockerfile environment variables 2019-08-09 14:21:11 -04:00
Juan Carlos Mejías Rodríguez
14ab4f65f9 Remove -q, --quiet flag from stack list command
The same result can be achieved with --format flag,
which provides greater flexibility:

./psu stack ls --format "{{ .Name }}"
2019-08-09 14:21:11 -04:00
Juan Carlos Mejías Rodríguez
00f4a206e4 Simplify table output column header names 2019-08-09 14:21:11 -04:00
Juan Carlos Mejías Rodríguez
aeba258ef8 Merge branch 'endpoint-groups' 2019-08-09 13:29:41 -04:00
Juan Carlos Mejías Rodríguez
1ab1333540 Add command to list endpoint groups 2019-08-09 13:29:16 -04:00
Juan Carlos Mejías Rodríguez
2261b4f6ac Add GetEndpointGroups() function to client 2019-08-09 13:17:40 -04:00
Juan Carlos Mejías Rodríguez
219adc5c76 Add EndpointGroup struct 2019-08-09 13:17:20 -04:00
Juan Carlos Mejías Rodríguez
8a7bb9e79d Remove unused fields from client.Stack struct 2019-08-09 13:06:47 -04:00
Juan Carlos Mejías Rodríguez
bf7fd60550 Remove swarm IDs from output 2019-08-09 12:55:03 -04:00
Juan Carlos Mejías Rodríguez
51ce690e1f Remove entry point and project path from stack list command output columns 2019-08-09 12:51:58 -04:00
Juan Carlos Mejías Rodríguez
2456c349d1 Add testify to the module requirements 2019-08-09 12:40:53 -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
cf9ecabc7a Replace "cluster" with "swarm" in log messages 2019-08-09 11:48:41 -04:00
Juan Carlos Mejías Rodríguez
2dc134e45d Add endpoint to stack removal related logs 2019-08-09 11:47:32 -04:00
Juan Carlos Mejías Rodríguez
ab7bc222aa Fix double stack retrieval while removing stack 2019-08-09 11:45:51 -04:00
Juan Carlos Mejías Rodríguez
d4956584a1 Add log message after stack deployment or removal 2019-08-09 11:38:59 -04:00
Juan Carlos Mejías Rodríguez
5506b625b4 Remove ShortCommit from goreleaser snapshots archive name 2019-08-09 11:15:15 -04:00
Juan Carlos Mejías Rodríguez
dd8e928698 Update version string building 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
a6a4a70996 Use + as a build metadata separator in version
Follows SemVer
2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
ea30e28261 Move version setting to goreleaser 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
535eada8ab Guess endpoint ID if not set when deploying or removing stacks 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
e7a48ccc3e Rename client to portainerClient in stack remove command to avoid collision with package name 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
2b2327939a Change base docker image to alpine:3 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d9e548f9dc Remove goreleaser snapshot name template
I prefer the default "SNAPSHOT-{{.ShortCommit}}"
2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d0956a1281 Update goreleaser project name 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
e4fc69c8b8 Add goreleaser config for GitHub releases 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
84fb17f6ea Prevent goreleaser from publishing docker images for pre-releases 2019-08-09 01:42:13 -04:00
Juan Carlos Mejías Rodríguez
d458e5d379 Replace calls to viper.GetUint32() with viper.GetInt32()
Viper doesn't have uint support until v1.4.0
2019-08-09 01:42:13 -04:00
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