moby/distribution
Sebastiaan van Stijn a3c97beee0
image: implement CheckOS, deprecate pkg/system IsOSSupported
Implement a function that returns an error to replace existing uses of
the IsOSSupported utility, where callers had to produce the error after
checking.

The IsOSSupported function was used in combination with images, so implementing
a utility in "image" to prevent having to import pkg/system (which contains many
unrelated functions)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-07 22:14:44 +02:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata distribution: format code with gofumpt 2023-06-29 00:30:52 +02:00
utils Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
xfer distribution: format code with gofumpt 2023-06-29 00:30:52 +02:00
config.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
errors.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
errors_test.go distribution: un-export internal errors and error-utilities 2022-04-21 22:53:02 +02:00
manifest.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
manifest_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
pull.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
pull_v2.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
pull_v2_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
pull_v2_unix.go Switch all logging to use containerd log pkg 2023-06-24 00:23:44 +00:00
pull_v2_windows.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
push.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
push_v2.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
push_v2_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
registry.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
registry_unit_test.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00
repository.go migrate to new github.com/distribution/reference module 2023-09-05 12:09:26 +02:00