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

Seperate create-domains command (#21)

* removing auto-create from gcloud

* adding create-domains command

* implement DomainCreator for r53
This commit is contained in:
Craig Peterson
2017-01-03 13:26:08 -07:00
committed by GitHub
parent e18d4f9b2e
commit 20bf7ef43b
4 changed files with 74 additions and 52 deletions

View File

@@ -19,6 +19,12 @@ type DNSServiceProvider interface {
GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error)
}
//DomainCreator should be implemented by providers that have the ability to add domains to an account. the create-domains command
//can be run to ensure all domains are present before running preview/push
type DomainCreator interface {
EnsureDomainExists(domain string) error
}
//RegistrarInitializer is a function to create a registrar. Function will be passed the unprocessed json payload from the configuration file for the given provider.
type RegistrarInitializer func(map[string]string) (Registrar, error)