Documentation
¶
Index ¶
- type IdentityComponent
- func (c *IdentityComponent) Close() error
- func (c *IdentityComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
- func (c *IdentityComponent) DoGetCognitoClient(_ string) cognito.Client
- func (c *IdentityComponent) DoGetHTTPServer(bindAddr string, router http.Handler, _ *config.Config) service.HTTPServer
- func (c *IdentityComponent) DoGetHealthcheckOk(_ *config.Config, _, _, _ string) (service.HealthChecker, error)
- func (c *IdentityComponent) InitialiseService() (http.Handler, error)
- func (c *IdentityComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *IdentityComponent) Reset() *IdentityComponent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityComponent ¶
type IdentityComponent struct {
ErrorFeature componenttest.ErrorFeature
Config *config.Config
HTTPServer *http.Server
ServiceRunning bool
CognitoClient *cognitoMock.CognitoIdentityProviderClientStub
AuthorisationMiddleware authorisation.Middleware
JWKSManager *jwksMock.ManagerMock
// contains filtered or unexported fields
}
func NewIdentityComponent ¶
func NewIdentityComponent() (*IdentityComponent, error)
func (*IdentityComponent) Close ¶
func (c *IdentityComponent) Close() error
func (*IdentityComponent) DoGetAuthorisationMiddleware ¶
func (c *IdentityComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
func (*IdentityComponent) DoGetCognitoClient ¶
func (c *IdentityComponent) DoGetCognitoClient(_ string) cognito.Client
func (*IdentityComponent) DoGetHTTPServer ¶
func (c *IdentityComponent) DoGetHTTPServer(bindAddr string, router http.Handler, _ *config.Config) service.HTTPServer
func (*IdentityComponent) DoGetHealthcheckOk ¶
func (c *IdentityComponent) DoGetHealthcheckOk(_ *config.Config, _, _, _ string) (service.HealthChecker, error)
func (*IdentityComponent) InitialiseService ¶
func (c *IdentityComponent) InitialiseService() (http.Handler, error)
func (*IdentityComponent) RegisterSteps ¶
func (c *IdentityComponent) RegisterSteps(ctx *godog.ScenarioContext)
func (*IdentityComponent) Reset ¶
func (c *IdentityComponent) Reset() *IdentityComponent
Click to show internal directories.
Click to hide internal directories.