mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-03-12 05:35:17 -04:00
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> |
||
|---|---|---|
| .. | ||
| fake_hostutil.go | ||
| hostutil.go | ||
| hostutil_linux.go | ||
| hostutil_linux_test.go | ||
| hostutil_test.go | ||
| hostutil_unsupported.go | ||
| hostutil_windows.go | ||