kubernetes/pkg/volume/util/hostutil
Stephen Kitt ab75e48494
storage: stop using deprecated io/ioutil
This replaces deprecated ioutil variables and functions as follows:

* ioutil.ReadDir -> os.ReadDir
* ioutil.ReadFile -> os.ReadFile
* ioutil.TempDir -> os.MkdirTemp
* ioutil.TempFile -> os.CreateTemp
* ioutil.WriteFile -> os.WriteFile

The ReadDir conversion involves an API change, the replacement
function returns a slice of fs.DirEntry instead of fs.FileInfo.
Where appropriate, the surrounding code has been adjusted; mostly,
that means using DirEntry.Type() instead of FileInfo.Mode().
Applying this change to the IoUtil interface would mean changing its
API, so this is left for later.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-06-20 16:49:03 +02:00
..
fake_hostutil.go Flip SELinuxMountReadWriteOncePod to Beta 2023-03-14 14:32:38 +01:00
hostutil_linux_test.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
hostutil_linux.go Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
hostutil_test.go Skip failing Windows unit tests (volume) 2023-01-24 11:02:44 +02:00
hostutil_unsupported.go Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
hostutil_windows.go Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00
hostutil.go Reconstruct SELinux mount option 2022-11-08 11:17:38 +01:00