kubernetes/pkg/volume/util/volumepathhandler
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
..
volume_path_handler.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
volume_path_handler_linux.go storage: stop using deprecated io/ioutil 2023-06-20 16:49:03 +02:00
volume_path_handler_linux_test.go Trim out suffix added to backing file path of loopback device 2023-01-27 10:53:00 -03:00
volume_path_handler_unsupported.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00