package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
Chmod is the same as os.Chmod on Unix.
IsAbs is same as filepath.IsAbs on Unix.
IsPathClean will replace slashes to Separator (which is OS-specific).
IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file.
MkdirAll is same as os.MkdirAll on Unix.
MkdirAllWithPathCheck checks if path exists already.
NewFsnotifyWatcher returns an implementation of FSWatcher that continuously listens for fsnotify events and calls the event handler as soon as an event is received.
NewTempFs returns a fake Filesystem in temporary directory, useful for unit tests.
WatchUntil watches the specified path for changes and blocks until ctx is canceled.
# Interfaces
File is an interface that we can use to mock various filesystem operations typically accessed through the File object from the "os" package.
Filesystem is an interface that we can use to mock various filesystem operations.
FSWatcher is a callback-based filesystem watcher abstraction for fsnotify.
# Type aliases
FSErrorHandler is called when a fsnotify error occurs.
FSEventHandler is called when a fsnotify event occurs.