Documentation ¶
Index ¶
- type MetaManager
- func (_m *MetaManager) Create(ctx context.Context, oidcUser *models.OIDCUser) (int, error)
- func (_m *MetaManager) DeleteByUserID(ctx context.Context, uid int) error
- func (_m *MetaManager) GetBySubIss(ctx context.Context, sub string, iss string) (*models.OIDCUser, error)
- func (_m *MetaManager) GetByUserID(ctx context.Context, uid int) (*models.OIDCUser, error)
- func (_m *MetaManager) SetCliSecretByUserID(ctx context.Context, uid int, secret string) error
- func (_m *MetaManager) Update(ctx context.Context, oidcUser *models.OIDCUser, cols ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaManager ¶
MetaManager is an autogenerated mock type for the MetaManager type
func NewMetaManager ¶
func NewMetaManager(t interface { mock.TestingT Cleanup(func()) }) *MetaManager
NewMetaManager creates a new instance of MetaManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MetaManager) DeleteByUserID ¶
func (_m *MetaManager) DeleteByUserID(ctx context.Context, uid int) error
DeleteByUserID provides a mock function with given fields: ctx, uid
func (*MetaManager) GetBySubIss ¶
func (_m *MetaManager) GetBySubIss(ctx context.Context, sub string, iss string) (*models.OIDCUser, error)
GetBySubIss provides a mock function with given fields: ctx, sub, iss
func (*MetaManager) GetByUserID ¶
GetByUserID provides a mock function with given fields: ctx, uid
func (*MetaManager) SetCliSecretByUserID ¶
SetCliSecretByUserID provides a mock function with given fields: ctx, uid, secret
Click to show internal directories.
Click to hide internal directories.