feat: add tenant entry registration APIs

This commit is contained in:
richjohnrambo
2026-08-24 15:08:47 +08:00
parent ed9413d923
commit e61058ec03
16 changed files with 1174 additions and 0 deletions
+14
View File
@@ -9,6 +9,7 @@ import (
"path"
"regexp"
"strings"
"time"
"slices"
@@ -45,6 +46,19 @@ type Handler interface {
GetIdFromUrl(url string) types.Uid
}
type PublicFileDef struct {
ID string
Purpose string
MimeType string
CreatedAt time.Time
Location string
ETag string
}
type PublicUploader interface {
UploadPublic(fdef *PublicFileDef, file io.Reader) (string, int64, error)
}
type AllowedOrigin struct {
Origin string
URL url.URL