func NewDNSProvider(credentials ...string) (caddytls.ChallengeProvider, error) {
	switch len(credentials) {
	case 0:
		return exoscale.NewDNSProvider()
	case 2:
		config := exoscale.NewDefaultConfig()
		config.APIKey = credentials[0]
		config.APISecret = credentials[1]
		return exoscale.NewDNSProviderConfig(config)
	default:
		return nil, errors.New("invalid credentials length")
	}
}
NewDNSProvider returns a new Exoscale DNS challenge provider.
The credentials are interpreted as follows:

len(0): use credentials from environment
len(2): credentials[0] = API Key
credentials[1] = API Secret
package exoscale
import (
	"errors"
	"github.com/caddyserver/caddy/caddytls"
	"github.com/go-acme/lego/v3/providers/dns/exoscale"
)
func init() {
	caddytls.RegisterDNSProvider("exoscale", NewDNSProvider)
}