refactor: migrate module path from git.t-juice.club to code.t-juice.club
Update Go module path and all import references to reflect the migration from Gitea (git.t-juice.club) to Forgejo (code.t-juice.club). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,11 +13,11 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/metrics"
|
"code.t-juice.club/torjus/oubliette/internal/metrics"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/server"
|
"code.t-juice.club/torjus/oubliette/internal/server"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/web"
|
"code.t-juice.club/torjus/oubliette/internal/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Version = "0.18.0"
|
const Version = "0.18.0"
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module git.t-juice.club/torjus/oubliette
|
module code.t-juice.club/torjus/oubliette
|
||||||
|
|
||||||
go 1.25.5
|
go 1.25.5
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newTestAuth(acceptAfter int, ttl time.Duration, statics ...config.Credential) *Authenticator {
|
func newTestAuth(acceptAfter int, ttl time.Duration, statics ...config.Credential) *Authenticator {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/collectors"
|
"github.com/prometheus/client_golang/prometheus/collectors"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNew(t *testing.T) {
|
func TestNew(t *testing.T) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Event types.
|
// Event types.
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testSession() SessionInfo {
|
func testSession() SessionInfo {
|
||||||
|
|||||||
@@ -12,22 +12,22 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/auth"
|
"code.t-juice.club/torjus/oubliette/internal/auth"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/detection"
|
"code.t-juice.club/torjus/oubliette/internal/detection"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/geoip"
|
"code.t-juice.club/torjus/oubliette/internal/geoip"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/metrics"
|
"code.t-juice.club/torjus/oubliette/internal/metrics"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/notify"
|
"code.t-juice.club/torjus/oubliette/internal/notify"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/adventure"
|
"code.t-juice.club/torjus/oubliette/internal/shell/adventure"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/banking"
|
"code.t-juice.club/torjus/oubliette/internal/shell/banking"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/bash"
|
"code.t-juice.club/torjus/oubliette/internal/shell/bash"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/cisco"
|
"code.t-juice.club/torjus/oubliette/internal/shell/cisco"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/fridge"
|
"code.t-juice.club/torjus/oubliette/internal/shell/fridge"
|
||||||
psqlshell "git.t-juice.club/torjus/oubliette/internal/shell/psql"
|
psqlshell "code.t-juice.club/torjus/oubliette/internal/shell/psql"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/roomba"
|
"code.t-juice.club/torjus/oubliette/internal/shell/roomba"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell/tetris"
|
"code.t-juice.club/torjus/oubliette/internal/shell/tetris"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/auth"
|
"code.t-juice.club/torjus/oubliette/internal/auth"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/config"
|
"code.t-juice.club/torjus/oubliette/internal/config"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/metrics"
|
"code.t-juice.club/torjus/oubliette/internal/metrics"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
"golang.org/x/crypto/ssh"
|
"golang.org/x/crypto/ssh"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 10 * time.Minute
|
const sessionTimeout = 10 * time.Minute
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type rwCloser struct {
|
type rwCloser struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 10 * time.Minute
|
const sessionTimeout = 10 * time.Minute
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newTestModel creates a model with a test session context.
|
// newTestModel creates a model with a test session context.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
type screen int
|
type screen int
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 5 * time.Minute
|
const sessionTimeout = 5 * time.Minute
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type rwCloser struct {
|
type rwCloser struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 5 * time.Minute
|
const sessionTimeout = 5 * time.Minute
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventRecorder buffers I/O events in memory and periodically flushes them to
|
// EventRecorder buffers I/O events in memory and periodically flushes them to
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEventRecorderFlush(t *testing.T) {
|
func TestEventRecorderFlush(t *testing.T) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 5 * time.Minute
|
const sessionTimeout = 5 * time.Minute
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type rwCloser struct {
|
type rwCloser struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 5 * time.Minute
|
const sessionTimeout = 5 * time.Minute
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 5 * time.Minute
|
const sessionTimeout = 5 * time.Minute
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Shell is the interface that all honeypot shell implementations must satisfy.
|
// Shell is the interface that all honeypot shell implementations must satisfy.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
type screen int
|
type screen int
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sessionTimeout = 10 * time.Minute
|
const sessionTimeout = 10 * time.Minute
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/shell"
|
"code.t-juice.club/torjus/oubliette/internal/shell"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// newTestModel creates a model with a test session context.
|
// newTestModel creates a model with a test session context.
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// dbContext returns a context detached from the HTTP request lifecycle with a
|
// dbContext returns a context detached from the HTTP request lifecycle with a
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed static/*
|
//go:embed static/*
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.t-juice.club/torjus/oubliette/internal/metrics"
|
"code.t-juice.club/torjus/oubliette/internal/metrics"
|
||||||
"git.t-juice.club/torjus/oubliette/internal/storage"
|
"code.t-juice.club/torjus/oubliette/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newTestServer(t *testing.T) *Server {
|
func newTestServer(t *testing.T) *Server {
|
||||||
|
|||||||
Reference in New Issue
Block a user