mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
23 lines
933 B
Go
23 lines
933 B
Go
package cloudmigration
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
CreateToken(context.Context) (CreateAccessTokenResponse, error)
|
|
ValidateToken(context.Context, CloudMigration) error
|
|
// migration
|
|
GetMigration(context.Context, int64) (*CloudMigration, error)
|
|
GetMigrationList(context.Context) (*CloudMigrationListResponse, error)
|
|
CreateMigration(context.Context, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
|
GetMigrationDataJSON(context.Context, int64) ([]byte, error)
|
|
UpdateMigration(context.Context, int64, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
|
GetMigrationStatus(context.Context, string, string) (*CloudMigrationRun, error)
|
|
GetMigrationStatusList(context.Context, string) ([]*CloudMigrationRun, error)
|
|
DeleteMigration(context.Context, int64) (*CloudMigration, error)
|
|
SaveMigrationRun(context.Context, *CloudMigrationRun) (int64, error)
|
|
|
|
ParseCloudMigrationConfig() (string, error)
|
|
}
|