Documentation ¶
Index ¶
Constants ¶
View Source
const ( CREATE = "CREATE" UPDATE = "UPDATE" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // BaseURL is a Selectel DNS API endpoint for v2.DNSClient BaseURL string // KeystoneProvider needed to generate X-Auth-Token header with keystone-header for requests to the DNS API. KeystoneProvider KeystoneProvider // DomainFilter is a list with domains that will be affected. If it is empty all available domains will be affected. DomainFilter endpoint.DomainFilter // DryRun is a flag specifies user's wish to run without requests to the DNS API DryRun bool // Workers is a number of goroutines that will create requests to the DNS API. Workers int }
Config is used to configure the creation of the Provider.
type KeystoneProvider ¶
type Provider ¶
type Provider struct { provider.BaseProvider // contains filtered or unexported fields }
Provider implements the DNS provider interface for Selectel DNS.
func (*Provider) ApplyChanges ¶
ApplyChanges applies a given set of changes.
func (*Provider) GetDomainFilter ¶
func (p *Provider) GetDomainFilter() endpoint.DomainFilter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.