ready to debug 'gui/cloudflare'
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
0592636049
commit
fc6c72740b
4
gui.go
4
gui.go
|
@ -25,7 +25,7 @@ func setupControlPanelWindow() {
|
|||
|
||||
// setup the main tab
|
||||
mainWindow("DNS and IPv6 Control Panel")
|
||||
detailsTab("DNS Details")
|
||||
detailsTab("OS Details")
|
||||
debugTab("Debug")
|
||||
|
||||
// me.digStatus = NewDigStatusWindow(me.window)
|
||||
|
@ -218,7 +218,7 @@ func mainWindow(title string) {
|
|||
gr.NewButton("GO GUI Debugger", func () {
|
||||
debugger.DebugWindow(me.myGui)
|
||||
})
|
||||
gr.NewButton("DNS Details", func () {
|
||||
gr.NewButton("OS Details", func () {
|
||||
me.details.Toggle()
|
||||
})
|
||||
gr.NewButton("DNS Debug", func () {
|
||||
|
|
|
@ -98,7 +98,7 @@ func NewHostnameStatusWindow(p *gui.Node) *hostnameStatus {
|
|||
|
||||
hs.dnsValue = grid.NewLabel("3.4.5.6")
|
||||
hs.dnsAction = grid.NewButton("CHECK", func () {
|
||||
log.Info("should", hs.dnsAction.S, "here for", hs.dnsValue.S)
|
||||
log.Warn("should", hs.dnsAction.S, "here for", hs.dnsValue.S)
|
||||
if (hs.dnsAction.S == "DELETE") {
|
||||
hs.deleteDNSrecord(hs.dnsValue.S)
|
||||
}
|
||||
|
@ -145,7 +145,7 @@ func (hs *hostnameStatus) createDNSrecord(value string) bool {
|
|||
log.Info("createDNSrecord() DNS API Provider =", hs.API())
|
||||
|
||||
if (hs.API() == "cloudflare") {
|
||||
log.Info("createDNSrecord() Try to delete via cloudflare")
|
||||
log.Warn("createDNSrecord() Try to delete via cloudflare:", me.hostname, value)
|
||||
return cloudflare.Create(hs.Domain(), me.hostname, value)
|
||||
}
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue