replace vault by kasier

This commit is contained in:
m
2026-09-17 07:59:21 +02:00
parent cd4f0179fc
commit f29a3c3617
191 changed files with 956 additions and 927 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"strings"
"github.com/vaultdrop/backend/pkg/passwd"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/pkg/passwd"
"github.com/kazier/backend/repository"
)
// ErrAdminRequired : base vide et identifiants admin absents → le serveur
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"errors"
"testing"
"github.com/vaultdrop/backend/pkg/passwd"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/pkg/passwd"
"github.com/kazier/backend/repository"
)
func TestEnsureAdminCreatesFirstAdmin(t *testing.T) {
+1 -1
View File
@@ -1,6 +1,6 @@
package service
import "github.com/vaultdrop/backend/models"
import "github.com/kazier/backend/models"
func (s *Services) CreateFolder(folderName string, destination *models.Document) (*models.Document, error) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/vaultdrop/backend/models"
"github.com/kazier/backend/models"
)
func (s *Services) MoveDocumentIntoDocument(from *models.Document, to *models.Document) error {
+1 -1
View File
@@ -3,7 +3,7 @@ package service
import (
"testing"
"github.com/vaultdrop/backend/models"
"github.com/kazier/backend/models"
)
func TestMoveDocument(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"sync"
"time"
"github.com/vaultdrop/backend/ocr"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/ocr"
"github.com/kazier/backend/repository"
)
const (
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/vaultdrop/backend/ocr"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/ocr"
"github.com/kazier/backend/repository"
)
// stubEngine again (package service) — même contrat que handlers/ocr_test.
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
"time"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/repository"
)
// ErrFileTooLarge signals an upload above MaxFileSize.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"path/filepath"
"testing"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/repository"
)
func multipartFileHeader(t *testing.T, filename string, content []byte) *multipart.FileHeader {
+1 -1
View File
@@ -1,6 +1,6 @@
package service
import "github.com/vaultdrop/backend/models"
import "github.com/kazier/backend/models"
type Services struct {
ConnectedUser *models.User
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"regexp"
"time"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/repository"
)
var resourceIDPattern = regexp.MustCompile(`^[0-9a-f]{32}$`)
+3 -3
View File
@@ -6,11 +6,11 @@ import (
"testing"
"time"
"github.com/vaultdrop/backend/dbtest"
"github.com/vaultdrop/backend/repository"
"github.com/kazier/backend/dbtest"
"github.com/kazier/backend/repository"
)
const serviceTestURL = "postgres://vaultdrop:vaultdrop@localhost:5432/vaultdrop_service_test?sslmode=disable"
const serviceTestURL = "postgres://kazier:kazier@localhost:5432/kazier_service_test?sslmode=disable"
// newServiceStore returns a Resources service over a fresh migrated test DB.
func newServiceStore(t *testing.T) *Resources {
+1 -1
View File
@@ -3,7 +3,7 @@ package service
import (
"fmt"
"github.com/vaultdrop/backend/models"
"github.com/kazier/backend/models"
)
func (s *Services) UploadDocument(file *string, destination *models.Document) error {