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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user