mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
7865e37c8f
* Add RWTH provider * fix Owners order * Reorganize RWTH Provider * Fix staticcheck and code style issues Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
13 lines
280 B
Go
13 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
|
|
}
|