upload/azure: migrate from azure-storage-blob-go to azure-sdk-for-go
https://github.com/Azure/azure-storage-blob-go/ is deprecated, the main SDK should be now used instead. Let's migrate the code. There should be no functional changes. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
9beddf626f
commit
abe6ccfb50
226 changed files with 29224 additions and 30426 deletions
|
|
@ -2,6 +2,7 @@ package common
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"sort"
|
||||
|
|
@ -88,3 +89,15 @@ func DataSizeToUint64(size string) (uint64, error) {
|
|||
// unknown units.
|
||||
return 0, fmt.Errorf("unknown data size units in string: %s", size)
|
||||
}
|
||||
|
||||
// NopSeekCloser returns an io.ReadSeekCloser with a no-op Close method
|
||||
// wrapping the provided io.ReadSeeker r.
|
||||
func NopSeekCloser(r io.ReadSeeker) io.ReadSeekCloser {
|
||||
return nopSeekCloser{r}
|
||||
}
|
||||
|
||||
type nopSeekCloser struct {
|
||||
io.ReadSeeker
|
||||
}
|
||||
|
||||
func (nopSeekCloser) Close() error { return nil }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue