mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Update github.com/StackExchange/dnscontrol/v2
This commit is contained in:
@ -17,7 +17,7 @@ var goos = flag.String("os", "", "OS to build (linux, windows, or darwin) Defaul
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
flags := fmt.Sprintf(`-s -w -X main.SHA="%s" -X main.BuildTime=%d`, getVersion(), time.Now().Unix())
|
flags := fmt.Sprintf(`-s -w -X main.SHA="%s" -X main.BuildTime=%d`, getVersion(), time.Now().Unix())
|
||||||
pkg := "github.com/StackExchange/dnscontrol/v2"
|
pkg := "github.com/StackExchange/dnscontrol/v3"
|
||||||
|
|
||||||
build := func(out, goos string) {
|
build := func(out, goos string) {
|
||||||
log.Printf("Building %s", out)
|
log.Printf("Building %s", out)
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/_all"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/_all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func generateFeatureMatrix() error {
|
func generateFeatureMatrix() error {
|
||||||
|
@ -46,8 +46,8 @@ import (
|
|||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/prettyzone"
|
"github.com/StackExchange/dnscontrol/v3/pkg/prettyzone"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers/octodns/octoyaml"
|
"github.com/StackExchange/dnscontrol/v3/providers/octodns/octoyaml"
|
||||||
)
|
)
|
||||||
|
|
||||||
var flagInfmt = flag.String("in", "zone", "zone|octodns")
|
var flagInfmt = flag.String("in", "zone", "zone|octodns")
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
)
|
)
|
||||||
|
|
||||||
// categories of commands
|
// categories of commands
|
||||||
|
@ -3,7 +3,7 @@ package commands
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/acme"
|
"github.com/StackExchange/dnscontrol/v3/pkg/acme"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/normalize"
|
"github.com/StackExchange/dnscontrol/v3/pkg/normalize"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,10 +5,10 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/prettyzone"
|
"github.com/StackExchange/dnscontrol/v3/pkg/prettyzone"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers/config"
|
"github.com/StackExchange/dnscontrol/v3/providers/config"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/andreyvit/diff"
|
"github.com/andreyvit/diff"
|
||||||
|
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/_all"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/_all"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFormatTypes(t *testing.T) {
|
func TestFormatTypes(t *testing.T) {
|
||||||
|
@ -7,13 +7,13 @@ import (
|
|||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/nameservers"
|
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/normalize"
|
"github.com/StackExchange/dnscontrol/v3/pkg/normalize"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/notifications"
|
"github.com/StackExchange/dnscontrol/v3/pkg/notifications"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers/config"
|
"github.com/StackExchange/dnscontrol/v3/providers/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = cmd(catMain, func() *cli.Command {
|
var _ = cmd(catMain, func() *cli.Command {
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/js"
|
"github.com/StackExchange/dnscontrol/v3/pkg/js"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/normalize"
|
"github.com/StackExchange/dnscontrol/v3/pkg/normalize"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = cmd(catDebug, func() *cli.Command {
|
var _ = cmd(catDebug, func() *cli.Command {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/spflib"
|
"github.com/StackExchange/dnscontrol/v3/pkg/spflib"
|
||||||
"github.com/gopherjs/jquery"
|
"github.com/gopherjs/jquery"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -47,8 +47,8 @@ how it tests that gofmt was run.
|
|||||||
Edit the "Version" variable in `main.go` and commit.
|
Edit the "Version" variable in `main.go` and commit.
|
||||||
|
|
||||||
```
|
```
|
||||||
export PREVVERSION=2.10.0 <<< Change to the previous version
|
export PREVVERSION=3.0.0 <<< Change to the previous version
|
||||||
export VERSION=2.11.0 <<< Change to the new release version
|
export VERSION=3.1.0 <<< Change to the new release version
|
||||||
git checkout master
|
git checkout master
|
||||||
vi main.go
|
vi main.go
|
||||||
git commit -m'Release v'"$VERSION" main.go
|
git commit -m'Release v'"$VERSION" main.go
|
||||||
@ -56,6 +56,16 @@ git tag v"$VERSION"
|
|||||||
git push origin tag v"$VERSION"
|
git push origin tag v"$VERSION"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
NOTE: If you bump the major version, you need to change all the source
|
||||||
|
files. The last time this was done (v2 -> v3) these two commands
|
||||||
|
automated all that:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Make all the changes:
|
||||||
|
sed -i.bak -e 's@github.com.StackExchange.dnscontrol.v2@github.com/StackExchange/dnscontrol/v3@g' go.* $(fgrep -lri --include '*.go' github.com/StackExchange/dnscontrol/v2 *)
|
||||||
|
# Delete the backup files:
|
||||||
|
find * -name \*.bak -delete
|
||||||
|
```
|
||||||
|
|
||||||
## Step 4. Write the release notes.
|
## Step 4. Write the release notes.
|
||||||
|
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/StackExchange/dnscontrol/v2
|
module github.com/StackExchange/dnscontrol/v3
|
||||||
|
|
||||||
go 1.14
|
go 1.14
|
||||||
|
|
||||||
|
@ -10,11 +10,11 @@ import (
|
|||||||
|
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/nameservers"
|
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/_all"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/_all"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers/config"
|
"github.com/StackExchange/dnscontrol/v3/providers/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var providerToRun = flag.String("provider", "", "Provider to run")
|
var providerToRun = flag.String("provider", "", "Provider to run")
|
||||||
|
4
main.go
4
main.go
@ -7,8 +7,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/commands"
|
"github.com/StackExchange/dnscontrol/v3/commands"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/_all"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/_all"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate go run build/generate/generate.go build/generate/featureMatrix.go
|
//go:generate go run build/generate/generate.go build/generate/featureMatrix.go
|
||||||
|
@ -12,9 +12,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/nameservers"
|
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/notifications"
|
"github.com/StackExchange/dnscontrol/v3/pkg/notifications"
|
||||||
"github.com/go-acme/lego/certcrypto"
|
"github.com/go-acme/lego/certcrypto"
|
||||||
"github.com/go-acme/lego/certificate"
|
"github.com/go-acme/lego/certificate"
|
||||||
"github.com/go-acme/lego/challenge"
|
"github.com/go-acme/lego/challenge"
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
"github.com/gobwas/glob"
|
"github.com/gobwas/glob"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Correlation stores a difference between two domains.
|
// Correlation stores a difference between two domains.
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func myRecord(s string) *models.RecordConfig {
|
func myRecord(s string) *models.RecordConfig {
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/robertkrimen/otto" // load underscore js into vm by default
|
"github.com/robertkrimen/otto" // load underscore js into vm by default
|
||||||
_ "github.com/robertkrimen/otto/underscore" // required by otto
|
_ "github.com/robertkrimen/otto/underscore" // required by otto
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/transform"
|
"github.com/StackExchange/dnscontrol/v3/pkg/transform"
|
||||||
)
|
)
|
||||||
|
|
||||||
// currentDirectory is the current directory as used by require().
|
// currentDirectory is the current directory as used by require().
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DetermineNameservers will find all nameservers we should use for a domain. It follows the following rules:
|
// DetermineNameservers will find all nameservers we should use for a domain. It follows the following rules:
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/spflib"
|
"github.com/StackExchange/dnscontrol/v3/pkg/spflib"
|
||||||
)
|
)
|
||||||
|
|
||||||
// hasSpfRecords returns true if this record requests SPF unrolling.
|
// hasSpfRecords returns true if this record requests SPF unrolling.
|
||||||
|
@ -3,7 +3,7 @@ package normalize
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeRC(label, domain, target string, rc models.RecordConfig) *models.RecordConfig {
|
func makeRC(label, domain, target string, rc models.RecordConfig) *models.RecordConfig {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/transform"
|
"github.com/StackExchange/dnscontrol/v3/pkg/transform"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCheckLabel(t *testing.T) {
|
func TestCheckLabel(t *testing.T) {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
)
|
)
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ZoneGenData is the configuration description for the zone generator.
|
// ZoneGenData is the configuration description for the zone generator.
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CLI is an abstraction around the CLI.
|
// CLI is an abstraction around the CLI.
|
||||||
|
@ -3,26 +3,26 @@ package all
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// Define all known providers here. They should each register themselves with the providers package via init function.
|
// Define all known providers here. They should each register themselves with the providers package via init function.
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/activedir"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/activedir"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/azuredns"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/azuredns"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/bind"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/bind"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/cloudflare"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/cloudflare"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/cloudns"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/cloudns"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/digitalocean"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/digitalocean"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/dnsimple"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/dnsimple"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/exoscale"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/exoscale"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/gandi_v5"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/gandi_v5"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/gcloud"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/gcloud"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/hexonet"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/hexonet"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/internetbs"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/internetbs"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/linode"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/linode"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/namecheap"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/namecheap"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/namedotcom"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/namedotcom"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/ns1"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/ns1"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/octodns"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/octodns"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/opensrs"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/opensrs"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/ovh"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/ovh"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/route53"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/route53"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/softlayer"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/softlayer"
|
||||||
_ "github.com/StackExchange/dnscontrol/v2/providers/vultr"
|
_ "github.com/StackExchange/dnscontrol/v3/providers/vultr"
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is the struct that matches either (or both) of the Registrar and/or DNSProvider interfaces:
|
// This is the struct that matches either (or both) of the Registrar and/or DNSProvider interfaces:
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/TomOnTime/utfutil"
|
"github.com/TomOnTime/utfutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeRC(label, domain, target string, rc models.RecordConfig) *models.RecordConfig {
|
func makeRC(label, domain, target string, rc models.RecordConfig) *models.RecordConfig {
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
aauth "github.com/Azure/go-autorest/autorest/azure/auth"
|
aauth "github.com/Azure/go-autorest/autorest/azure/auth"
|
||||||
"github.com/Azure/go-autorest/autorest/to"
|
"github.com/Azure/go-autorest/autorest/to"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
type azureDnsProvider struct {
|
type azureDnsProvider struct {
|
||||||
|
@ -25,10 +25,10 @@ import (
|
|||||||
|
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/prettyzone"
|
"github.com/StackExchange/dnscontrol/v3/pkg/prettyzone"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package bind
|
package bind
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func makeSoa(origin string, defSoa *SoaInfo, existing, desired *models.RecordConfig) (*models.RecordConfig, uint32) {
|
func makeSoa(origin string, defSoa *SoaInfo, existing, desired *models.RecordConfig) (*models.RecordConfig, uint32) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_makeSoa(t *testing.T) {
|
func Test_makeSoa(t *testing.T) {
|
||||||
|
@ -10,11 +10,11 @@ import (
|
|||||||
|
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/transform"
|
"github.com/StackExchange/dnscontrol/v3/pkg/transform"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/transform"
|
"github.com/StackExchange/dnscontrol/v3/pkg/transform"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newDomainConfig() *models.DomainConfig {
|
func newDomainConfig() *models.DomainConfig {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
|
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
|
|
||||||
"github.com/digitalocean/godo"
|
"github.com/digitalocean/godo"
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
dnsimpleapi "github.com/dnsimple/dnsimple-go/dnsimple"
|
dnsimpleapi "github.com/dnsimple/dnsimple-go/dnsimple"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
"github.com/exoscale/egoscale"
|
"github.com/exoscale/egoscale"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
type exoscaleProvider struct {
|
type exoscaleProvider struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"github.com/tiramiseb/go-gandi/livedns"
|
"github.com/tiramiseb/go-gandi/livedns"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
)
|
)
|
||||||
|
|
||||||
// nativeToRecord takes a DNS record from Gandi and returns a native RecordConfig struct.
|
// nativeToRecord takes a DNS record from Gandi and returns a native RecordConfig struct.
|
||||||
|
@ -3,7 +3,7 @@ package gandi5
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRecordsToNative_1(t *testing.T) {
|
func TestRecordsToNative_1(t *testing.T) {
|
||||||
|
@ -24,10 +24,10 @@ import (
|
|||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
gandi "github.com/tiramiseb/go-gandi"
|
gandi "github.com/tiramiseb/go-gandi"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Section 1: Register this provider in the system.
|
// Section 1: Register this provider in the system.
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
gauth "golang.org/x/oauth2/google"
|
gauth "golang.org/x/oauth2/google"
|
||||||
gdns "google.golang.org/api/dns/v1"
|
gdns "google.golang.org/api/dns/v1"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
hxcl "github.com/hexonet/go-sdk/apiclient"
|
hxcl "github.com/hexonet/go-sdk/apiclient"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var defaultNameservers = []*models.Nameserver{
|
var defaultNameservers = []*models.Nameserver{
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HXRecord covers an individual DNS resource record.
|
// HXRecord covers an individual DNS resource record.
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -12,9 +12,9 @@ import (
|
|||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -10,10 +10,10 @@ import (
|
|||||||
nc "github.com/billputer/go-namecheap"
|
nc "github.com/billputer/go-namecheap"
|
||||||
"golang.org/x/net/publicsuffix"
|
"golang.org/x/net/publicsuffix"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NamecheapDefaultNs lists the default nameservers for this provider.
|
// NamecheapDefaultNs lists the default nameservers for this provider.
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/namedotcom/go/namecom"
|
"github.com/namedotcom/go/namecom"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultAPIBase = "api.name.com"
|
const defaultAPIBase = "api.name.com"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/namedotcom/go/namecom"
|
"github.com/namedotcom/go/namecom"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/namedotcom/go/namecom"
|
"github.com/namedotcom/go/namecom"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
)
|
)
|
||||||
|
|
||||||
var defaultNameservers = []*models.Nameserver{
|
var defaultNameservers = []*models.Nameserver{
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
"gopkg.in/ns1/ns1-go.v2/rest"
|
"gopkg.in/ns1/ns1-go.v2/rest"
|
||||||
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
"gopkg.in/ns1/ns1-go.v2/rest/model/dns"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var docNotes = providers.DocumentationNotes{
|
var docNotes = providers.DocumentationNotes{
|
||||||
|
@ -27,10 +27,10 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers/octodns/octoyaml"
|
"github.com/StackExchange/dnscontrol/v3/providers/octodns/octoyaml"
|
||||||
)
|
)
|
||||||
|
|
||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/transform"
|
"github.com/StackExchange/dnscontrol/v3/pkg/transform"
|
||||||
|
|
||||||
"github.com/robertkrimen/otto"
|
"github.com/robertkrimen/otto"
|
||||||
// load underscore js into vm by default
|
// load underscore js into vm by default
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReadYaml parses a yaml input and returns a list of RecordConfigs
|
// ReadYaml parses a yaml input and returns a list of RecordConfigs
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/natsort"
|
"github.com/StackExchange/dnscontrol/v3/pkg/natsort"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
|
|
||||||
opensrs "github.com/philhug/opensrs-go/opensrs"
|
opensrs "github.com/philhug/opensrs-go/opensrs"
|
||||||
)
|
)
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
"github.com/ovh/go-ovh/ovh"
|
"github.com/ovh/go-ovh/ovh"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Registrar is an interface for a domain registrar. It can return a list of needed corrections to be applied in the future. Implement this only if the provider is a "registrar" (i.e. can update the NS records of the parent to a domain).
|
// Registrar is an interface for a domain registrar. It can return a list of needed corrections to be applied in the future. Implement this only if the provider is a "registrar" (i.e. can update the NS records of the parent to a domain).
|
||||||
|
@ -14,9 +14,9 @@ import (
|
|||||||
r53 "github.com/aws/aws-sdk-go/service/route53"
|
r53 "github.com/aws/aws-sdk-go/service/route53"
|
||||||
r53d "github.com/aws/aws-sdk-go/service/route53domains"
|
r53d "github.com/aws/aws-sdk-go/service/route53domains"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
type route53Provider struct {
|
type route53Provider struct {
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
"github.com/softlayer/softlayer-go/services"
|
"github.com/softlayer/softlayer-go/services"
|
||||||
"github.com/softlayer/softlayer-go/session"
|
"github.com/softlayer/softlayer-go/session"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SoftLayer is the protocol handle for this provider.
|
// SoftLayer is the protocol handle for this provider.
|
||||||
|
@ -3,7 +3,7 @@ package vultr
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/vultr/govultr"
|
"github.com/vultr/govultr"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
"github.com/miekg/dns/dnsutil"
|
"github.com/miekg/dns/dnsutil"
|
||||||
"github.com/vultr/govultr"
|
"github.com/vultr/govultr"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v2/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v2/pkg/diff"
|
"github.com/StackExchange/dnscontrol/v3/pkg/diff"
|
||||||
"github.com/StackExchange/dnscontrol/v2/providers"
|
"github.com/StackExchange/dnscontrol/v3/providers"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user