certspotter/monitor
Andrew Ayer c967253f80 monitor: fsync state files before renaming them
Without fsync, there's a risk of zero-length files being persisted if
there's a power failure.

Don't bother fsyncing the parent directory because it's OK if the data rolls
back to the previous version; we only need to avoid data corruption.

Closes: #101
2025-05-04 20:44:36 -04:00
..
config.go Abstract state storage and notification logic behind an interface 2024-04-04 07:47:25 -04:00
daemon.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
discoveredcert.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
errors.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
fileutils.go monitor: fsync state files before renaming them 2025-05-04 20:44:36 -04:00
fsstate.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
healthcheck.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
loglist.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
mailutils.go Add a helper function 2023-10-29 08:17:58 -04:00
monitor.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
notify.go Respect $EMAIL when sending emails 2024-05-21 15:11:22 -04:00
process.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
state.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
statedir.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
sthdir.go static-ct-api support, parallel downloading 2025-05-04 20:41:33 -04:00
watchlist.go Convert to a daemon and make many other improvements 2023-02-03 14:12:03 -05:00