Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileDTO ¶
type FileDTO struct { UploadID string `json:"upload_id"` S3Key string `json:"s3_key"` TargetPath string `json:"target_path"` TargetName string `json:"target_name"` Status Status `json:"status"` MergePackageId string `json:"merge_package_id"` // MergePackageId is ID of package if not using UploadID FileType string `json:"file_type"` // FileType is string representation of fileType (auto populated if empty) }
FileDTO used to transfer file object in API requests.
type FileStatusDTO ¶
FileStatusDTO used to transfer status information in API requests.
type Status ¶
type Status int64
const ( Local Status = iota // set when client creates upload (local only) Registered // set when client syncs with server (local, server) Imported // set when uploader imported file (local, server) Finalized // set when importer moves file to final destination (local, server) Verified // set when client is informed of finalized status (local, server) Failed // set when importer fails to import (local, server) Removed // set when client removes file locally (local only) Unknown // set when sync failed (local only) Changed // set when synced file is updated locally (local only) Uploaded // set when file has successfully been uploaded to server (local only) )
func (Status) IsInProgress ¶
IsInProgress returns a boolean indicating whether upload status reflects a finalized status
func (Status) ManifestFileStatusMap ¶
ManifestFileStatusMap maps string values to FileStatus objects.
Click to show internal directories.
Click to hide internal directories.