mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 10:27:57 +08:00
14 lines
280 B
Go
14 lines
280 B
Go
|
package rwth
|
||
|
|
||
|
// ListZones lists the zones on this account.
|
||
|
func (api *rwthProvider) ListZones() ([]string, error) {
|
||
|
if err := api.getAllZones(); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
var zones []string
|
||
|
for i := range api.zones {
|
||
|
zones = append(zones, i)
|
||
|
}
|
||
|
return zones, nil
|
||
|
}
|