diff options
Diffstat (limited to 'dump.go')
| -rw-r--r-- | dump.go | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +package main + +import ( + "fmt" + "net/http" +) + +/* + debugging code to see the state of the + cluster via http +*/ + +func dumpCluster(w http.ResponseWriter) { + umap, macs := safeValidateDroplets(me.cluster) + for u, hostname := range umap { + fmt.Fprintln(w, "uuid:", u, "hostname:", hostname) + } + + for mac, uuid := range macs { + fmt.Fprintln(w, "mac:", mac, "uuid", uuid, "hostname:", umap[uuid]) + } +} |
