Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWritePrivateFile ¶ added in v1.5.3
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 ¶ added in v1.5.3
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 ¶ added in v1.4.0
func WritePrivateFile ¶ added in v1.5.3
WritePrivateFile writes data out to a private file. The file is created if it does not exist. If exists, it's overwritten.
func WritePubliclyReadableFile ¶ added in v1.5.3
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.