feat: add tenant entry registration APIs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user