steps

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleComponent added in v1.0.0

type BundleComponent struct {
	ErrorFeature componenttest.ErrorFeature

	MongoClient    *mongo.Mongo
	Config         *config.Config
	HTTPServer     *http.Server
	ServiceRunning bool

	AuthorisationMiddleware authorisation.Middleware
	DatasetAPIVersions      []*datasetAPIModels.Version
	// contains filtered or unexported fields
}

func NewBundleComponent added in v1.0.0

func NewBundleComponent(mongoURI string) (*BundleComponent, error)

func (*BundleComponent) Close added in v1.0.0

func (c *BundleComponent) Close() error

func (*BundleComponent) DoGetAuthorisationMiddleware added in v1.2.0

func (c *BundleComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)

func (*BundleComponent) DoGetDataBundleSlackClient added in v1.12.0

func (c *BundleComponent) DoGetDataBundleSlackClient(slackConfig *slack.SlackConfig, apiToken string, enabled bool) (slack.Clienter, error)

func (*BundleComponent) DoGetDatasetAPIClient added in v1.3.0

func (c *BundleComponent) DoGetDatasetAPIClient(datasetAPIURL string) datasetAPISDK.Clienter

func (*BundleComponent) DoGetHTTPServer added in v1.0.0

func (c *BundleComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer

func (*BundleComponent) DoGetHealthcheckOk added in v1.0.0

func (c *BundleComponent) DoGetHealthcheckOk(*config.Config, string, string, string) (service.HealthChecker, error)

func (*BundleComponent) DoGetMongoDB added in v1.0.0

func (*BundleComponent) DoGetPermissionsAPIClient added in v1.12.0

func (c *BundleComponent) DoGetPermissionsAPIClient(permissionsAPIURL string) permissionsAPISDK.Clienter

func (*BundleComponent) InitialiseService added in v1.0.0

func (c *BundleComponent) InitialiseService() (http.Handler, error)

func (*BundleComponent) RegisterSteps added in v1.0.0

func (c *BundleComponent) RegisterSteps(ctx *godog.ScenarioContext)

func (*BundleComponent) Reset added in v1.0.0

func (c *BundleComponent) Reset() error

type IDSelector added in v1.4.0

type IDSelector[T any] = func(T) string

type Predicate added in v1.4.0

type Predicate[T any] = func(actual, expected T) string

Jump to

Keyboard shortcuts

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