Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWritePrivateFile ¶
AtomicWritePrivateFile writes data out to a private file. It writes to a temp file first, fsyncs that file, then swaps the file in. It renames the file using MoveFileEx with 'MOVEFILE_WRITE_THROUGH', which waits until the file is synced to disk.
func AtomicWritePubliclyReadableFile ¶
AtomicWritePubliclyReadableFile writes data out to a publicly readable file. It writes to a temp file first, fsyncs that file, then swaps the file in. It renames the file using MoveFileEx with 'MOVEFILE_WRITE_THROUGH', which waits until the file is synced to disk.
func CreateDataDirectory ¶
func WritePrivateFile ¶
WritePrivateFile writes data out to a private file. The file is created if it does not exist. If exists, it's overwritten.
func WritePubliclyReadableFile ¶
WritePubliclyReadableFile writes data out to a publicly readable file. The file is created if it does not exist. If exists, it's overwritten.
Types ¶
This section is empty.