Граф коммитов

168 Коммитов

Автор SHA1 Сообщение Дата
Chris Crone de0b456a62 gomod: Update dependencies
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-23 10:46:22 +01:00
Chris Crone a98489ae92 gomod: Remove unneeded dependency
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-20 15:59:06 +01:00
Silvin Lubecki d7485c3fa9
Merge pull request #129 from docker/feat-rate-limiting
Implement `hub-tool account rate-limiting`
2020-11-20 15:42:27 +01:00
Djordje Lukic e19cb23204 Implement `hub-tool account rate-limiting`
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 15:39:15 +01:00
Chris Crone 5c39f4672e
Merge pull request #132 from docker/login-prompt
Prompt if username is empty on login
2020-11-20 15:20:43 +01:00
Silvin Lubecki cfe11a4a1d
Merge pull request #131 from docker/colors
Correct input colors
2020-11-20 15:13:54 +01:00
Chris Crone 946378c566 commands: Correct input colors
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-20 15:05:54 +01:00
Chris Crone 932cb83f18 login: Prompt if username is empty
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-20 15:02:32 +01:00
Silvin Lubecki 2f39b6ebb3
Merge pull request #123 from docker/feat-logout
Implement logout
2020-11-20 11:21:30 +01:00
Djordje Lukic f43c559177 Return an error if the keys are not in the store any more
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-20 11:11:13 +01:00
Djordje Lukic 3992cd107d Use streams for writing
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-19 12:38:30 +01:00
Djordje Lukic 31098d16d9 Implement logout
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-19 11:20:46 +01:00
Djordje Lukic a474609122
Merge pull request #126 from docker/feat-only-ask-2fa-code
2FA token expired
2020-11-19 11:20:19 +01:00
Djordje Lukic 7f88de944e Make 2FA code input cancellable
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-19 11:01:56 +01:00
Chris Crone f5744b9e39
Merge pull request #125 from docker/bump-deps
Bump Golang and linter
2020-11-19 10:57:06 +01:00
Chris Crone 7e1f33e49a deps: Bump Golang, linter
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-19 10:51:30 +01:00
Djordje Lukic 0955eb0c95 Store the user password so that we can only ask for the 2fa code when the token expires
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-19 10:51:09 +01:00
Silvin Lubecki 85dc8ebeaf
Merge pull request #120 from docker/2fa
2fa
2020-11-18 18:15:35 +01:00
Silvin Lubecki cef93be958 Implement 2FA
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>

Use credentials helper to store auth configuration

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>

Remove useless auth resolver

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>

Use docker.Streams instead of the cli

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>

Make account info and all PAT commands sudo (require login)

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-11-18 18:07:41 +01:00
Chris Crone bb946e0aa3
Merge pull request #119 from docker/rm-improvements
Tag and repo rm improvements
2020-11-18 14:29:38 +01:00
Chris Crone a57acd5db5 tag,repo.rm: UX improvements
* Don't block on repo rm
* Only require y/n input for removing a tag
* Add warning message

Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-17 17:51:23 +01:00
Chris Crone 4e52218509
Merge pull request #118 from docker/logger
Add logging to Hub client
2020-11-13 10:56:15 +01:00
Chris Crone df9101957f Add verbose option and Hub client logging
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-13 10:22:38 +01:00
Chris Crone 426d37fe87
Merge pull request #117 from docker/error-handling
Improve error message from server
2020-11-12 18:32:37 +01:00
Chris Crone f4f7e42eeb client: Improve error handling
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-12 18:26:25 +01:00
Chris Crone af35f75404
Merge pull request #116 from docker/respect-sigint
Handle ctrl+C in tag rm prompt
2020-11-12 18:04:53 +01:00
Chris Crone 59240c977f tag.rm: Stop reading user input on signal
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-12 18:01:29 +01:00
Silvin Lubecki 8aa91a94ca
Merge pull request #115 from docker/better-403
Return server message on bad status
2020-11-12 16:06:02 +01:00
Silvin Lubecki 64f6152f0c
Merge pull request #114 from docker/bump-deps
Bump Go, Alpine, golangci-lint, gotestsum
2020-11-12 15:54:37 +01:00
Chris Crone fd44d266ac client: Return server message on bad status
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-12 15:51:08 +01:00
Chris Crone 45df5f50d3 deps: Bump Go, Alpine, golangci-lint, gotestsum
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-12 15:43:20 +01:00
Silvin Lubecki 6d3b114558
Merge pull request #113 from docker/rm-latest-tag
Assume latest if no tag specified on tag rm
2020-11-12 15:42:37 +01:00
Chris Crone 0f1ff8f99a tag.rm: Assume latest if no tag specified
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-11-06 17:06:28 +01:00
Silvin Lubecki e603ffd985
Merge pull request #108 from docker/fix-docker-api-url-env
Fix typo on env vars
2020-11-06 15:12:59 +01:00
Silvin Lubecki 4dc240141e
Merge pull request #109 from docker/fix-make-install
Fix make install target
2020-11-06 15:08:15 +01:00
Silvin Lubecki 8e77ceb6aa Fix typo, we should have 2 different env vars: DOCKER_REGISTRY_URL and DOCKER_HUB_API_URL
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-11-06 15:07:43 +01:00
Silvin Lubecki 6d8743ca76
Merge pull request #105 from docker/chore-bump-page-size
Bump items per page from 25 to 100
2020-11-06 14:37:00 +01:00
Silvin Lubecki f85027e6fd Fix make install target
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
2020-11-06 14:35:16 +01:00
Silvin Lubecki cf3f87f600
Merge pull request #107 from ingshtrom/correct-registry-hostname
registry-1.docker.io is the canonical registry hostname
2020-10-28 16:31:01 +01:00
Alex Hokanson c0bb26e69c
registry-1.docker.io is the canonical registry hostname
Signed-off-by: Alex Hokanson <571756+ingshtrom@users.noreply.github.com>
2020-10-28 10:12:31 -04:00
Djordje Lukic c086e067e8 Bump items per page from 25 to 100
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-28 11:39:26 +01:00
Silvin Lubecki f21a52b214
Merge pull request #99 from docker/feat-remove-expires
Remove the expires column
2020-10-27 11:53:15 +01:00
Silvin Lubecki 576ccc3334
Merge pull request #101 from docker/feat-rename-token-revoke
Rename `token revoke` to `token rm`
2020-10-27 11:51:57 +01:00
Silvin Lubecki 0de391e082
Merge pull request #102 from docker/chore-token-reword
Reword the token warning
2020-10-27 11:51:18 +01:00
Silvin Lubecki 963daa422a
Merge pull request #100 from docker/fix-tag-rm
Ask for the tag name at deletion
2020-10-27 11:43:12 +01:00
Djordje Lukic 565af8f0a7 Reword the token warning
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-27 11:32:31 +01:00
Djordje Lukic 4a7a735200 Rename `token revoke` to `token rm`
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-27 11:30:11 +01:00
Djordje Lukic 8da3fa6739 Ask for the tag name at deletion
And not the repository name

Fixes #60

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-27 11:24:46 +01:00
Djordje Lukic f03b96ea1e Remove the expires column
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-10-27 10:57:05 +01:00
Silvin Lubecki a33ee42f78
Merge pull request #95 from docker/forece-shorthand
Add shorthand -f for all --force
2020-10-26 17:06:31 +01:00