Rename module

This commit is contained in:
Torjus Håkestad 2022-01-13 09:10:36 +01:00
parent ae21fd8a11
commit bd7e36e98b
15 changed files with 28 additions and 28 deletions

View File

@ -12,7 +12,7 @@ GIT_COMMIT := $(shell git rev-parse --short HEAD)
BUILD_DIR = build/binary/current
BUILD_OUTPUT = $(BUILD_DIR)/$(NAME)-$(VERSION)-$(OS)-$(ARCH)
BUILD_FLAGS = -tags embed -ldflags "-X github.uio.no/torjus/apiary.Build=$(GIT_COMMIT)" -o $(BUILD_OUTPUT)
BUILD_FLAGS = -tags embed -ldflags "-X git.t-juice.club/torjus/apiary.Build=$(GIT_COMMIT)" -o $(BUILD_OUTPUT)
GEODB_URL = https://raw.githubusercontent.com/geoacumen/geoacumen-country/master/Geoacumen-Country.mmdb
GEODB_PATH = honeypot/Geoacumen-Country.mmdb

View File

@ -9,16 +9,16 @@ import (
"strings"
"time"
"git.t-juice.club/torjus/apiary"
"git.t-juice.club/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/honeypot/ports"
"git.t-juice.club/torjus/apiary/honeypot/smtp"
"git.t-juice.club/torjus/apiary/honeypot/ssh"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/web"
"github.com/coreos/go-systemd/daemon"
sshlib "github.com/gliderlabs/ssh"
"github.com/urfave/cli/v2"
"github.uio.no/torjus/apiary"
"github.uio.no/torjus/apiary/config"
"github.uio.no/torjus/apiary/honeypot/ports"
"github.uio.no/torjus/apiary/honeypot/smtp"
"github.uio.no/torjus/apiary/honeypot/ssh"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/web"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"golang.org/x/crypto/acme/autocert"

2
go.mod
View File

@ -1,4 +1,4 @@
module github.uio.no/torjus/apiary
module git.t-juice.club/torjus/apiary
go 1.16

View File

@ -7,7 +7,7 @@ import (
"context"
"github.uio.no/torjus/apiary/honeypot/ports"
"git.t-juice.club/torjus/apiary/honeypot/ports"
)
func TestServer(t *testing.T) {

View File

@ -10,12 +10,12 @@ import (
gossh "golang.org/x/crypto/ssh"
"github.uio.no/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/models"
sshlib "github.com/gliderlabs/ssh"
"github.com/google/uuid"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/models"
"go.uber.org/zap"
)

View File

@ -1,6 +1,6 @@
package store
import "github.uio.no/torjus/apiary/models"
import "git.t-juice.club/torjus/apiary/models"
type CachingStore struct {
backend LoginAttemptStore

View File

@ -3,7 +3,7 @@ package store_test
import (
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestCacheStore(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"strings"
"sync"
"github.uio.no/torjus/apiary/models"
"git.t-juice.club/torjus/apiary/models"
)
type MemoryStore struct {

View File

@ -3,7 +3,7 @@ package store_test
import (
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestMemoryStore(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"context"
"time"
"git.t-juice.club/torjus/apiary/models"
"github.com/prometheus/client_golang/prometheus"
"github.uio.no/torjus/apiary/models"
)
const tickDuration = 5 * time.Second

View File

@ -5,8 +5,8 @@ import (
"fmt"
"net"
"git.t-juice.club/torjus/apiary/models"
_ "github.com/jackc/pgx/v4/stdlib"
"github.uio.no/torjus/apiary/models"
)
const DBSchema = `

View File

@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
)
func TestPostgresStore(t *testing.T) {

View File

@ -3,7 +3,7 @@ package store
import (
"errors"
"github.uio.no/torjus/apiary/models"
"git.t-juice.club/torjus/apiary/models"
)
var ErrStoreUnhealthy = errors.New("store is unhealthy")

View File

@ -6,9 +6,9 @@ import (
"testing"
"time"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/models"
"github.com/google/uuid"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/models"
)
func testLoginAttemptStore(s store.LoginAttemptStore, t *testing.T) {

View File

@ -11,15 +11,15 @@ import (
"sync"
"time"
"git.t-juice.club/torjus/apiary"
"git.t-juice.club/torjus/apiary/config"
"git.t-juice.club/torjus/apiary/honeypot/ssh"
"git.t-juice.club/torjus/apiary/honeypot/ssh/store"
"git.t-juice.club/torjus/apiary/models"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/google/uuid"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.uio.no/torjus/apiary"
"github.uio.no/torjus/apiary/config"
"github.uio.no/torjus/apiary/honeypot/ssh"
"github.uio.no/torjus/apiary/honeypot/ssh/store"
"github.uio.no/torjus/apiary/models"
"go.uber.org/zap"
"golang.org/x/crypto/acme/autocert"
)