Skip to content

Commit

Permalink
Merge pull request #23 from telekom-mms/feature/update-go-module-names
Browse files Browse the repository at this point in the history
Feature/update go module names
  • Loading branch information
hwipl authored Jun 1, 2023
2 parents c723160 + f1819e6 commit 5354fcf
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion cmd/oc-client/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/T-Systems-MMS/oc-daemon/internal/client"
import "github.com/telekom-mms/oc-daemon/internal/client"

func main() {
client.Run()
Expand Down
2 changes: 1 addition & 1 deletion cmd/oc-daemon-vpncscript/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/T-Systems-MMS/oc-daemon/internal/vpncscript"
import "github.com/telekom-mms/oc-daemon/internal/vpncscript"

func main() {
vpncscript.Run()
Expand Down
2 changes: 1 addition & 1 deletion cmd/oc-daemon/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/T-Systems-MMS/oc-daemon/internal/daemon"
import "github.com/telekom-mms/oc-daemon/internal/daemon"

func main() {
daemon.Run()
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/T-Systems-MMS/oc-daemon
module github.com/telekom-mms/oc-daemon

go 1.18

require (
github.com/T-Systems-MMS/tnd v0.0.0-20230404085219-434ecc2a5379
github.com/fsnotify/fsnotify v1.6.0
github.com/godbus/dbus/v5 v5.1.0
github.com/miekg/dns v1.1.53
github.com/sirupsen/logrus v1.9.0
github.com/telekom-mms/tnd v0.0.0-20230531180948-b1baa08c638b
github.com/vishvananda/netlink v1.1.0
golang.org/x/sys v0.6.0
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
github.com/T-Systems-MMS/tnd v0.0.0-20230404085219-434ecc2a5379 h1:nKPbpauxqcArtC5Td+LnnQQcZ+bxs5zm15QjTeMECmM=
github.com/T-Systems-MMS/tnd v0.0.0-20230404085219-434ecc2a5379/go.mod h1:u0Su8iHxWHsa/v8QKxiIZHhtjRZPaOEoxCv17xaHxSE=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand All @@ -16,6 +14,8 @@ github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/telekom-mms/tnd v0.0.0-20230531180948-b1baa08c638b h1:gmtBIhYgqSPuwhJb3dfegFoUc97QfhDTgyxAQl3h/WI=
github.com/telekom-mms/tnd v0.0.0-20230531180948-b1baa08c638b/go.mod h1:MYxL04Fs4kJfHEBOLsTWsC0DS1stAo9uhDoI9wMJbRs=
github.com/vishvananda/netlink v1.1.0 h1:1iyaYNBLmP6L0220aDnYQpo1QEV4t4hJ+xEEhhJH8j0=
github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU=
Expand Down
6 changes: 3 additions & 3 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"time"

"github.com/T-Systems-MMS/oc-daemon/pkg/client"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnstatus"
"github.com/T-Systems-MMS/oc-daemon/pkg/xmlprofile"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/pkg/client"
"github.com/telekom-mms/oc-daemon/pkg/vpnstatus"
"github.com/telekom-mms/oc-daemon/pkg/xmlprofile"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/client/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"path/filepath"

"github.com/T-Systems-MMS/oc-daemon/internal/daemon"
"github.com/T-Systems-MMS/oc-daemon/pkg/client"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/daemon"
"github.com/telekom-mms/oc-daemon/pkg/client"
)

var (
Expand Down
26 changes: 13 additions & 13 deletions internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ import (
"syscall"
"time"

"github.com/T-Systems-MMS/oc-daemon/internal/api"
"github.com/T-Systems-MMS/oc-daemon/internal/dbusapi"
"github.com/T-Systems-MMS/oc-daemon/internal/dnsproxy"
"github.com/T-Systems-MMS/oc-daemon/internal/ocrunner"
"github.com/T-Systems-MMS/oc-daemon/internal/profilemon"
"github.com/T-Systems-MMS/oc-daemon/internal/sleepmon"
"github.com/T-Systems-MMS/oc-daemon/internal/splitrt"
"github.com/T-Systems-MMS/oc-daemon/internal/trafpol"
"github.com/T-Systems-MMS/oc-daemon/pkg/logininfo"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnstatus"
"github.com/T-Systems-MMS/oc-daemon/pkg/xmlprofile"
"github.com/T-Systems-MMS/tnd/pkg/trustnet"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/api"
"github.com/telekom-mms/oc-daemon/internal/dbusapi"
"github.com/telekom-mms/oc-daemon/internal/dnsproxy"
"github.com/telekom-mms/oc-daemon/internal/ocrunner"
"github.com/telekom-mms/oc-daemon/internal/profilemon"
"github.com/telekom-mms/oc-daemon/internal/sleepmon"
"github.com/telekom-mms/oc-daemon/internal/splitrt"
"github.com/telekom-mms/oc-daemon/internal/trafpol"
"github.com/telekom-mms/oc-daemon/pkg/logininfo"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnstatus"
"github.com/telekom-mms/oc-daemon/pkg/xmlprofile"
"github.com/telekom-mms/tnd/pkg/trustnet"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/vpnconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net"
"os/exec"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
"github.com/vishvananda/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/vpnconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
"github.com/vishvananda/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/vpnconfigupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package daemon
import (
"encoding/json"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// VPNConfigUpdate is a VPN configuration update
Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/vpnconfigupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// TestVPNConfigUpdateValid tests Valid of VPNConfigUpdate
Expand Down
2 changes: 1 addition & 1 deletion internal/ocrunner/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strconv"
"strings"

"github.com/T-Systems-MMS/oc-daemon/pkg/logininfo"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/pkg/logininfo"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/splitrt/addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package splitrt
import (
"net"

"github.com/T-Systems-MMS/oc-daemon/internal/addrmon"
"github.com/telekom-mms/oc-daemon/internal/addrmon"
)

// Addresses is a set of addresses
Expand Down
2 changes: 1 addition & 1 deletion internal/splitrt/addresses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/internal/addrmon"
"github.com/telekom-mms/oc-daemon/internal/addrmon"
)

// getTestAddrMonUpdate returns an AddrMon update for testing
Expand Down
2 changes: 1 addition & 1 deletion internal/splitrt/devices.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package splitrt

import (
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/devmon"
)

// Devices is a set of devices
Expand Down
2 changes: 1 addition & 1 deletion internal/splitrt/devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/devmon"
)

// getTestDevMonUpdate returns a DevMon Update for testing
Expand Down
8 changes: 4 additions & 4 deletions internal/splitrt/splitrt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package splitrt
import (
"net"

"github.com/T-Systems-MMS/oc-daemon/internal/addrmon"
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/T-Systems-MMS/oc-daemon/internal/dnsproxy"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/addrmon"
"github.com/telekom-mms/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/dnsproxy"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// SplitRouting is a split routing configuration
Expand Down
8 changes: 4 additions & 4 deletions internal/splitrt/splitrt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/internal/addrmon"
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/T-Systems-MMS/oc-daemon/internal/dnsproxy"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/internal/addrmon"
"github.com/telekom-mms/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/dnsproxy"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
"github.com/vishvananda/netlink"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/trafpol/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os/exec"
"strings"

"github.com/T-Systems-MMS/oc-daemon/internal/splitrt"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/splitrt"
)

// runNft runs nft and passes s to it via stdin
Expand Down
6 changes: 3 additions & 3 deletions internal/trafpol/trafpol.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package trafpol

import (
"github.com/T-Systems-MMS/oc-daemon/internal/cpd"
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/T-Systems-MMS/oc-daemon/internal/dnsmon"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/cpd"
"github.com/telekom-mms/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/dnsmon"
)

// TrafPol is a traffic policing component
Expand Down
4 changes: 2 additions & 2 deletions internal/trafpol/trafpol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"sync"
"testing"

"github.com/T-Systems-MMS/oc-daemon/internal/cpd"
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
"github.com/telekom-mms/oc-daemon/internal/cpd"
"github.com/telekom-mms/oc-daemon/internal/devmon"
"github.com/vishvananda/netlink"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/vpncscript/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package vpncscript
import (
"net"

"github.com/T-Systems-MMS/oc-daemon/internal/api"
"github.com/T-Systems-MMS/oc-daemon/internal/daemon"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/api"
"github.com/telekom-mms/oc-daemon/internal/daemon"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/vpncscript/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/T-Systems-MMS/oc-daemon/internal/daemon"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/daemon"
)

// Run is the main entry point of vpnc script
Expand Down
4 changes: 2 additions & 2 deletions internal/vpncscript/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strconv"
"strings"

"github.com/T-Systems-MMS/oc-daemon/internal/daemon"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/daemon"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// createConfigGeneral creates the general configuration in config from env
Expand Down
2 changes: 1 addition & 1 deletion internal/vpncscript/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// TestCreateConfigSplit tests createConfigSplit
Expand Down
8 changes: 4 additions & 4 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"strings"
"sync"

"github.com/T-Systems-MMS/oc-daemon/internal/dbusapi"
"github.com/T-Systems-MMS/oc-daemon/pkg/logininfo"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnstatus"
"github.com/godbus/dbus/v5"
"github.com/telekom-mms/oc-daemon/internal/dbusapi"
"github.com/telekom-mms/oc-daemon/pkg/logininfo"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnstatus"
)

// Client is an OC-Daemon client
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"reflect"
"testing"

"github.com/T-Systems-MMS/oc-daemon/internal/dbusapi"
"github.com/T-Systems-MMS/oc-daemon/pkg/logininfo"
"github.com/T-Systems-MMS/oc-daemon/pkg/vpnstatus"
"github.com/godbus/dbus/v5"
"github.com/telekom-mms/oc-daemon/internal/dbusapi"
"github.com/telekom-mms/oc-daemon/pkg/logininfo"
"github.com/telekom-mms/oc-daemon/pkg/vpnstatus"
)

// TestDBusClientSetGetConfig tests SetConfig and GetConfig of DBusClient
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/T-Systems-MMS/oc-daemon/pkg/xmlprofile"
"github.com/telekom-mms/oc-daemon/pkg/xmlprofile"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/vpnstatus/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package vpnstatus
import (
"encoding/json"

"github.com/T-Systems-MMS/oc-daemon/pkg/vpnconfig"
"github.com/telekom-mms/oc-daemon/pkg/vpnconfig"
)

// TrustedNetwork is the current trusted network state
Expand Down
2 changes: 1 addition & 1 deletion tools/dbusclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"fmt"

"github.com/T-Systems-MMS/oc-daemon/internal/dbusapi"
"github.com/godbus/dbus/v5"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/dbusapi"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tools/devmon/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/T-Systems-MMS/oc-daemon/internal/devmon"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/devmon"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tools/dnsproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"flag"
"strings"

"github.com/T-Systems-MMS/oc-daemon/internal/dnsproxy"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/dnsproxy"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions tools/ocrunner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"flag"
"time"

"github.com/T-Systems-MMS/oc-daemon/internal/ocrunner"
"github.com/T-Systems-MMS/oc-daemon/pkg/client"
log "github.com/sirupsen/logrus"
"github.com/telekom-mms/oc-daemon/internal/ocrunner"
"github.com/telekom-mms/oc-daemon/pkg/client"
)

func main() {
Expand Down

0 comments on commit 5354fcf

Please sign in to comment.