1
0
mirror of https://github.com/regclient/regclient.git synced 2025-04-18 22:44:00 +03:00

19 Commits

Author SHA1 Message Date
Brandon Mitchell
1eb1ea4b34
Feat: Refactor logging to use log/slog
This updates the regclient Go library.
Existing users of logrus will continue to work using a logrus handler to slog.
Updates to the various commands will be made in a future commit.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-11-10 17:14:57 -05:00
Brandon Mitchell
89be757fd0
Feat: Consolidate warnings
When a registry returns a warning header on every request, clients should try to consolidate these.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-08-22 16:52:40 -04:00
Brandon Mitchell
ca18029b93
Feat: Add a priority queue for network requests
Breaking: Update scheme to use pqueue instead of throttle.

This is the first step to redesign the network requests for more efficiency.

Library users are unlikely to encounter issues with the scheme change since
both throttle and pqueue are internal packages, so it shouldn't be possible
to call their methods directly or specify their types in variables.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-08-13 15:31:29 -04:00
Brandon Mitchell
eea06e2a5c
Refactoring the type package
I feel like I need to explain, this is all to move the descriptor package.
The platform package could not use the predefined errors in types because of a circular dependency from descriptor.
The most appropriate way to reorg this is to move descriptor out of the type package since it was more complex than a self contained type.
When doing that, type aliases were needed to avoid breaking changes to existing users.
Those aliases themselves caused circular dependency loops because of the media types and errors, so those were also pulled out to separate packages.
All of the old values were aliased and deprecated, and to fix the linter, those deprecations were fixed by updating the imports... everywhere.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-03-04 15:43:18 -05:00
Brandon Mitchell
dcf0eabd36
Reducing logs on canceled image copy
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-01-04 19:05:40 -05:00
Brandon Mitchell
f5f7e77201
Add blob tests
Test for pushing blob without a descriptor, and zero length blob.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-11-22 15:59:54 -05:00
Brandon Mitchell
4c1e999343
Validate the ref in various APIs
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-11-11 19:23:58 -05:00
Brandon Mitchell
c914506022
Update Go docs for blob APIs and the config
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-10-15 16:22:53 -04:00
Brandon Mitchell
b2a7336453
Reorder Go imports to move local packages last
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-09-30 22:21:10 -04:00
Brandon Mitchell
8aeece90f8
Cleanup godoc comments on regclient package
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-09-26 11:48:51 -04:00
Brandon Mitchell
d2ca5fa5eb
Add concurrency to image copy
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-05-06 09:01:35 -04:00
Brandon Mitchell
119f30c5e8
Add terminal progress during copy
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-04-15 12:00:49 -04:00
Brandon Mitchell
c800decc9f Improve handling of external URLs
- Attempt to pull external blob from registry
- Handle blob pull to external URL
- Copy option to copy external blobs
- Mod option to remove external URLs from descriptors

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-05-07 20:24:06 -04:00
Brandon Mitchell
29a0d79421 Parse the descriptor data field when available
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-03-07 08:51:54 -05:00
Brandon Mitchell
99ee6bdc35 Updating blob methods to use descriptors
Descriptors will be useful when Data field is added.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-03-06 14:48:07 -05:00
Brandon Mitchell
5c3f85f253 Refactor blob like manifests, add SetConfig
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-02-22 21:15:03 -05:00
Brandon Mitchell
5fa181ff08 regclient linting, scheme API rename
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-02-04 15:25:14 -05:00
Brandon Mitchell
f539a23f76 Image copy on some schemes pushes manifest first
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-01-16 19:25:55 -05:00
Brandon Mitchell
1d93bf7bb6 Moving regclient package to top level
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2021-12-29 14:51:11 -05:00