Documentation ¶
Index ¶
- Variables
- func ProvideService(cfg *setting.Cfg, features featuremgmt.FeatureToggles, db db.DB, ...) (cloudmigration.Service, error)
- type Metrics
- type NoopServiceImpl
- func (s *NoopServiceImpl) CreateMigration(ctx context.Context, cm cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
- func (s *NoopServiceImpl) CreateMigrationRun(context.Context, cloudmigration.CloudMigrationRun) (string, error)
- func (s *NoopServiceImpl) CreateToken(ctx context.Context) (cloudmigration.CreateAccessTokenResponse, error)
- func (s *NoopServiceImpl) DeleteMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
- func (s *NoopServiceImpl) DeleteToken(ctx context.Context, uid string) error
- func (s *NoopServiceImpl) GetMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
- func (s *NoopServiceImpl) GetMigrationList(ctx context.Context) (*cloudmigration.CloudMigrationListResponse, error)
- func (s *NoopServiceImpl) GetMigrationRunList(ctx context.Context, uid string) (*cloudmigration.CloudMigrationRunList, error)
- func (s *NoopServiceImpl) GetMigrationStatus(ctx context.Context, runUID string) (*cloudmigration.CloudMigrationRun, error)
- func (s *NoopServiceImpl) GetToken(ctx context.Context) (gcom.TokenView, error)
- func (s *NoopServiceImpl) RunMigration(context.Context, string) (*cloudmigration.MigrateDataResponseDTO, error)
- func (s *NoopServiceImpl) UpdateMigration(ctx context.Context, uid string, cm cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
- func (s *NoopServiceImpl) ValidateToken(ctx context.Context, cm cloudmigration.CloudMigration) error
- type Service
- func (s *Service) CreateMigration(ctx context.Context, cmd cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
- func (s *Service) CreateToken(ctx context.Context) (cloudmigration.CreateAccessTokenResponse, error)
- func (s *Service) DeleteMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
- func (s *Service) DeleteToken(ctx context.Context, tokenID string) error
- func (s *Service) GetMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
- func (s *Service) GetMigrationList(ctx context.Context) (*cloudmigration.CloudMigrationListResponse, error)
- func (s *Service) GetMigrationRunList(ctx context.Context, migUID string) (*cloudmigration.CloudMigrationRunList, error)
- func (s *Service) GetMigrationStatus(ctx context.Context, runUID string) (*cloudmigration.CloudMigrationRun, error)
- func (s *Service) GetToken(ctx context.Context) (gcom.TokenView, error)
- func (s *Service) RunMigration(ctx context.Context, uid string) (*cloudmigration.MigrateDataResponseDTO, error)
- func (s *Service) UpdateMigration(ctx context.Context, uid string, request cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
- func (s *Service) ValidateToken(ctx context.Context, cm cloudmigration.CloudMigration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LogPrefix = "cloudmigration.service"
Functions ¶
func ProvideService ¶
func ProvideService( cfg *setting.Cfg, features featuremgmt.FeatureToggles, db db.DB, dsService datasources.DataSourceService, secretsService secrets.Service, routeRegister routing.RouteRegister, prom prometheus.Registerer, tracer tracing.Tracer, dashboardService dashboards.DashboardService, folderService folder.Service, ) (cloudmigration.Service, error)
ProvideService Factory for method used by wire to inject dependencies. builds the service, and api, and configures routes
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (*Metrics) Collect ¶
func (metrics *Metrics) Collect(ch chan<- prometheus.Metric)
func (*Metrics) Describe ¶
func (metrics *Metrics) Describe(ch chan<- *prometheus.Desc)
type NoopServiceImpl ¶
type NoopServiceImpl struct{}
NoopServiceImpl Define the Service Implementation.
func (*NoopServiceImpl) CreateMigration ¶
func (s *NoopServiceImpl) CreateMigration(ctx context.Context, cm cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
func (*NoopServiceImpl) CreateMigrationRun ¶
func (s *NoopServiceImpl) CreateMigrationRun(context.Context, cloudmigration.CloudMigrationRun) (string, error)
func (*NoopServiceImpl) CreateToken ¶
func (s *NoopServiceImpl) CreateToken(ctx context.Context) (cloudmigration.CreateAccessTokenResponse, error)
func (*NoopServiceImpl) DeleteMigration ¶
func (s *NoopServiceImpl) DeleteMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
func (*NoopServiceImpl) DeleteToken ¶
func (s *NoopServiceImpl) DeleteToken(ctx context.Context, uid string) error
func (*NoopServiceImpl) GetMigration ¶
func (s *NoopServiceImpl) GetMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
func (*NoopServiceImpl) GetMigrationList ¶
func (s *NoopServiceImpl) GetMigrationList(ctx context.Context) (*cloudmigration.CloudMigrationListResponse, error)
func (*NoopServiceImpl) GetMigrationRunList ¶
func (s *NoopServiceImpl) GetMigrationRunList(ctx context.Context, uid string) (*cloudmigration.CloudMigrationRunList, error)
func (*NoopServiceImpl) GetMigrationStatus ¶
func (s *NoopServiceImpl) GetMigrationStatus(ctx context.Context, runUID string) (*cloudmigration.CloudMigrationRun, error)
func (*NoopServiceImpl) RunMigration ¶
func (s *NoopServiceImpl) RunMigration(context.Context, string) (*cloudmigration.MigrateDataResponseDTO, error)
func (*NoopServiceImpl) UpdateMigration ¶
func (s *NoopServiceImpl) UpdateMigration(ctx context.Context, uid string, cm cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
func (*NoopServiceImpl) ValidateToken ¶
func (s *NoopServiceImpl) ValidateToken(ctx context.Context, cm cloudmigration.CloudMigration) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service Define the cloudmigration.Service Implementation.
func (*Service) CreateMigration ¶
func (s *Service) CreateMigration(ctx context.Context, cmd cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
func (*Service) CreateToken ¶
func (s *Service) CreateToken(ctx context.Context) (cloudmigration.CreateAccessTokenResponse, error)
func (*Service) DeleteMigration ¶
func (s *Service) DeleteMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
func (*Service) DeleteToken ¶
func (*Service) GetMigration ¶
func (s *Service) GetMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)
func (*Service) GetMigrationList ¶
func (s *Service) GetMigrationList(ctx context.Context) (*cloudmigration.CloudMigrationListResponse, error)
func (*Service) GetMigrationRunList ¶
func (s *Service) GetMigrationRunList(ctx context.Context, migUID string) (*cloudmigration.CloudMigrationRunList, error)
func (*Service) GetMigrationStatus ¶
func (s *Service) GetMigrationStatus(ctx context.Context, runUID string) (*cloudmigration.CloudMigrationRun, error)
func (*Service) RunMigration ¶
func (s *Service) RunMigration(ctx context.Context, uid string) (*cloudmigration.MigrateDataResponseDTO, error)
func (*Service) UpdateMigration ¶
func (s *Service) UpdateMigration(ctx context.Context, uid string, request cloudmigration.CloudMigrationRequest) (*cloudmigration.CloudMigrationResponse, error)
func (*Service) ValidateToken ¶
func (s *Service) ValidateToken(ctx context.Context, cm cloudmigration.CloudMigration) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.