Documentation ¶
Overview ¶
This is a simple example
This is a simple example ¶
This is a simple example ¶
This is a simple example ¶
This is a simple example ¶
This is a simple example ¶
This is a simple example
Index ¶
- Variables
- func Create(zone string, hostname string, value string) bool
- func CreateRR(myGui *gui.Node, zone string, zoneID string) *gadgets.BasicWindow
- func Delete(zone string, hostname string, value string) (bool, string)
- func FormatJSON(unformattedJSON string) (string, error)
- func LoadZoneWindow(n *gui.Node, c *ConfigT)
- func MakeCloudflareWindow(n *gui.Node) *gadgets.BasicWindow
- func SetRow(dnsRow *RRT)
- type ConfigT
- type DNSRecords
- type RRT
Constants ¶
This section is empty.
Variables ¶
View Source
var CFdialog dialogT
CFdialog is everything you need forcreating a new record: name, TTL, type (CNAME, A, etc)
View Source
var CURL *log.LogFlag
View Source
var Config map[string]*ConfigT
View Source
var INFO *log.LogFlag
View Source
var NOW *log.LogFlag
View Source
var SPEW *log.LogFlag
View Source
var WARN *log.LogFlag
View Source
var ZONE *log.LogFlag
Functions ¶
func FormatJSON ¶
formatJSON takes an unformatted JSON string and returns a formatted version.
func LoadZoneWindow ¶
func MakeCloudflareWindow ¶
func MakeCloudflareWindow(n *gui.Node) *gadgets.BasicWindow
This creates a window
Types ¶
type DNSRecords ¶
type DNSRecords struct { Result []struct { ID string `json:"id"` Type string `json:"type"` Name string `json:"name"` Content string `json:"content"` Proxied bool `json:"proxied"` Proxiable bool `json:"proxiable"` TTL int `json:"ttl"` } `json:"result"` }
Define a struct to match the JSON structure of the response. This structure should be adjusted based on the actual format of the response.
func GetZonefile ¶
func GetZonefile(c *ConfigT) *DNSRecords
func GetZones ¶
func GetZones(auth, email string) *DNSRecords
Click to show internal directories.
Click to hide internal directories.