1
0
mirror of https://github.com/regclient/regclient.git synced 2025-09-19 18:41:33 +03:00

19 Commits

Author SHA1 Message Date
Brandon Mitchell
7a2a05efb5 Feat: Support incomplete subject descriptor
While the descriptor requires a size and media type, the referrer API does not.
This makes regclient more tolerant of non-conformant implementations.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-12-10 15:23:21 -05:00
Brandon Mitchell
763599514d Feat: Include source in referrers response
This simplifies handling external sources.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-12-03 17:12:10 -05:00
Brandon Mitchell
a8a9640fec Feat: Support referrers in an external repository
This allows organizations to maintain a repository of referrers separate from the upstream images.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-11-29 15:42:44 -05:00
Brandon Mitchell
5e05f50a3c Refactor pulling a platform specific manifest
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2024-06-23 10:23:53 -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
68a6c083d9 Refactor ref package
- Add NewHost to parse hostname or ocidir path.
- Add IsSet method to verify reference is fully defined.
- Add SetDigest and SetTag methods to create a new Ref.
- Update other packages to use new methods.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-11-06 19:05:29 -05: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
4be94a17f1 Add referrers support to regsync
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-02-20 20:04:20 -05:00
Brandon Mitchell
56b90d491f Adding regctl artifact tree
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-02-14 20:18:01 -05:00
Brandon Mitchell
3aa1771583 Adding platform option to artifact commands
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-02-07 20:51:08 -05:00
Brandon Mitchell
f989bbc0d6 Rename refers to subject
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-09-17 17:07:32 -04:00
Brandon Mitchell
db025b75d0 Refactoring referrers support
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-08-21 20:04:26 -04:00
Brandon Mitchell
13997d38d1 Add filtering for artifact referrers
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-07-29 15:25:53 -04:00
Brandon Mitchell
008998b399 Updating referrer to latest OCI WG design
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-07-28 20:22:38 -04:00
Brandon Mitchell
06a7b6a816 Deprecating redundant methods
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-06-26 20:00:47 -04:00
Brandon Mitchell
8674aa5c67 Track tags used by refers
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-06-12 12:05:54 -04:00
Brandon Mitchell
426c3d6fde Refers field needs to be a pointer for "omitempty"
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-05-30 08:44:53 -04:00
Brandon Mitchell
69ac6686ea Experimental support for artifact manifest type
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-05-21 16:39:17 -04:00
Brandon Mitchell
6fb3529adb Adding referrer support
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-05-15 19:36:59 -04:00