Documentation
¶
Overview ¶
Package serializer ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DirPathRegex = regexp.MustCompile(`^(/[\p{Han}\sA-Za-z0-9_-]+)*/$`)
DirPathRegex 对象存储目录名称正则
View Source
var ObjNameRegex = regexp.MustCompile(`^[\p{Han}\sA-Za-z0-9._-]+(\.[A-Za-z0-9._-]+)*$`)
ObjNameRegex 对象存储文件名称正则
Functions ¶
This section is empty.
Types ¶
type CreateDirRequest ¶
type CreateDirRequest struct {
DirPath string `form:"dirPath" binding:"required"`
}
CreateDirRequest ...
type DownloadObjectRequest ¶
type DownloadObjectRequest struct {
DirPath string `form:"dirPath"`
ObjName string `form:"objName"`
}
DownloadObjectRequest ...
type ListObjectsResponse ¶
type ListObjectsResponse struct {
Name string `json:"name"`
IsDir bool `json:"isDir"`
Size int64 `json:"size"`
SHA256 string `json:"sha256"`
UpdatedAt string `json:"updatedAt"`
}
ListObjectsResponse ...
type UploadObjectRequest ¶
type UploadObjectRequest struct {
File *multipart.FileHeader `form:"file"`
DirPath string `form:"dirPath"`
}
UploadObjectRequest ...
Click to show internal directories.
Click to hide internal directories.