cloudmigrationimpl

package
v11.1.4-modfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

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) CreateMigrationRun

func (*NoopServiceImpl) CreateToken

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 (*NoopServiceImpl) GetMigrationList

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) GetToken

func (s *NoopServiceImpl) GetToken(ctx context.Context) (gcom.TokenView, error)

func (*NoopServiceImpl) RunMigration

func (*NoopServiceImpl) ValidateToken

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service Define the cloudmigration.Service Implementation.

func (*Service) CreateToken

func (*Service) DeleteMigration

func (s *Service) DeleteMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)

func (*Service) DeleteToken

func (s *Service) DeleteToken(ctx context.Context, tokenID string) error

func (*Service) GetMigration

func (s *Service) GetMigration(ctx context.Context, uid string) (*cloudmigration.CloudMigration, error)

func (*Service) GetMigrationList

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) GetToken

func (s *Service) GetToken(ctx context.Context) (gcom.TokenView, error)

func (*Service) RunMigration

func (*Service) ValidateToken

func (s *Service) ValidateToken(ctx context.Context, cm cloudmigration.CloudMigration) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL