Documentation ¶
Index ¶
- Constants
- func SetObjectPermission(fileName string, isPublic bool) error
- func UploadFileToS3(file multipart.File, fileName string, size int64, isPublic bool) error
- type ObjectstoreController
- func (controller *ObjectstoreController) DeleteFile() gin.HandlerFunc
- func (controller *ObjectstoreController) GetFile() gin.HandlerFunc
- func (controller *ObjectstoreController) GetPresignUrl() gin.HandlerFunc
- func (controller *ObjectstoreController) GetPublicFile() gin.HandlerFunc
- func (controller *ObjectstoreController) ListFiles() gin.HandlerFunc
- func (controller *ObjectstoreController) SetAccess() gin.HandlerFunc
- func (controller *ObjectstoreController) SetUserGroups() gin.HandlerFunc
- func (controller *ObjectstoreController) Upload(pService projectService.ProjectService) gin.HandlerFunc
Constants ¶
View Source
const MaxFileSize = 10 * 1024 * 1024 // 10MB
Todo: Get this from config
Variables ¶
This section is empty.
Functions ¶
func SetObjectPermission ¶
This function sets the permission of the actual object on S3
Types ¶
type ObjectstoreController ¶
type ObjectstoreController struct {
Service objectstoreService.ObjectstoreService
}
func (*ObjectstoreController) DeleteFile ¶
func (controller *ObjectstoreController) DeleteFile() gin.HandlerFunc
func (*ObjectstoreController) GetFile ¶
func (controller *ObjectstoreController) GetFile() gin.HandlerFunc
func (*ObjectstoreController) GetPresignUrl ¶
func (controller *ObjectstoreController) GetPresignUrl() gin.HandlerFunc
func (*ObjectstoreController) GetPublicFile ¶
func (controller *ObjectstoreController) GetPublicFile() gin.HandlerFunc
This function should not be used anymore. Let's just keep it for now!
func (*ObjectstoreController) ListFiles ¶
func (controller *ObjectstoreController) ListFiles() gin.HandlerFunc
func (*ObjectstoreController) SetAccess ¶
func (controller *ObjectstoreController) SetAccess() gin.HandlerFunc
func (*ObjectstoreController) SetUserGroups ¶
func (controller *ObjectstoreController) SetUserGroups() gin.HandlerFunc
func (*ObjectstoreController) Upload ¶
func (controller *ObjectstoreController) Upload(pService projectService.ProjectService) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.