mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:01:15 +08:00
Cloud migration: upload snapshot files using presigned url (#90273)
* Cloud migration: upload snapshot files using presigned url * log error if index file cannot be closed * log error if file cannot be closed in uploadUsingPresignedURL
This commit is contained in:
10
pkg/services/cloudmigration/objectstorage/objectstorage.go
Normal file
10
pkg/services/cloudmigration/objectstorage/objectstorage.go
Normal file
@ -0,0 +1,10 @@
|
||||
package objectstorage
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
)
|
||||
|
||||
type ObjectStorage interface {
|
||||
PresignedURLUpload(ctx context.Context, url, key string, reader io.Reader) error
|
||||
}
|
Reference in New Issue
Block a user