Documentation
¶
Index ¶
- Constants
- func CreateFolder(parent, name string, user *model.User) (string, error)
- func GetMedia(path, name string) (*model.Media, error)
- func ListFolders(path string) ([]model.MediaFolder, error)
- func MakeMediaPublish(siteID, path, name string, obj any, publish bool) error
- func PrepareStoreLocalDir() (string, error)
- func RemoveDirectory(path string) (string, error)
- func RemoveFile(path, name string) error
- func StoreExternal(externalUploader, path, name string, data []byte) (string, error)
- func StoreLocal(uploadDir, storePath string, data []byte) (string, error)
- func UploadFile(path, name string, reader io.Reader) (*model.UploadResult, error)
Constants ¶
View Source
const ( KeyDB = "admin.media.gorm.db" KeyNoCheckRouter = "admin.media.router.nocheck" KeyCheckRouter = "admin.media.router.check" )
Variables ¶
This section is empty.
Functions ¶
func ListFolders ¶
func ListFolders(path string) ([]model.MediaFolder, error)
func MakeMediaPublish ¶
func PrepareStoreLocalDir ¶
func RemoveDirectory ¶
func RemoveFile ¶
func StoreExternal ¶
func UploadFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.