summaryrefslogtreecommitdiff
path: root/cloudflare/mainWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-29 17:29:47 -0600
committerJeff Carr <[email protected]>2023-12-29 17:29:47 -0600
commit867b69f5557ebe5665c0d52467b8b4a5980aa33a (patch)
tree537b1fb5cf8f428a95b7214edccab99efd75ad6a /cloudflare/mainWindow.go
parenta3dd21aef045f2038911585a238acac65884d314 (diff)
switch to using Register() from 'go-arg'
implement 'universal' use of go-arg Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cloudflare/mainWindow.go')
-rw-r--r--cloudflare/mainWindow.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/cloudflare/mainWindow.go b/cloudflare/mainWindow.go
index af5b221..064b0bd 100644
--- a/cloudflare/mainWindow.go
+++ b/cloudflare/mainWindow.go
@@ -6,6 +6,7 @@ import (
"log"
"go.wit.com/gui"
+ "go.wit.com/gui/gadgets"
)
// This creates a window
@@ -79,8 +80,20 @@ func makeConfigWindow(n *gui.Node) {
grid.NewLabel("Cloudflare API")
grid.NewLabel(url)
+ hostname := gadgets.NewBasicEntry(grid, "hostname")
+ zone := gadgets.NewBasicEntry(grid, "domain name")
+
grid.Pad()
+ vb.NewButton("Lookup Hostname", func () {
+ log.Println("Find all the Resource Records for hostname:", hostname.Get())
+ log.Println("Find all the Resource Records for zone:", zone.Get())
+ GetZones(aw.S, ew.S)
+ for d, v := range Config {
+ log.Println("Zone =", d, "v =", v)
+ }
+ })
+
vb.NewButton("getZones()", func () {
log.Println("getZones()")
GetZones(aw.S, ew.S)