Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareTempRoot ¶ added in v1.10.0
PrepareTempRoot gives the process an empty directory at root for its temporary files. Anything a previous process left in root, because it exited without running its deferred cleanup, is moved aside first. It returns the paths that hold leftovers, including those a previous purge did not finish, so that the caller can remove them with PurgeTempRoots. It must be called before the reconcilers start.
func PurgeTempRoots ¶ added in v1.10.0
PurgeTempRoots removes the given paths. A directory is emptied one entry at a time, so that ctx is honoured between entries, and then removed. Every removed path is logged at info level and every failure at error level. It stops as soon as ctx is done and returns the number of paths that were removed. Paths it did not remove are picked up by PrepareTempRoot on the next start.
func TempDirForObj ¶ added in v0.22.0
TempDirForObj creates a new temporary directory in the directory dir in the format of 'Kind-Namespace-Name-*', and returns the pathname of the new directory.
Types ¶
This section is empty.