mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
18 lines
754 B
Go
18 lines
754 B
Go
package gmsclient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/cloudmigration"
|
|
)
|
|
|
|
type Client interface {
|
|
ValidateKey(context.Context, cloudmigration.CloudMigrationSession) error
|
|
StartSnapshot(context.Context, cloudmigration.CloudMigrationSession) (*cloudmigration.StartSnapshotResponse, error)
|
|
GetSnapshotStatus(context.Context, cloudmigration.CloudMigrationSession, cloudmigration.CloudMigrationSnapshot, int) (*cloudmigration.GetSnapshotStatusResponse, error)
|
|
CreatePresignedUploadUrl(context.Context, cloudmigration.CloudMigrationSession, cloudmigration.CloudMigrationSnapshot) (string, error)
|
|
ReportEvent(context.Context, cloudmigration.CloudMigrationSession, EventRequestDTO)
|
|
}
|
|
|
|
const logPrefix = "cloudmigration.gmsclient"
|