Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingParent is returned when the parent id or type is missing for file uploads ErrMissingParent = errors.New("parent id or type is missing") // ErrMissingOrganizationID is returned when organization ID cannot be determined for file upload ErrMissingOrganizationID = errors.New("organization ID is required for file upload") )
Functions ¶
func AddFilePermissions ¶
AddFilePermissions writes authorization tuples for uploaded files and removes them from the request context.
func CreateFileRecord ¶
CreateFileRecord creates a file record in the database and returns the resulting ent.File entity.
func UpdateFileWithStorageMetadata ¶
func UpdateFileWithStorageMetadata(ctx context.Context, entFile *ent.File, fileData pkgobjects.File) error
UpdateFileWithStorageMetadata updates a file entity with metadata returned from the storage provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.