Documentation
¶
Index ¶
- func ApplyBindResult(ctx context.Context, db *gorm.DB, provider blob.Provider, ...) error
- func CompleteUpload(ctx context.Context, tx *gorm.DB, provider blob.Provider, file *models.File, ...) error
- func ContentUploadURL(fileID uuid.UUID) string
- func DeleteObject(ctx context.Context, provider blob.Provider, key string) error
- func DeleteObjectAndRow(ctx context.Context, tx *gorm.DB, provider blob.Provider, file *models.File) error
- func DeleteObjects(ctx context.Context, provider blob.Provider, keys []string) error
- func DownloadURL(ctx context.Context, provider blob.Provider, file *models.File, ...) (string, error)
- func RestoreFileRefs(tx *gorm.DB, organizationID, factoryID, workOrderID uuid.UUID, markdown string) (string, error)
- func SweepObjects(ctx context.Context, db *gorm.DB, provider blob.Provider, ...) error
- type BindResult
- type DispatchFile
- type FetchFunc
- type IncomingFile
- type IngestResult
- type PendingUpload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyBindResult ¶
func CompleteUpload ¶
func ContentUploadURL ¶
func DeleteObject ¶
func DeleteObjectAndRow ¶
func DeleteObjects ¶
func DownloadURL ¶
func RestoreFileRefs ¶
Types ¶
type BindResult ¶
type DispatchFile ¶
type DispatchFile struct {
ID uuid.UUID
Filename string
ContentType string
SizeBytes int64
Checksum string
URL string
}
func DescriptionForDispatch ¶
func (DispatchFile) Map ¶
func (f DispatchFile) Map() map[string]any
type FetchFunc ¶
func FetcherFromHTTP ¶
func FetcherFromHTTP(httpCtx core.HTTPContext) FetchFunc
type IncomingFile ¶
IncomingFile is a downloaded remote file to store on a work order. ReplaceURLs are exact strings in the description that become the stored file reference. When none of them occur, the file is appended.
type IngestResult ¶
func AppendTaskFiles ¶
Click to show internal directories.
Click to hide internal directories.