mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:23:10 +08:00

* - Added migration to add a new collumn UID to both migration and migration_run tables. - Added migration to set UID for records already existent in the database before adding a new column. - Added UID field to CloudMigration and CloudMigrationRun dtos (model.go) * Fix db migration * Updating store and model * Updating API to use UID * fix typo * update openapi specs and generated endpoints * fix spec * update openapi specs and generated endpoints * Fixing db mapping * Fix frontend * fix migration * remove migration uid from run fetch endpoint * Revert "merge" This reverts commit d654e4c530caebe439060c876c44132e74a28de8, reversing changes made to 5fe0b483eb62cc9dfceb01043d2165617d974ed9. * manual merge * rename some funcs for consistency * make interfaces consistent * validate uids * update generated frontend api * fix enterprise spec * manually resolve api * try again * try yet again * once more --------- Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com> Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com> Co-authored-by: joshhunt <josh@trtr.co>
22 lines
932 B
Go
22 lines
932 B
Go
package cloudmigration
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
CreateToken(context.Context) (CreateAccessTokenResponse, error)
|
|
ValidateToken(context.Context, CloudMigration) error
|
|
|
|
CreateMigration(context.Context, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
|
GetMigration(ctx context.Context, uid string) (*CloudMigration, error)
|
|
DeleteMigration(ctx context.Context, uid string) (*CloudMigration, error)
|
|
UpdateMigration(ctx context.Context, uid string, request CloudMigrationRequest) (*CloudMigrationResponse, error)
|
|
GetMigrationList(context.Context) (*CloudMigrationListResponse, error)
|
|
|
|
RunMigration(ctx context.Context, uid string) (*MigrateDataResponseDTO, error)
|
|
CreateMigrationRun(context.Context, CloudMigrationRun) (string, error)
|
|
GetMigrationStatus(ctx context.Context, runUID string) (*CloudMigrationRun, error)
|
|
GetMigrationRunList(context.Context, string) (*CloudMigrationRunList, error)
|
|
}
|