func (c *CloudflareDNS) SyncARecord(ipv4Address string) error {
	return c.SyncRecord("A", ipv4Address)
}
SyncARecord sets an A record to the given IPv4 address
package dns
import (
	"errors"
	"github.com/cloudflare/cloudflare-go"
	"github.com/sirupsen/logrus"
)
const cloudflareName = "cloudflare"
type CloudflareDNS struct {
	name   Name
	token  string
	api    *cloudflare.API
	record string
	args   string
	log    *logrus.Entry
}
func NewCloudflareDNS(config ProviderConfig) (*CloudflareDNS, error) {
	c := &CloudflareDNS{}
	c.name = cloudflareName
	var ok bool
	c.token, ok = config["token"]
	if !ok {
		return c, errors.New("token missing from Cloudflare provider")
	}
	c.record, ok = config["record"]
	if !ok {
		return c, errors.New(("record missing from Cloudflare provider"))
	}
	c.log = log.WithFields(logrus.Fields{"dns": "cfl"})
	return c, nil
}
func (c *CloudflareDNS) GetName() Name {
	return c.name
}