oastest

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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)

type MockStore

type MockStore struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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