Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const HeaderContentLength + func CheckInternalPermission(identityInfo apistructs.IdentityInfo) bool + func GetFileContentType(r io.Reader, ext string) string + func GetFileTypeByExt(ext string) pb.FileType + type CleanupConfig struct + ExpiredFilesInterval time.Duration + type HTTPHandler interface + DeleteFile func(rw http.ResponseWriter, r *http.Request) + DownloadFile func(rw http.ResponseWriter, r *http.Request) + HeadFile func(rw http.ResponseWriter, r *http.Request) + UploadFile func(rw http.ResponseWriter, r *http.Request) + type KmsConfig struct + CmkEtcdKey string + type LimitConfig struct + FileMaxMemorySize datasize.ByteSize + FileMaxUploadSize datasize.ByteSize + type LinkConfig struct + UIPublicURL string + type OssConfig struct + AccessID string + AccessSecret string + Bucket string + Endpoint string + PathPrefix string + type SecurityConfig struct + DisableFileDownloadPermissionValidate bool + FileTypeCarryActiveContentAllowed bool + FileTypesCanCarryActiveContent []string + type ServiceInterface interface + DeleteFile func(file db.File) error + DownloadFile func(w io.Writer, file db.File) (headers map[string]string, err error) + UploadFile func(req filetypes.FileUploadRequest) (*pb.File, error) + type StorageConfig struct + OSS OssConfig + StorageMountPointInContainer string