NewFileUploader creates a new file uploader for the specified namespace
(mtaClient mtaclient.MtaClientOperations, namespace string, uploadChunkSizeInMB uint64, sequentialUpload, shouldDisableProgressBar bool)
| 83 | |
| 84 | // NewFileUploader creates a new file uploader for the specified namespace |
| 85 | func NewFileUploader(mtaClient mtaclient.MtaClientOperations, namespace string, uploadChunkSizeInMB uint64, |
| 86 | sequentialUpload, shouldDisableProgressBar bool) *FileUploader { |
| 87 | return &FileUploader{ |
| 88 | mtaClient: mtaClient, |
| 89 | namespace: namespace, |
| 90 | uploadChunkSizeInMB: uploadChunkSizeInMB, |
| 91 | sequentialUpload: sequentialUpload, |
| 92 | shouldDisableProgressBar: shouldDisableProgressBar, |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | // UploadFiles uploads the files |
| 97 | func (f *FileUploader) UploadFiles(files []string) ([]*models.FileMetadata, ExecutionStatus) { |
no outgoing calls
no test coverage detected