Documentation
¶
Index ¶
- func BindUserUploadToProject(ctx context.Context, db *gorm.DB, params BindUserUploadParams) (*types.ProjectFile, error)
- func BindUserUploadsToProject(ctx context.Context, db *gorm.DB, params []BindUserUploadParams) ([]*types.ProjectFile, error)
- func NormalizeFolderRelativePath(relativePath string) (string, error)
- type BindUserUploadParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindUserUploadToProject ¶
func BindUserUploadToProject(ctx context.Context, db *gorm.DB, params BindUserUploadParams) (*types.ProjectFile, error)
BindUserUploadToProject creates a ProjectFile record for one upload.
func BindUserUploadsToProject ¶
func BindUserUploadsToProject(ctx context.Context, db *gorm.DB, params []BindUserUploadParams) ([]*types.ProjectFile, error)
BindUserUploadsToProject creates ProjectFile records for multiple uploads in a batch. The caller is responsible for wrapping the call in a transaction if atomicity is required.
func NormalizeFolderRelativePath ¶
NormalizeFolderRelativePath canonicalizes one folder path with a trailing slash.
Types ¶
Click to show internal directories.
Click to hide internal directories.