Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
ConfigDir returns the directory for cloudstic configuration and state files. Resolution order:
- CLOUDSTIC_CONFIG_DIR environment variable (if set)
- os.UserConfigDir()/cloudstic (platform default)
The directory is created with 0700 permissions if it does not exist.
func MachineID ¶ added in v1.14.0
func MachineID() string
MachineID returns a unique identifier for the current machine. It tries to read from common system files.
func SaveAtomic ¶ added in v1.14.0
SaveAtomic writes data to a temporary file in the target directory and atomically renames it to path to prevent file corruption during crashes. It ensures 0600 permissions on the final file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.