Rename module to netbirdio/netbird (#288)

rename the go module to netbirdio/netbird 
as part of our rebranding.
This commit is contained in:
Maycon Santos 2022-03-26 12:08:54 +01:00 committed by GitHub
parent ede2795529
commit c3bc85e22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
64 changed files with 146 additions and 146 deletions

View File

@ -22,7 +22,7 @@ builds:
- goos: windows - goos: windows
goarch: arm goarch: arm
ldflags: ldflags:
- -s -w -X github.com/wiretrustee/wiretrustee/client/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser - -s -w -X github.com/netbirdio/netbird/client/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
tags: tags:
- load_wgnt_from_rsrc - load_wgnt_from_rsrc
@ -65,7 +65,7 @@ builds:
goarch: goarch:
- amd64 - amd64
ldflags: ldflags:
- -s -w -X github.com/wiretrustee/wiretrustee/client/ui/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser - -s -w -X github.com/netbirdio/netbird/client/ui/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
archives: archives:

View File

@ -14,7 +14,7 @@ builds:
- hardfloat - hardfloat
- softfloat - softfloat
ldflags: ldflags:
- -s -w -X github.com/wiretrustee/wiretrustee/client/ui/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser - -s -w -X github.com/netbirdio/netbird/client/ui/system.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.CommitDate}} -X main.builtBy=goreleaser
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
tags: tags:
- load_wgnt_from_rsrc - load_wgnt_from_rsrc

View File

@ -2,13 +2,13 @@ package cmd
import ( import (
"context" "context"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"time" "time"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/client/proto" "github.com/netbirdio/netbird/client/proto"
) )
var downCmd = &cobra.Command{ var downCmd = &cobra.Command{

View File

@ -3,13 +3,13 @@ package cmd
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
"github.com/wiretrustee/wiretrustee/client/proto" "github.com/netbirdio/netbird/client/proto"
) )
var loginCmd = &cobra.Command{ var loginCmd = &cobra.Command{

View File

@ -5,9 +5,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
"github.com/wiretrustee/wiretrustee/iface" "github.com/netbirdio/netbird/iface"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
) )
func TestLogin(t *testing.T) { func TestLogin(t *testing.T) {

View File

@ -17,7 +17,7 @@ import (
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"google.golang.org/grpc" "google.golang.org/grpc"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
) )
type program struct { type program struct {

View File

@ -11,10 +11,10 @@ import (
"github.com/kardianos/service" "github.com/kardianos/service"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/client/proto"
"github.com/netbirdio/netbird/client/server"
"github.com/netbirdio/netbird/util"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/client/proto"
"github.com/wiretrustee/wiretrustee/client/server"
"github.com/wiretrustee/wiretrustee/util"
"google.golang.org/grpc" "google.golang.org/grpc"
) )

View File

@ -2,14 +2,14 @@ package cmd
import ( import (
"context" "context"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
"github.com/wiretrustee/wiretrustee/client/proto" "github.com/netbirdio/netbird/client/proto"
) )
var statusCmd = &cobra.Command{ var statusCmd = &cobra.Command{

View File

@ -7,14 +7,14 @@ import (
"testing" "testing"
"time" "time"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
clientProto "github.com/wiretrustee/wiretrustee/client/proto" clientProto "github.com/netbirdio/netbird/client/proto"
client "github.com/wiretrustee/wiretrustee/client/server" client "github.com/netbirdio/netbird/client/server"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto" mgmtProto "github.com/netbirdio/netbird/management/proto"
mgmt "github.com/wiretrustee/wiretrustee/management/server" mgmt "github.com/netbirdio/netbird/management/server"
sigProto "github.com/wiretrustee/wiretrustee/signal/proto" sigProto "github.com/netbirdio/netbird/signal/proto"
sig "github.com/wiretrustee/wiretrustee/signal/server" sig "github.com/netbirdio/netbird/signal/server"
"google.golang.org/grpc" "google.golang.org/grpc"
) )

View File

@ -3,12 +3,12 @@ package cmd
import ( import (
"context" "context"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/util"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
"github.com/wiretrustee/wiretrustee/client/proto" "github.com/netbirdio/netbird/client/proto"
) )
var upCmd = &cobra.Command{ var upCmd = &cobra.Command{

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
) )
var cliAddr string var cliAddr string

View File

@ -1,8 +1,8 @@
package cmd package cmd
import ( import (
"github.com/netbirdio/netbird/client/system"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/client/system"
) )
var ( var (

View File

@ -2,9 +2,9 @@ package internal
import ( import (
"fmt" "fmt"
"github.com/netbirdio/netbird/iface"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/iface"
"github.com/wiretrustee/wiretrustee/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"net/url" "net/url"
"os" "os"

View File

@ -2,8 +2,8 @@ package internal
import ( import (
"errors" "errors"
"github.com/netbirdio/netbird/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/wiretrustee/wiretrustee/util"
"os" "os"
"path/filepath" "path/filepath"
"testing" "testing"

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"time" "time"
"github.com/netbirdio/netbird/iface"
mgm "github.com/netbirdio/netbird/management/client"
mgmProto "github.com/netbirdio/netbird/management/proto"
signal "github.com/netbirdio/netbird/signal/client"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/iface"
mgm "github.com/wiretrustee/wiretrustee/management/client"
mgmProto "github.com/wiretrustee/wiretrustee/management/proto"
signal "github.com/wiretrustee/wiretrustee/signal/client"
"github.com/cenkalti/backoff/v4" "github.com/cenkalti/backoff/v4"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"

View File

@ -9,16 +9,16 @@ import (
"sync" "sync"
"time" "time"
"github.com/netbirdio/netbird/client/internal/peer"
"github.com/netbirdio/netbird/client/internal/proxy"
"github.com/netbirdio/netbird/iface"
mgm "github.com/netbirdio/netbird/management/client"
mgmProto "github.com/netbirdio/netbird/management/proto"
signal "github.com/netbirdio/netbird/signal/client"
sProto "github.com/netbirdio/netbird/signal/proto"
"github.com/netbirdio/netbird/util"
"github.com/pion/ice/v2" "github.com/pion/ice/v2"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/internal/peer"
"github.com/wiretrustee/wiretrustee/client/internal/proxy"
"github.com/wiretrustee/wiretrustee/iface"
mgm "github.com/wiretrustee/wiretrustee/management/client"
mgmProto "github.com/wiretrustee/wiretrustee/management/proto"
signal "github.com/wiretrustee/wiretrustee/signal/client"
sProto "github.com/wiretrustee/wiretrustee/signal/proto"
"github.com/wiretrustee/wiretrustee/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
) )

View File

@ -11,15 +11,15 @@ import (
"testing" "testing"
"time" "time"
"github.com/netbirdio/netbird/client/system"
mgmt "github.com/netbirdio/netbird/management/client"
mgmtProto "github.com/netbirdio/netbird/management/proto"
"github.com/netbirdio/netbird/management/server"
signal "github.com/netbirdio/netbird/signal/client"
"github.com/netbirdio/netbird/signal/proto"
signalServer "github.com/netbirdio/netbird/signal/server"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/system"
mgmt "github.com/wiretrustee/wiretrustee/management/client"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto"
"github.com/wiretrustee/wiretrustee/management/server"
signal "github.com/wiretrustee/wiretrustee/signal/client"
"github.com/wiretrustee/wiretrustee/signal/proto"
signalServer "github.com/wiretrustee/wiretrustee/signal/server"
"github.com/wiretrustee/wiretrustee/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/keepalive" "google.golang.org/grpc/keepalive"

View File

@ -6,10 +6,10 @@ import (
"github.com/cenkalti/backoff/v4" "github.com/cenkalti/backoff/v4"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/netbirdio/netbird/client/system"
mgm "github.com/netbirdio/netbird/management/client"
mgmProto "github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/system"
mgm "github.com/wiretrustee/wiretrustee/management/client"
mgmProto "github.com/wiretrustee/wiretrustee/management/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"

View File

@ -2,15 +2,15 @@ package peer
import ( import (
"context" "context"
"github.com/wiretrustee/wiretrustee/iface" "github.com/netbirdio/netbird/iface"
"golang.zx2c4.com/wireguard/wgctrl" "golang.zx2c4.com/wireguard/wgctrl"
"net" "net"
"sync" "sync"
"time" "time"
"github.com/netbirdio/netbird/client/internal/proxy"
"github.com/pion/ice/v2" "github.com/pion/ice/v2"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/internal/proxy"
) )
// ConnConfig is a peer Connection configuration // ConnConfig is a peer Connection configuration

View File

@ -2,8 +2,8 @@ package peer
import ( import (
"github.com/magiconair/properties/assert" "github.com/magiconair/properties/assert"
"github.com/netbirdio/netbird/client/internal/proxy"
"github.com/pion/ice/v2" "github.com/pion/ice/v2"
"github.com/wiretrustee/wiretrustee/client/internal/proxy"
"sync" "sync"
"testing" "testing"
"time" "time"

View File

@ -1,8 +1,8 @@
package proxy package proxy
import ( import (
"github.com/netbirdio/netbird/iface"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/iface"
"net" "net"
) )

View File

@ -1,7 +1,7 @@
package proxy package proxy
import ( import (
"github.com/wiretrustee/wiretrustee/iface" "github.com/netbirdio/netbird/iface"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"io" "io"
"net" "net"

View File

@ -3,7 +3,7 @@ package main
import ( import (
"os" "os"
"github.com/wiretrustee/wiretrustee/client/cmd" "github.com/netbirdio/netbird/client/cmd"
) )
func main() { func main() {

View File

@ -7,8 +7,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/internal" "github.com/netbirdio/netbird/client/internal"
"github.com/wiretrustee/wiretrustee/client/proto" "github.com/netbirdio/netbird/client/proto"
) )
// Server for service control. // Server for service control.

View File

@ -16,10 +16,10 @@ import (
_ "embed" _ "embed"
"github.com/getlantern/systray" "github.com/getlantern/systray"
"github.com/netbirdio/netbird/client/internal"
"github.com/netbirdio/netbird/client/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/skratchdot/open-golang/open" "github.com/skratchdot/open-golang/open"
"github.com/wiretrustee/wiretrustee/client/internal"
"github.com/wiretrustee/wiretrustee/client/proto"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
) )

View File

@ -1,10 +1,10 @@
package encryption_test package encryption_test
import ( import (
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/encryption/testprotos"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/encryption/testprotos"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
) )

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/wiretrustee/wiretrustee module github.com/netbirdio/netbird
go 1.18 go 1.18

View File

@ -3,8 +3,8 @@ package client
import ( import (
"io" "io"
"github.com/wiretrustee/wiretrustee/client/system" "github.com/netbirdio/netbird/client/system"
"github.com/wiretrustee/wiretrustee/management/proto" "github.com/netbirdio/netbird/management/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
) )

View File

@ -8,17 +8,17 @@ import (
"testing" "testing"
"time" "time"
"github.com/wiretrustee/wiretrustee/client/system" "github.com/netbirdio/netbird/client/system"
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/management/proto"
mgmtProto "github.com/netbirdio/netbird/management/proto"
mgmt "github.com/netbirdio/netbird/management/server"
"github.com/netbirdio/netbird/management/server/mock_server"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/management/proto"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto"
mgmt "github.com/wiretrustee/wiretrustee/management/server"
"github.com/wiretrustee/wiretrustee/management/server/mock_server"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"

View File

@ -8,10 +8,10 @@ import (
"time" "time"
"github.com/cenkalti/backoff/v4" "github.com/cenkalti/backoff/v4"
"github.com/netbirdio/netbird/client/system"
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/client/system"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/management/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/connectivity" "google.golang.org/grpc/connectivity"

View File

@ -1,8 +1,8 @@
package client package client
import ( import (
"github.com/wiretrustee/wiretrustee/client/system" "github.com/netbirdio/netbird/client/system"
"github.com/wiretrustee/wiretrustee/management/proto" "github.com/netbirdio/netbird/management/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
) )

View File

@ -5,18 +5,18 @@ import (
"crypto/tls" "crypto/tls"
"flag" "flag"
"fmt" "fmt"
"github.com/wiretrustee/wiretrustee/management/server" "github.com/netbirdio/netbird/management/server"
"github.com/wiretrustee/wiretrustee/management/server/http" "github.com/netbirdio/netbird/management/server/http"
"github.com/wiretrustee/wiretrustee/management/server/idp" "github.com/netbirdio/netbird/management/server/idp"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"net" "net"
"os" "os"
"time" "time"
"github.com/netbirdio/netbird/encryption"
mgmtProto "github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/encryption"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive" "google.golang.org/grpc/keepalive"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/wiretrustee/wiretrustee/management/cmd" "github.com/netbirdio/netbird/management/cmd"
"os" "os"
) )

View File

@ -1,11 +1,11 @@
package server package server
import ( import (
"github.com/netbirdio/netbird/management/server/idp"
"github.com/netbirdio/netbird/management/server/jwtclaims"
"github.com/netbirdio/netbird/util"
"github.com/rs/xid" "github.com/rs/xid"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/management/server/idp"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims"
"github.com/wiretrustee/wiretrustee/util"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"strings" "strings"

View File

@ -1,8 +1,8 @@
package server package server
import ( import (
"github.com/netbirdio/netbird/management/server/jwtclaims"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"net" "net"
"testing" "testing"

View File

@ -1,8 +1,8 @@
package server package server
import ( import (
"github.com/wiretrustee/wiretrustee/management/server/idp" "github.com/netbirdio/netbird/management/server/idp"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
) )
type Protocol string type Protocol string

View File

@ -9,7 +9,7 @@ import (
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
) )
// storeFileName Store file name. Stored in the datadir // storeFileName Store file name. Stored in the datadir

View File

@ -1,8 +1,8 @@
package server package server
import ( import (
"github.com/netbirdio/netbird/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/wiretrustee/wiretrustee/util"
"net" "net"
"path/filepath" "path/filepath"
"testing" "testing"

View File

@ -6,9 +6,9 @@ import (
"time" "time"
"github.com/golang/protobuf/ptypes/timestamp" "github.com/golang/protobuf/ptypes/timestamp"
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/management/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"

View File

@ -3,13 +3,13 @@ package handler
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims" "github.com/netbirdio/netbird/management/server/jwtclaims"
"net/http" "net/http"
"time" "time"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/netbirdio/netbird/management/server"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/management/server"
) )
//Peers is a handler that returns peers of the account //Peers is a handler that returns peers of the account

View File

@ -2,7 +2,7 @@ package handler
import ( import (
"encoding/json" "encoding/json"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims" "github.com/netbirdio/netbird/management/server/jwtclaims"
"io" "io"
"net" "net"
"net/http" "net/http"
@ -10,8 +10,8 @@ import (
"testing" "testing"
"github.com/magiconair/properties/assert" "github.com/magiconair/properties/assert"
"github.com/wiretrustee/wiretrustee/management/server" "github.com/netbirdio/netbird/management/server"
"github.com/wiretrustee/wiretrustee/management/server/mock_server" "github.com/netbirdio/netbird/management/server/mock_server"
) )
func initTestMetaData(peer ...*server.Peer) *Peers { func initTestMetaData(peer ...*server.Peer) *Peers {

View File

@ -3,14 +3,14 @@ package handler
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims" "github.com/netbirdio/netbird/management/server/jwtclaims"
"net/http" "net/http"
"time" "time"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/netbirdio/netbird/management/server"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/management/server"
"github.com/wiretrustee/wiretrustee/util"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

@ -7,11 +7,11 @@ import (
"time" "time"
"github.com/gorilla/mux" "github.com/gorilla/mux"
s "github.com/netbirdio/netbird/management/server"
"github.com/netbirdio/netbird/management/server/http/handler"
"github.com/netbirdio/netbird/management/server/http/middleware"
"github.com/rs/cors" "github.com/rs/cors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
s "github.com/wiretrustee/wiretrustee/management/server"
"github.com/wiretrustee/wiretrustee/management/server/http/handler"
"github.com/wiretrustee/wiretrustee/management/server/http/middleware"
"golang.org/x/crypto/acme/autocert" "golang.org/x/crypto/acme/autocert"
) )

View File

@ -3,10 +3,10 @@ package server
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/netbirdio/netbird/encryption"
mgmtProto "github.com/netbirdio/netbird/management/proto"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/encryption"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto"
"github.com/wiretrustee/wiretrustee/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"

View File

@ -2,7 +2,7 @@ package server_test
import ( import (
"context" "context"
server "github.com/wiretrustee/wiretrustee/management/server" server "github.com/netbirdio/netbird/management/server"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
"io/ioutil" "io/ioutil"
"math/rand" "math/rand"
@ -14,13 +14,13 @@ import (
"time" "time"
pb "github.com/golang/protobuf/proto" //nolint pb "github.com/golang/protobuf/proto" //nolint
"github.com/netbirdio/netbird/encryption"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/encryption"
mgmtProto "github.com/netbirdio/netbird/management/proto"
"github.com/netbirdio/netbird/util"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
mgmtProto "github.com/wiretrustee/wiretrustee/management/proto"
"github.com/wiretrustee/wiretrustee/util"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/keepalive" "google.golang.org/grpc/keepalive"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/netbirdio/netbird/management/server"
"github.com/rs/xid" "github.com/rs/xid"
"github.com/wiretrustee/wiretrustee/management/server"
) )
func main() { func main() {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"github.com/wiretrustee/wiretrustee/management/server" "github.com/netbirdio/netbird/management/server"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"path/filepath" "path/filepath"
"testing" "testing"
) )

View File

@ -1,9 +1,9 @@
package mock_server package mock_server
import ( import (
"github.com/wiretrustee/wiretrustee/management/server" "github.com/netbirdio/netbird/management/server"
"github.com/wiretrustee/wiretrustee/management/server/jwtclaims" "github.com/netbirdio/netbird/management/server/jwtclaims"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

@ -3,7 +3,7 @@ package mock_server
import ( import (
"context" "context"
"github.com/wiretrustee/wiretrustee/management/proto" "github.com/netbirdio/netbird/management/proto"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
) )

View File

@ -1,7 +1,7 @@
package server package server
import ( import (
"github.com/wiretrustee/wiretrustee/management/proto" "github.com/netbirdio/netbird/management/proto"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"
"net" "net"

View File

@ -5,8 +5,8 @@ import (
"crypto/sha1" "crypto/sha1"
"encoding/base64" "encoding/base64"
"fmt" "fmt"
"github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/management/proto"
"sync" "sync"
"time" "time"
) )

View File

@ -4,7 +4,7 @@ import (
"crypto/hmac" "crypto/hmac"
"crypto/sha1" "crypto/sha1"
"encoding/base64" "encoding/base64"
"github.com/wiretrustee/wiretrustee/util" "github.com/netbirdio/netbird/util"
"testing" "testing"
"time" "time"
) )

View File

@ -1,8 +1,8 @@
package server package server
import ( import (
"github.com/netbirdio/netbird/management/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/management/proto"
"sync" "sync"
) )

View File

@ -1,7 +1,7 @@
package server package server
import ( import (
"github.com/wiretrustee/wiretrustee/management/proto" "github.com/netbirdio/netbird/management/proto"
"testing" "testing"
) )

View File

@ -2,7 +2,7 @@ package client
import ( import (
"fmt" "fmt"
"github.com/wiretrustee/wiretrustee/signal/proto" "github.com/netbirdio/netbird/signal/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"io" "io"
"strings" "strings"

View File

@ -2,11 +2,11 @@ package client
import ( import (
"context" "context"
sigProto "github.com/netbirdio/netbird/signal/proto"
"github.com/netbirdio/netbird/signal/server"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
sigProto "github.com/wiretrustee/wiretrustee/signal/proto"
"github.com/wiretrustee/wiretrustee/signal/server"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"

View File

@ -5,9 +5,9 @@ import (
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/cenkalti/backoff/v4" "github.com/cenkalti/backoff/v4"
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/signal/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/signal/proto"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes" "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"

View File

@ -1,7 +1,7 @@
package client package client
import ( import (
"github.com/wiretrustee/wiretrustee/signal/proto" "github.com/netbirdio/netbird/signal/proto"
) )
type MockClient struct { type MockClient struct {

View File

@ -3,12 +3,12 @@ package cmd
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/netbirdio/netbird/encryption"
"github.com/netbirdio/netbird/signal/proto"
"github.com/netbirdio/netbird/signal/server"
"github.com/netbirdio/netbird/util"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/wiretrustee/wiretrustee/encryption"
"github.com/wiretrustee/wiretrustee/signal/proto"
"github.com/wiretrustee/wiretrustee/signal/server"
"github.com/wiretrustee/wiretrustee/util"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive" "google.golang.org/grpc/keepalive"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/wiretrustee/wiretrustee/signal/cmd" "github.com/netbirdio/netbird/signal/cmd"
"os" "os"
) )

View File

@ -1,8 +1,8 @@
package peer package peer
import ( import (
"github.com/netbirdio/netbird/signal/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/signal/proto"
"sync" "sync"
) )

View File

@ -3,9 +3,9 @@ package server
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/netbirdio/netbird/signal/peer"
"github.com/netbirdio/netbird/signal/proto"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wiretrustee/wiretrustee/signal/peer"
"github.com/wiretrustee/wiretrustee/signal/proto"
"google.golang.org/grpc/codes" "google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata" "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status" "google.golang.org/grpc/status"

View File

@ -3,9 +3,9 @@ package util_test
import ( import (
"crypto/md5" "crypto/md5"
"encoding/hex" "encoding/hex"
"github.com/netbirdio/netbird/util"
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/wiretrustee/wiretrustee/util"
"io" "io"
"io/ioutil" "io/ioutil"
"os" "os"