mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Grafana: define the api for the grafana cloudmigration api (not the csm api) (#84430)
* Add cloud migration endpoints * Built auth into creating a migration. * Added more detail to the migration result model * goimports * Update pkg/services/cloudmigration/api/api.go Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com> * Update pkg/services/cloudmigration/api/api.go Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com> --------- Co-authored-by: Leonard Gram <leo@xlson.com> Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>
This commit is contained in:
20
pkg/services/cloudmigration/cloudmigration.go
Normal file
20
pkg/services/cloudmigration/cloudmigration.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package cloudmigration
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type Service interface {
|
||||
CreateToken(context.Context) error
|
||||
ValidateToken(context.Context, string) error
|
||||
SaveEncryptedToken(context.Context, string) error
|
||||
// migration
|
||||
GetMigration(context.Context, int64) (*CloudMigrationResponse, error)
|
||||
GetMigrationList(context.Context) ([]CloudMigrationResponse, error)
|
||||
CreateMigration(context.Context, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
||||
UpdateMigration(context.Context, int64, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
||||
RunMigration(context.Context, string) (*CloudMigrationRun, error)
|
||||
GetMigrationStatus(context.Context, string, string) (*CloudMigrationRun, error)
|
||||
GetMigrationStatusList(context.Context, string) ([]CloudMigrationRun, error)
|
||||
DeleteMigration(context.Context, string) error
|
||||
}
|
||||
Reference in New Issue
Block a user