Added tests and readme

This commit is contained in:
2026-05-12 06:20:51 +00:00
parent 7e85bb0fcc
commit 139c224a31
23 changed files with 1449 additions and 97 deletions
-5
View File
@@ -6,7 +6,6 @@
// cluster.yaml — replicated state (peers, checks, alerts, version)
// trust.yaml — local fingerprint trust store
// keys/ — RSA private + public keys + self-signed cert
// state.json — runtime cache (last check results, current master)
//
// A unix socket for the local CLI lives alongside (defaults to
// /var/run/quptime/quptime.sock when running as root, otherwise
@@ -25,7 +24,6 @@ const (
NodeFile = "node.yaml"
ClusterFile = "cluster.yaml"
TrustFile = "trust.yaml"
StateFile = "state.json"
KeysDir = "keys"
PrivateKey = "private.pem"
PublicKey = "public.pem"
@@ -86,9 +84,6 @@ func ClusterFilePath() string { return filepath.Join(DataDir(), ClusterFile) }
// TrustFilePath returns the absolute path to trust.yaml.
func TrustFilePath() string { return filepath.Join(DataDir(), TrustFile) }
// StateFilePath returns the absolute path to state.json.
func StateFilePath() string { return filepath.Join(DataDir(), StateFile) }
// PrivateKeyPath returns the absolute path to the RSA private key.
func PrivateKeyPath() string { return filepath.Join(DataDir(), KeysDir, PrivateKey) }