package
3.0.1+incompatible
Repository: https://github.com/cloud-foundations/dominator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CompareFile will read and compare the content of a file and buffer and will return true if the contents are the same else false.
CompareFiles will read and compare the content of two files and return true if they are the same else false.
No description provided by the author
CopyToFile will create a new file, write length bytes from reader to the file and then atomically renames the file to destFilename.
CopyTree will copy a directory tree.
CopyTreeWithCopyFunc is similar to CopyTree except it uses a specified copy function for copying regular files.
CreateRenamingWriter will create a temporary file for writing and will rename the temporary file to filename in the Close method if there are no write errors.
Fallocate will allocate blocks for the file named filename, up to size specified in bytes.
ForceLink creates newname as a hard link to the oldname file.
ForceRemove removes the named file or directory.
ForceRemoveAll removes path and any children it contains.
ForceRename renames (moves) a file.
FsyncFile will call file.Sync if it has not been called recently.
LoadLines will open a file and read lines from it.
LoopbackDelete will disassociate (delete) a loopback block device from its backing file.
LoopbackSetup will associate a loopback block device with a regular file named filename.
MakeMutable attempts to remove the "immutable" and "append-only" ext2 file-system attributes for one or more files.
No description provided by the author
No description provided by the author
ReadDirnames will open the directory named dirname and will read the entries in that directory.
ReadLines will read lines from a reader.
UpdateFile will read and compare the contents of a file and buffer and will update the file if different.
WaitFile waits for the file given by pathname to become available to read and yields a io.ReadCloser when available, or an error if the timeout is exceeded or an error (other than file not existing) is encountered.
WatchFile watches the file given by pathname and yields a new io.ReadCloser when a new inode is found and it is a regular file.
WatchFileStop stops all file watching and cleans up resources that would otherwise persist across syscall.Exec.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
RenamingWriter is similar to a writable os.File, except that it attempts to ensure data integrity.