Documentation
¶
Index ¶
- type FakeAPI
- type MigrationComponent
- func (c *MigrationComponent) Close() error
- func (c *MigrationComponent) DoGetAppClients(ctx context.Context, cfg *config.Config) *clients.ClientList
- func (c *MigrationComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
- func (c *MigrationComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
- func (c *MigrationComponent) DoGetHealthcheckOk(cfg *config.Config, _, _, _ string) (service.HealthChecker, error)
- func (c *MigrationComponent) DoGetMigrator(ctx context.Context, jobService application.JobService, ...) (migrator.Migrator, error)
- func (c *MigrationComponent) DoGetMongoDB(ctx context.Context, cfg config.MongoConfig) (store.MongoDB, error)
- func (c *MigrationComponent) InitAPIFeature() *componenttest.APIFeature
- func (c *MigrationComponent) InitialiseService() (http.Handler, error)
- func (c *MigrationComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *MigrationComponent) Reset() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAPI ¶ added in v0.7.0
type FakeAPI struct {
// contains filtered or unexported fields
}
FakeAPI contains all the information for a fake component API
func NewFakeAPI ¶ added in v0.7.0
func NewFakeAPI() *FakeAPI
NewFakeAPI creates a new fake component API
type MigrationComponent ¶ added in v0.6.0
type MigrationComponent struct {
componenttest.ErrorFeature
Config *config.Config
HTTPServer *http.Server
ServiceRunning bool
MongoClient *mongo.Mongo
StartTime time.Time
FakeAPIRouter *FakeAPI
AuthorisationMiddleware authorisation.Middleware
// contains filtered or unexported fields
}
func NewMigrationComponent ¶ added in v0.6.0
func NewMigrationComponent(mongoFeat *componenttest.MongoFeature) (*MigrationComponent, error)
func (*MigrationComponent) Close ¶ added in v0.6.0
func (c *MigrationComponent) Close() error
func (*MigrationComponent) DoGetAppClients ¶ added in v0.6.0
func (c *MigrationComponent) DoGetAppClients(ctx context.Context, cfg *config.Config) *clients.ClientList
func (*MigrationComponent) DoGetAuthorisationMiddleware ¶ added in v0.9.0
func (c *MigrationComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
func (*MigrationComponent) DoGetHTTPServer ¶ added in v0.6.0
func (c *MigrationComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
func (*MigrationComponent) DoGetHealthcheckOk ¶ added in v0.6.0
func (c *MigrationComponent) DoGetHealthcheckOk(cfg *config.Config, _, _, _ string) (service.HealthChecker, error)
func (*MigrationComponent) DoGetMigrator ¶ added in v0.6.0
func (c *MigrationComponent) DoGetMigrator(ctx context.Context, jobService application.JobService, clientList *clients.ClientList) (migrator.Migrator, error)
func (*MigrationComponent) DoGetMongoDB ¶ added in v0.6.0
func (c *MigrationComponent) DoGetMongoDB(ctx context.Context, cfg config.MongoConfig) (store.MongoDB, error)
func (*MigrationComponent) InitAPIFeature ¶ added in v0.6.0
func (c *MigrationComponent) InitAPIFeature() *componenttest.APIFeature
func (*MigrationComponent) InitialiseService ¶ added in v0.6.0
func (c *MigrationComponent) InitialiseService() (http.Handler, error)
func (*MigrationComponent) RegisterSteps ¶ added in v0.6.0
func (c *MigrationComponent) RegisterSteps(ctx *godog.ScenarioContext)
func (*MigrationComponent) Reset ¶ added in v0.6.0
func (c *MigrationComponent) Reset() error
Click to show internal directories.
Click to hide internal directories.