package
0.0.1
Repository: https://github.com/zzylol/victoriametrics.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

IsDirOrSymlink returns true if de is directory or symlink.
IsPathExist returns whether the given path exists.
IsScheduledForRemoval returns true if the filename contains .must-remove.
IsTemporaryFileName returns true if fn matches temporary file name pattern from MustWriteAtomic.
MustClose must close the given file f.
MustCopyDirectory copies all the files in srcPath to dstPath.
MustCopyFile copies the file from srcPath to dstPath.
MustCreateFlockFile creates FlockFilename file in the directory dir and returns the handler to the file.
MustFileSize returns file size for the given path.
MustGetFreeSpace returns free space for the given directory path.
MustHardLinkFiles makes hard links for all the files from srcDir in dstDir.
MustMkdirFailIfExist creates the given path dir if it isn't exist.
MustMkdirIfNotExist creates the given path dir if it isn't exist.
MustOpenReaderAt opens ReaderAt for reading from the file located at path.
MustReadData reads len(data) bytes from r.
MustReadDir reads directory entries at the given dir.
MustRemoveAll removes path with all the contents.
MustRemoveDirAtomic removes the given dir atomically.
MustRemoveTemporaryDirs removes all the subdirectories with ".must-remove.<XYZ>" suffix.
MustStopDirRemover must be called in the end of graceful shutdown in order to wait for removing the remaining directories from removeDirConcurrencyCh.
MustSymlinkRelative creates relative symlink for srcPath in dstPath.
MustSyncPath syncs contents of the given path.
MustWriteAtomic atomically writes data to the given file path.
MustWriteData writes data to w.
MustWriteSync writes data to the file at path and then calls fsync on the created file.
NewReaderAt returns ReaderAt for reading from f.
RemoveDirContents removes all the contents of the given dir if it exists.

# Constants

FlockFilename is the filename for the file created by MustCreateFlockFile().

# Structs

ReaderAt implements rand-access reader.

# Interfaces

MustReadAtCloser is rand-access read interface.