Vishal Shah
f4ba381575
feat(bearer_request): support GET as auth-method + make 'service' and 'scope' optional arguments to auth request
2018-12-26 14:49:48 -05:00
slene
3930d43896
fix time.strptime thread safe problem
2018-09-13 17:41:44 +08:00
xificurC
c2e3aab5f0
adds tests for --images-like
...
Registry.create gets indirected into Registry._create in order to simply mock
out the create call in main_loop.
2018-08-28 16:47:10 +02:00
xificurC
ca6e6af25f
use ThreadPools to speed up searching and deleting
2018-08-16 16:08:11 +02:00
xificurC
28c3080871
adds --images-like - select images with regexp
2018-08-16 16:07:37 +02:00
Eric Ball
c6fe2d592e
Add keep_by_hours option
...
To be more adaptive to user needs, keep_by_hours option works as the
inverse of the "delete_by_hours" option. "keep_by_hours" will keep
any tag newer than the specified number of hours.
2018-06-05 19:47:36 -07:00
Andrey Pohilko
42848d911d
refactor error explanation and tests for it
2018-06-01 21:29:57 +06:00
Andrey Pohilko
e0c4b1cff2
add explanation of some errors
2018-06-01 20:23:52 +06:00
Andrey Pohilko
55b9914df7
fix broken assignment
2018-06-01 19:39:28 +06:00
Andrey Pohilko
d3a899e58d
to support Nexus registry, add digest method flag
2018-05-31 15:13:04 +06:00
Andrey Pohilko
8e6fc93d4e
fix indents
2018-05-31 14:23:29 +06:00
Garrick James
f9edd90d19
add -w option
...
Providing passwords via command line is insecure. Adding an option to read
the password from the TTY or stdin. When reading from a TTY, getpass() is
used so that the password is not displayed as it is entered. Getpass()
also displays a prompt, since TTY usage is typically interactive. When
reading from something other than a TTY (e.g. from a pipe or input
redirection), a plain read from stdin is done (without getpass(); without
any promting). This allows the user to pipe the password from some type of
password management/entry tool to registry.py.
2018-05-04 23:50:05 -07:00
pavel-mikhalchuk
401555d25c
Proper handling of --no-validate-ssl argument
...
Currently even if --no-validate-ssl is specified registry.py script fails with certificate verification error. This commit fixes this issue.
Fixes: https://github.com/andrey-pohilko/registry-cli/issues/44
2018-04-28 13:17:08 +03:00
Дмитрий Есарев
7de41084ca
refactor to fix original tests
2018-02-26 18:41:07 +05:00
Дмитрий Есарев
9e0bdf3698
add bearer auth scheme support
2018-02-21 20:38:20 +05:00
Ivan Pavlushin
e307c2fd2e
core-329 add images delete by age in hours
2018-01-09 13:04:47 +03:00
Robert Pofuk
c883bba4e0
Update registry.py
...
Fix tags acculated for all images
2017-08-23 08:59:23 +02:00
Nimrod Zimerman
927253854b
Prevent deletion of a manifest that is used by a tag that isn't deleted
2017-06-07 18:44:15 +03:00
John Papandriopoulos
4ad6c3bdfb
Use /usr/bin/env to find the right python to run
2017-05-22 16:10:38 -07:00
Ondřej Bárta
fb5c21398d
Fix py3
2017-04-28 09:16:27 +02:00
Andrey Pohilko
dcb8344805
added tests of delete_tags function
2017-04-27 17:52:50 +06:00
Andrey Pohilko
151a835e3c
more tests
2017-04-26 21:13:30 +06:00
Andrey Pohilko
ae9c7b79c8
fixed issue #15 , added tests of tags_like arg
2017-04-26 13:44:13 +06:00
Andrey Pohilko
e565f97df0
fixed issue which probably caused the TypeError
2017-02-16 15:55:15 +06:00
Andrey Pohilko
098b20a102
small refactorings
2017-02-11 10:34:46 +06:00
Andrey Pohilko
657464d477
username and password can be quoted (double or single)
2017-02-11 08:56:07 +06:00
Andrey Pohilko
f374ecf0f1
password can contain colons
2017-02-11 08:44:05 +06:00
Andrey Pohilko
2c632c9086
added tests, made few changes in registry.py
2017-02-10 19:46:11 +06:00
Thomas Meyer
b718065e38
sort tags before keeping last versions
2017-02-08 16:26:50 +01:00
Andrey Pohilko
eaca8bf1df
fixed issue #8 (-d causes type error)
2017-02-08 15:49:07 +06:00
Bernd Juchems
b742ba89fe
* added "no-validate-ssl" parameter to disable ssl verification messages for self signed certificates
...
* reworked tag selection routine
** "tags-like" parameter adds regexp like filtering
** "keep-tags" parameter specifies tag names that are to keep, regardless of selection
** "keep-tags-like" dito, but regexp based
The keep tags routine works by comparing needed manifest digests - they are read and compared before deleting a manifest.
2017-01-09 18:19:15 +01:00
Olivier Doucet
9f01af29b6
Make script Python 2.6 compatible
2016-12-18 14:50:14 +01:00
Andreas de Pretis
8e7626c5dd
Support --layers for schemaVersion 1 images
2016-11-23 21:57:58 +01:00
Andrey Pohilko
d7411cb689
--login is now optional, ctrl-c caught
2016-10-26 17:49:26 +06:00
Andrey Pohilko
48f3419a14
disabled deletion of layers
2016-10-16 11:35:24 +06:00
Olivier Bazoud
78118e6a2e
Remove unused variable keep_last_versions
2016-10-15 18:27:03 +02:00
Andrey Pohilko
633f349fd5
return False if dry-run is set
2016-10-15 12:00:20 +06:00
Andrey Pohilko
6635100732
new file
2016-10-15 11:11:26 +06:00