Documentation ¶
Overview ¶
Package transientfile provides helpers for creating files that do not survive machine reboots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create a transient file with the specified name inside transientDir. The function will attempt to create any missing folders leading up to the place where the transient file is to be created.
For *nix targets, the caller is expected to provide a suitable transient directory (e.g. a tmpfs mount) that will be automatically purged after a reboot.
For windows targets, any directory can be specified as transientDir but in order to ensure that the file will get removed, the process must be able to access the windows registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.