# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Append creates or appends the dst file or dir, filled with content from src file.
AppendAll appends data to a file named by filename.
AppendAllFrom appends data to a file named by filename from r until EOF or error.
AppendAllIfNotExist appends the named file or dir.
AppendFileAll is the generalized open call; most users will use AppendAll instead.
AppendFileAllFrom is the generalized open call; most users will use AppendFileFrom instead.
AppendTruncate truncates the original src file in place after appending or creating a copy dst, instead of moving the src file to dir and optionally creating a new one src.
AppendTruncateAll truncates the original src file in place after appending or creating a copy dst, instead of moving the src file to dir and optionally creating a new one src.
ChtimesNow changes the access and modification times of the named file with Now, similar to the Unix utime() or utimes() functions.
Copy creates or truncates the dst file or dir, filled with content from src file.
CopyAll creates or truncates the dst file or dir, filled with content from src file.
CopyAppendAll creates or appends the dst file or dir, filled with content from src file.
CopyFile is the generalized open call; most users will use Copy or Append instead.
CopyFileAll is the generalized open call; most users will use CopyAll or AppendAll instead.
CopyRename makes a copy of the src file, but don't change the original src at all.
CopyRenameAll makes a copy of the src file, but don't change the original src at all.
CopyRenameFile is the generalized open call; most users will use CopyRename instead.
CopyRenameFileAll is the generalized open call; most users will use CopyRenameAll instead.
CopyTruncate truncates the original src file in place after creating a copy dst, instead of moving the src file to dir and optionally creating a new one src.
CopyTruncateAll truncates the original src file in place after creating a copy dst, instead of moving the src file to dir and optionally creating a new one src.
CopyTruncateFile is the generalized open call; most users will use CopyTruncate or AppendTruncate instead.
CopyTruncateFileAll is the generalized open call; most users will use CopyTruncateAll or AppendTruncateAll instead.
CreateAll creates or truncates the named file or dir.
CreateAllIfNotExist creates the named file or dir.
DiskUsage returns total and free bytes available in a directory, e.g.
No description provided by the author
LockAll creates the named file or dir.
Make creates a directory named path and returns nil, or else returns an error.
MakeAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error.
MaxSeq return max seq set by NextFile split pattern by the last wildcard "*".
MaxSeqFunc return hit seq or max seq else set by NextFile split pattern by the last wildcard "*" All errors that arise visiting files and directories are filtered by fn: see the [filepath.WalkFunc] documentation for details.
No description provided by the author
MkdirTempAll creates a new temporary directory in the directory dir and returns the pathname of the new directory.
MkdirTempDirAll is the generalized open call; most users will use MkdirTempAll instead.
No description provided by the author
No description provided by the author
No description provided by the author
NextFile creates a new file, opens the file for reading and writing, and returns the resulting *os.File.
OpenAll opens the named file or dir for reading.
OpenFileAll is the generalized open call; most users will use OpenAll or CreateAll instead.
No description provided by the author
ReadDirN reads the named directory, returning a slice of its directory entries sorted by filename.
ReLink creates or replaces newname as a hard link to the oldname file.
RemoveIfExist removes the named file or (empty) directory.
RenameAll renames (moves) oldpath to newpath.
RenameFileAll is the generalized open call; most users will use RenameAll instead.
ReSymlink creates or replace newname as a symbolic link to oldname.
SameFile reports whether fi1 and fi2 describe the same file.
TempAll creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting *os.File.
TempFileAll is the generalized open call; most users will use TempAll instead.
TouchAll creates the named file or dir.
UnlinkOldestFiles unlink old files if need.
UnlinkOldestFilesFunc unlink old files satisfying f(c) if need.
WithCacheFile sets CacheFile.
WithCacheFileBucketKeyFunc sets BucketKeyFunc in CacheFile.
WithCacheFileBucketRootDir sets BucketRootDir in CacheFile.
WithCacheFileCacheExpiredAfter sets CacheExpiredAfter in CacheFile.
WithCacheFileCacheMetaExt sets CacheMetaExt in CacheFile.
WriteAll writes data to a file named by filename.
WriteAllFrom writes data to a file named by filename from r until EOF or error.
WriteFileAll is the generalized open call; most users will use WriteAll instead.
WriteFileAllFrom is the generalized open call; most users will use WriteAllFrom instead.
WriteRenameAll writes data to a temp file and rename to the new file named by filename.
WriteRenameAllFrom writes data to a temp file from r until EOF or error, and rename to the new file named by filename.
WriteRenameFileAll is the generalized open call; most users will use WriteRenameAll instead.
WriteRenameFileAllFrom is the generalized open call; most users will use WriteRenameAllFrom instead.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RotateModeCopyRename Make a copy of the log file, but don't change the original at all.
RotateModeCopyTruncate Truncate the original log file in place after creating a copy, instead of moving the old log file and optionally creating a new one.
RotateModeNew create new rotate file directly Immediately after rotation (before the postrotate script is run) the log file is created (with the same name as the log file just rotated).
# Variables
No description provided by the author
# Structs
CacheFile is a package cache(Eventual consistency), backed by a file system directory tree.
No description provided by the author
EmptyCacheFileOption does not alter the configuration.
RotateFile logrotate reads everything about the log files it should be handling from the series of con‐ figuration files specified on the command line.
WalkFileInfo is a wrapper for sort of filepath.WalkFunc.
# Interfaces
A CacheFileOption sets options.
# Type aliases
CacheFileOptionFunc wraps a function that modifies CacheFile into an implementation of the CacheFileOption interface.
No description provided by the author
FileModeTimeDescSlice sorts filenames by mode time in decrease order.
FileModeTimeSlice sorts filenames by mode time in increase order.
RotateMode represents a way to rotate file.
No description provided by the author