mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Rename DomainCreator to the more accurate ZoneCreator (#2038)
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org> Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
committed by
GitHub
parent
e8ae619f89
commit
5e06c249d6
@@ -18,10 +18,10 @@ type DNSServiceProvider interface {
|
||||
models.DNSProvider
|
||||
}
|
||||
|
||||
// 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. Implement this only if the provider supoprts the `dnscontrol create-domain` command.
|
||||
type DomainCreator interface {
|
||||
EnsureDomainExists(domain string) error
|
||||
// ZoneCreator should be implemented by providers that have the ability to create zones
|
||||
// (used for automatically creating zones if they don't exist)
|
||||
type ZoneCreator interface {
|
||||
EnsureZoneExists(domain string) error
|
||||
}
|
||||
|
||||
// ZoneLister should be implemented by providers that have the
|
||||
|
Reference in New Issue
Block a user