mock_manager

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_manager is a generated GoMock package.

Index

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 (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) GetByID

func (m *MockManager) GetByID(ctx context.Context, id uint) (*models.UserLink, error)

GetByID mocks base method.

func (*MockManager) GetByIDPAndSub

func (m *MockManager) GetByIDPAndSub(ctx context.Context, idpID uint, sub string) (*models.UserLink, error)

GetByIDPAndSub mocks base method.

func (*MockManager) ListByUserID

func (m *MockManager) ListByUserID(ctx context.Context, uid uint) ([]*models.UserLink, error)

ListByUserID mocks base method.

type MockManagerMockRecorder

type MockManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockManagerMockRecorder is the mock recorder for MockManager.

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.

Jump to

Keyboard shortcuts

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