moby/pkg/system
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
..
args_windows.go Windows: (WCOW) Generate OCI spec that remote runtime can escape 2019-03-12 18:41:55 -07:00
chtimes.go pkg/system: rename maxTime and re-use, define unixEpochTime, update GoDoc 2022-10-07 18:34:44 +02:00
chtimes_linux_test.go pkg/system: fix missing assertions and use sub-tests for ChTimes 2022-10-07 22:57:01 +02:00
chtimes_nowindows.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
chtimes_test.go pkg/system: fix missing assertions and use sub-tests for ChTimes 2022-10-07 22:57:01 +02:00
chtimes_windows.go pkg/system: windows: setCTime(): remove redundant conversion 2022-10-07 18:34:44 +02:00
chtimes_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
errors.go pkg/system: move ErrNotSupportedOperatingSystem to where it's used 2023-09-07 22:04:33 +02:00
filesys.go pkg/system: make IsAbs() platform-agnostic 2022-08-27 15:11:27 +02:00
filesys_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
filesys_windows.go pkg/system: synchronize mkdirall() with latest os.MkDirAll() 2022-10-15 13:24:43 +02:00
image_os_deprecated.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
init_windows.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
lstat_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
lstat_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
lstat_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
mknod.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
mknod_freebsd.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
mknod_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_bsd.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_darwin.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_linux.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_openbsd.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
stat_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
stat_windows.go pkg/system: format code with gofumpt 2023-06-29 00:26:02 +02:00
utimes_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
utimes_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
utimes_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
xattrs_linux.go pkg/system: return rich errors from L(g|s)etxattr 2023-05-18 16:31:01 -04:00
xattrs_unsupported.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00