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

9 Commits

Author SHA1 Message Date
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
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
cf47d837b7
Refactoring the blob package
The main goal was to remove unnecessary interfaces. To avoid breaking
users, type aliases were used on the old interface names.
Comments were updated to better align with the godoc style.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2023-09-26 20:18:19 -04:00
Brandon Mitchell
b1b53a351e Removing external imports of image schemas
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-03-02 20:19:06 -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
5c2a4b5890 Blob type linting and docs
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-02-04 15:23:01 -05:00
Brandon Mitchell
1e588c18ef Blob changing from ReadCloser to Reader
Close and Seek methods are used when available.
Forcing a Closer resulted in a NoopCloser that blocked Seek.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-01-16 19:23:59 -05:00
Brandon Mitchell
4b796535cb Adjusting types to use New/Opts initializers
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2022-01-02 21:05:09 -05:00
Brandon Mitchell
218b1ccd4f Refactoring packages under types
Signed-off-by: Brandon Mitchell <git@bmitch.net>
2021-12-29 14:51:00 -05:00