Documentation ¶
Overview ¶
Package mock_manager is a generated GoMock package.
Index ¶
- type MockManager
- func (m *MockManager) CreateLink(ctx context.Context, uid, idpID uint, claims *utils.Claims, deletable bool) (*models.UserLink, error)
- func (m *MockManager) DeleteByID(ctx context.Context, id uint) error
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetByID(ctx context.Context, id uint) (*models.UserLink, error)
- func (m *MockManager) GetByIDPAndSub(ctx context.Context, idpID uint, sub string) (*models.UserLink, error)
- func (m *MockManager) ListByUserID(ctx context.Context, uid uint) ([]*models.UserLink, error)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) CreateLink(ctx, uid, idpID, claims, deletable interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeleteByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetByIDPAndSub(ctx, idpID, sub interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) ListByUserID(ctx, uid interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) CreateLink ¶
func (m *MockManager) CreateLink(ctx context.Context, uid, idpID uint, claims *utils.Claims, deletable bool) (*models.UserLink, error)
CreateLink mocks base method.
func (*MockManager) DeleteByID ¶
func (m *MockManager) DeleteByID(ctx context.Context, id uint) error
DeleteByID mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetByIDPAndSub ¶
func (m *MockManager) GetByIDPAndSub(ctx context.Context, idpID uint, sub string) (*models.UserLink, error)
GetByIDPAndSub mocks base method.
func (*MockManager) ListByUserID ¶
ListByUserID mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) CreateLink ¶
func (mr *MockManagerMockRecorder) CreateLink(ctx, uid, idpID, claims, deletable interface{}) *gomock.Call
CreateLink indicates an expected call of CreateLink.
func (*MockManagerMockRecorder) DeleteByID ¶
func (mr *MockManagerMockRecorder) DeleteByID(ctx, id interface{}) *gomock.Call
DeleteByID indicates an expected call of DeleteByID.
func (*MockManagerMockRecorder) GetByID ¶
func (mr *MockManagerMockRecorder) GetByID(ctx, id interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockManagerMockRecorder) GetByIDPAndSub ¶
func (mr *MockManagerMockRecorder) GetByIDPAndSub(ctx, idpID, sub interface{}) *gomock.Call
GetByIDPAndSub indicates an expected call of GetByIDPAndSub.
func (*MockManagerMockRecorder) ListByUserID ¶
func (mr *MockManagerMockRecorder) ListByUserID(ctx, uid interface{}) *gomock.Call
ListByUserID indicates an expected call of ListByUserID.