webui: rename Go module to infix/webui

The webui Go code now lives in the infix source tree rather than being
imported as an external module.  Switch the module path to match that
reality so the imports read coherently with the rest of the codebase.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2026-06-15 19:45:20 +02:00
parent d7120df65f
commit d9611c48a9
43 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/kernelkit/webui
module infix/webui
go 1.22.0
+3 -3
View File
@@ -9,9 +9,9 @@ import (
"log"
"net/http"
"github.com/kernelkit/webui/internal/handlers"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/handlers"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
const cookieName = "session"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/security"
)
const sessionTimeout = 1 * time.Hour
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"log"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
type feature struct {
@@ -7,7 +7,7 @@ import (
"errors"
"testing"
"github.com/kernelkit/webui/internal/testutil"
"infix/webui/internal/testutil"
)
func yangLibraryResponse(modules ...map[string]interface{}) map[string]interface{} {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"context"
"net/http"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
// PageData is the base template data passed to every page.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
const cfgUnsavedCookie = "cfg-unsaved"
@@ -12,8 +12,8 @@ import (
"strconv"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
const fwConfigPath = candidatePath + "/infix-firewall:firewall"
@@ -14,8 +14,8 @@ import (
"strings"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// Configure > Hardware: curated management of components in ietf-hardware /
@@ -20,8 +20,8 @@ import (
"strings"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
const ifaceCandPath = candidatePath + "/ietf-interfaces:interfaces"
@@ -15,8 +15,8 @@ import (
"net/url"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
const keystorePath = candidatePath + "/ietf-keystore:keystore"
@@ -10,8 +10,8 @@ import (
"net/http"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// ─── RESTCONF paths ──────────────────────────────────────────────────────────
@@ -10,8 +10,8 @@ import (
"strconv"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// ─── RESTCONF JSON types (candidate datastore) ────────────────────────────────
@@ -12,8 +12,8 @@ import (
"net/url"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// ─── RESTCONF JSON types ──────────────────────────────────────────────────────
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"net/url"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// containerJSON matches the RESTCONF JSON for a single container entry.
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalContainersTmpl = template.Must(template.New("containers.html").Parse(
+1 -1
View File
@@ -15,7 +15,7 @@ import (
"sync"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// yangInt64 unmarshals a YANG numeric value that RESTCONF encodes as a
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalDashTmpl = template.Must(template.New("dashboard.html").Parse(
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"net/http"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── DHCP types ──────────────────────────────────────────────────────────────
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"sort"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// RESTCONF JSON structures for infix-firewall:firewall.
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"net/http"
"sort"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// Hardware page data — populated from /ietf-hardware:hardware.
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"strings"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// RESTCONF JSON structures for ietf-interfaces:interfaces.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"net/http"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── LLDP types ──────────────────────────────────────────────────────────────
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"sort"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── RESTCONF JSON types ──────────────────────────────────────────────────────
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"net/http"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── RESTCONF JSON types ──────────────────────────────────────────────────────
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"net/http"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── NTP types ───────────────────────────────────────────────────────────────
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"sync"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
type RouteEntry struct {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalRoutingTmpl = template.Must(template.New("routing.html").Parse(
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"sort"
"strconv"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ─── RESTCONF JSON types ──────────────────────────────────────────────────────
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalDHCPTmpl = template.Must(template.New("dhcp.html").Parse(
+1 -1
View File
@@ -18,7 +18,7 @@ import (
"sync"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// raucInstallationStatus reads RAUC's Operation/Progress/LastError D-Bus
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"sync"
"time"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// wgConfigJSON is a local extension for fetching WireGuard configuration
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalVPNTmpl = template.Must(template.New("vpn.html").Parse(
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"net/http"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// wifiRadioHWJSON extends the hardware component wifi-radio container with
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"net/http/httptest"
"testing"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
var minimalWiFiTmpl = template.Must(template.New("wifi.html").Parse(
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"net/http"
"strings"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
const candidateDS = "/ds/ietf-datastores:candidate"
+2 -2
View File
@@ -16,8 +16,8 @@ import (
"unicode"
"unicode/utf8"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// SchemaHandler serves YANG schema queries as JSON (used by the tree UI and
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"os"
"path/filepath"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// ModuleInfo identifies a YANG module by name and revision.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"os"
"sync"
"github.com/kernelkit/webui/internal/restconf"
"infix/webui/internal/restconf"
)
// Cache holds a lazily-loaded schema Manager and refreshes it at startup.
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"net/url"
"strings"
"github.com/kernelkit/webui/internal/auth"
"github.com/kernelkit/webui/internal/handlers"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/security"
"infix/webui/internal/auth"
"infix/webui/internal/handlers"
"infix/webui/internal/restconf"
"infix/webui/internal/security"
)
const cookieName = "session"
+4 -4
View File
@@ -9,10 +9,10 @@ import (
"io/fs"
"net/http"
"github.com/kernelkit/webui/internal/auth"
"github.com/kernelkit/webui/internal/handlers"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"infix/webui/internal/auth"
"infix/webui/internal/handlers"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
)
// New creates a fully wired http.Handler with all routes and middleware.
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"strings"
"time"
"github.com/kernelkit/webui/internal/auth"
"github.com/kernelkit/webui/internal/restconf"
"github.com/kernelkit/webui/internal/schema"
"github.com/kernelkit/webui/internal/server"
"infix/webui/internal/auth"
"infix/webui/internal/restconf"
"infix/webui/internal/schema"
"infix/webui/internal/server"
)
//go:embed templates/*