2024-03-25 13:30:47 +01:00
|
|
|
package cloudmigration
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Service interface {
|
2024-03-25 12:43:28 -03:00
|
|
|
CreateToken(context.Context) (CreateAccessTokenResponse, error)
|
2024-04-03 13:36:13 +02:00
|
|
|
ValidateToken(context.Context, CloudMigration) error
|
2024-03-25 13:30:47 +01:00
|
|
|
// migration
|
2024-04-03 13:36:13 +02:00
|
|
|
GetMigration(context.Context, int64) (*CloudMigration, error)
|
2024-03-28 08:50:31 -03:00
|
|
|
GetMigrationList(context.Context) (*CloudMigrationListResponse, error)
|
2024-03-25 13:30:47 +01:00
|
|
|
CreateMigration(context.Context, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
2024-04-03 13:36:13 +02:00
|
|
|
GetMigrationDataJSON(context.Context, int64) ([]byte, error)
|
2024-03-25 13:30:47 +01:00
|
|
|
UpdateMigration(context.Context, int64, CloudMigrationRequest) (*CloudMigrationResponse, error)
|
|
|
|
|
GetMigrationStatus(context.Context, string, string) (*CloudMigrationRun, error)
|
2024-04-03 13:36:13 +02:00
|
|
|
GetMigrationStatusList(context.Context, string) ([]*CloudMigrationRun, error)
|
|
|
|
|
DeleteMigration(context.Context, int64) (*CloudMigration, error)
|
|
|
|
|
SaveMigrationRun(context.Context, *CloudMigrationRun) (string, error)
|
|
|
|
|
|
|
|
|
|
ParseCloudMigrationConfig() (string, error)
|
2024-03-25 13:30:47 +01:00
|
|
|
}
|