(storage driver.Driver)
| 769 | } |
| 770 | |
| 771 | func GetDirectUploadTools(storage driver.Driver) []string { |
| 772 | du, ok := storage.(driver.DirectUploader) |
| 773 | if !ok { |
| 774 | return nil |
| 775 | } |
| 776 | if storage.Config().CheckStatus && storage.GetStorage().Status != WORK { |
| 777 | return nil |
| 778 | } |
| 779 | return du.GetDirectUploadTools() |
| 780 | } |
| 781 | |
| 782 | func GetDirectUploadInfo(ctx context.Context, tool string, storage driver.Driver, dstDirPath, dstName string, fileSize int64, overwrite bool) (any, error) { |
| 783 | du, ok := storage.(driver.DirectUploader) |
no test coverage detected