package
3.4.2
Repository: https://github.com/grafana/loki.git
Documentation: pkg.go.dev

# Functions

Create creates a new file at a temporary path that will be renamed to the supplied path on close from a temporary file in the same directory, ensuring all data and the containing directory have been fsynced to disk.
CreateFile safely writes the contents of data to filePath, ensuring that all data has been fsynced as well as the containing directory of the file.

# Structs

File is a wrapper around an os.File instance that uses a temporary file for writes that is renamed to its final path when Close is called.