Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMinMissingInteger ¶ added in v1.1.0
FindMinMissingInteger finds the minimum missing integer in a sorted array
Types ¶
type ApiOpts ¶ added in v1.1.3
type ApiOpts struct { api.SecurityTokenInterface api.FileInterface }
type FileInfo ¶
type FileInfo struct { Path string Size int64 Sha256 string Uploaded int64 Status UploadStatusEnum }
FileInfo contains the path, size and sha256 of a file.
type FileOpts ¶ added in v1.1.3
type IncUploadedMsg ¶
IncUploadedMsg is used to send incremental uploaded size to the progress update goroutine
type MultipartCheckpointInfo ¶
type MultipartCheckpointInfo struct { UploadId string `json:"upload_id"` UploadedSize int64 `json:"uploaded_size"` Parts []minio.CompletePart `json:"parts"` }
MultipartCheckpointInfo contains the information needed to resume a multipart upload.
type TickMsg ¶ added in v1.1.4
TickMsg is a message that is sent to the update function every 0.5 second.
type UploadDB ¶ added in v1.1.0
func NewUploadDB ¶ added in v1.1.0
type UploadInfo ¶
type UploadInfo struct { Path string Bucket string Key string Tags map[string]string FileReader *os.File // Upload result infos Result minio.ObjectPart Err error // Multipart info UploadId string PartId int TotalPartsCount int ReadOffset int64 ReadSize int64 DB *UploadDB }
UploadInfo contains the information needed to upload a file or a file part (multipart upload).
type UploadManager ¶
type UploadManager struct {
// contains filtered or unexported fields
}
UploadManager is a manager for uploading files through minio client.
func NewUploadManagerFromConfig ¶ added in v1.1.0
func NewUploadManagerFromConfig(proj *name.Project, timeout time.Duration, apiOpts *ApiOpts, opts *UploadManagerOpts) (*UploadManager, error)
func (*UploadManager) Init ¶
func (um *UploadManager) Init() tea.Cmd
func (*UploadManager) View ¶
func (um *UploadManager) View() string
type UploadManagerOpts ¶
type UploadManagerOpts struct { Threads int PartSize string // contains filtered or unexported fields }
func (*UploadManagerOpts) Valid ¶
func (opt *UploadManagerOpts) Valid() error
type UploadStatusEnum ¶
type UploadStatusEnum int
UploadStatusEnum is used to keep track of the state of a file upload
const ( // Unprocessed is used to indicate that the file has not been processed yet Unprocessed UploadStatusEnum = iota // CalculatingSha256 is used to indicate that the file sha256 is being calculated CalculatingSha256 // PreviouslyUploaded is used to indicate that the file has been uploaded before PreviouslyUploaded // WaitingForUpload is used to indicate that the file is waiting to be uploaded WaitingForUpload // UploadInProgress is used to indicate that the file upload is in progress UploadInProgress // UploadCompleted is used to indicate that the file upload has completed UploadCompleted // MultipartCompletionInProgress is used to indicate that the multipart upload completion is in progress MultipartCompletionInProgress // UploadFailed is used to indicate that the file upload has failed UploadFailed )
Click to show internal directories.
Click to hide internal directories.