func cloudflareConnect(config Config) (*cloudflare.API, error) {
	if config.Cloudflare.APIToken != "" {
		log.Debug("Connect to Cloudflare using APIToken")
		return cloudflare.NewWithAPIToken(config.Cloudflare.APIToken)
	} else if config.Cloudflare.APIKey != "" && config.Cloudflare.Email != "" {
		log.Debug("Connect to Cloudflare using APIKey")
		return cloudflare.New(config.Cloudflare.APIKey, config.Cloudflare.Email)
	}

	return &cloudflare.API{}, errors.New("no credentials provided")
}
// Opens connection to Cloudflare API
Opens connection to Cloudflare API
// Opens connection to Cloudflare API
func cloudflareConnect(config Config) (*cloudflare.API, error) {
	if config.Cloudflare.APIToken != "" {
		log.Debug("Connect to Cloudflare using APIToken")
		return cloudflare.NewWithAPIToken(config.Cloudflare.APIToken)
	} else if config.Cloudflare.APIKey != "" && config.Cloudflare.Email != "" {
		log.Debug("Connect to Cloudflare using APIKey")
		return cloudflare.New(config.Cloudflare.APIKey, config.Cloudflare.Email)
	}
	return &cloudflare.API{}, errors.New("no credentials provided")
}
func cloudflareConnect ( config Config ) ( * cloudflare . API , error ) { if config . Cloudflare . APIToken != " " { log . Debug ( " " ) return cloudflare . NewWithAPIToken ( config . Cloudflare . APIToken ) } else if config . Cloudflare . APIKey != " " && config . Cloudflare . Email != " " { log . Debug ( " " ) return cloudflare . New ( config . Cloudflare . APIKey , config . Cloudflare . Email ) } return & cloudflare . API { } , errors . New ( " " ) }
Opens connection to Cloudflare API
Opens connection to Cloudflare API