Documentation
¶
Index ¶
- type FakeService
- func (s *FakeService) GetExternalService(ctx context.Context, id string) (*oauthserver.ExternalService, error)
- func (s *FakeService) HandleIntrospectionRequest(rw http.ResponseWriter, req *http.Request)
- func (s *FakeService) HandleTokenRequest(rw http.ResponseWriter, req *http.Request)
- func (s *FakeService) SaveExternalService(ctx context.Context, cmd *oauthserver.ExternalServiceRegistration) (*oauthserver.ExternalServiceDTO, error)
- type MockStore
- func (_m *MockStore) GetExternalService(ctx context.Context, id string) (*oauthserver.ExternalService, error)
- func (_m *MockStore) GetExternalServiceByName(ctx context.Context, name string) (*oauthserver.ExternalService, error)
- func (_m *MockStore) GetExternalServicePublicKey(ctx context.Context, clientID string) (*jose.JSONWebKey, error)
- func (_m *MockStore) RegisterExternalService(ctx context.Context, client *oauthserver.ExternalService) error
- func (_m *MockStore) SaveExternalService(ctx context.Context, client *oauthserver.ExternalService) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeService ¶
type FakeService struct { ExpectedClient *oauthserver.ExternalService ExpectedKey *jose.JSONWebKey ExpectedErr error }
func (*FakeService) GetExternalService ¶
func (s *FakeService) GetExternalService(ctx context.Context, id string) (*oauthserver.ExternalService, error)
func (*FakeService) HandleIntrospectionRequest ¶
func (s *FakeService) HandleIntrospectionRequest(rw http.ResponseWriter, req *http.Request)
func (*FakeService) HandleTokenRequest ¶
func (s *FakeService) HandleTokenRequest(rw http.ResponseWriter, req *http.Request)
func (*FakeService) SaveExternalService ¶
func (s *FakeService) SaveExternalService(ctx context.Context, cmd *oauthserver.ExternalServiceRegistration) (*oauthserver.ExternalServiceDTO, error)
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
func NewMockStore ¶
func NewMockStore(t mockConstructorTestingTNewMockStore) *MockStore
NewMockStore creates a new instance of MockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockStore) GetExternalService ¶
func (_m *MockStore) GetExternalService(ctx context.Context, id string) (*oauthserver.ExternalService, error)
GetExternalService provides a mock function with given fields: ctx, id
func (*MockStore) GetExternalServiceByName ¶
func (_m *MockStore) GetExternalServiceByName(ctx context.Context, name string) (*oauthserver.ExternalService, error)
GetExternalServiceByName provides a mock function with given fields: ctx, name
func (*MockStore) GetExternalServicePublicKey ¶
func (_m *MockStore) GetExternalServicePublicKey(ctx context.Context, clientID string) (*jose.JSONWebKey, error)
GetExternalServicePublicKey provides a mock function with given fields: ctx, clientID
func (*MockStore) RegisterExternalService ¶
func (_m *MockStore) RegisterExternalService(ctx context.Context, client *oauthserver.ExternalService) error
RegisterExternalService provides a mock function with given fields: ctx, client
func (*MockStore) SaveExternalService ¶
func (_m *MockStore) SaveExternalService(ctx context.Context, client *oauthserver.ExternalService) error
SaveExternalService provides a mock function with given fields: ctx, client
Click to show internal directories.
Click to hide internal directories.