1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Add check-creds subcommand (#665)

This commit is contained in:
Tom Limoncelli
2020-02-29 09:07:05 -05:00
committed by GitHub
parent 6c316993ec
commit a7e0ec258d
4 changed files with 90 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ go generate
Find the `GetZoneRecords` function in the `*Provider.go` file.
If currently returns `fmt.Errorf("not implemented")`.
It currently returns `fmt.Errorf("not implemented")`.
Instead, it should gather the records from the provider
and return them as a list of RecordConfig structs.
@@ -99,3 +99,8 @@ will query the provider for the list of zones.
(Technically what is happening is by implementing the `ListZones`
function, you are completing the `ZoneLister` interface for that
provider.)
Implementing the `ListZones` function also activates the `check-creds`
subcommand for that provider. Please add to the provider documentation
a list of error messages that people might see if the credentials are
invalid. See `docs/_providers/gcloud.md` for examples.