Files
grafana/pkg/services/cloudmigration/cloudmigration.go
grafana-delivery-bot[bot] 23a24bc9af [v11.0.x] CloudMigration: Add service to list all migrations (#86350)
CloudMigration:  Add service to list all migrations (#85308)

(cherry picked from commit 5b147d0847)

Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>
2024-04-16 16:24:38 +01:00

21 lines
854 B
Go

package cloudmigration
import (
"context"
)
type Service interface {
CreateToken(context.Context) (CreateAccessTokenResponse, error)
ValidateToken(context.Context, string) error
SaveEncryptedToken(context.Context, string) error
// migration
GetMigration(context.Context, int64) (*CloudMigrationResponse, error)
GetMigrationList(context.Context) (*CloudMigrationListResponse, 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
}