Documentation ¶
Index ¶
- type DataStore
- func (_m *DataStore) CountPersonalAccessTokens(ctx context.Context, userID string) (int64, error)
- func (_m *DataStore) CreateUser(ctx context.Context, u *model.User) error
- func (_m *DataStore) DeleteToken(ctx context.Context, userID oid.ObjectID, tokenID oid.ObjectID) error
- func (_m *DataStore) DeleteTokens(ctx context.Context) error
- func (_m *DataStore) DeleteTokensByUserId(ctx context.Context, userId string) error
- func (_m *DataStore) DeleteTokensByUserIdExceptCurrentOne(ctx context.Context, userId string, tokenID oid.ObjectID) error
- func (_m *DataStore) DeleteUser(ctx context.Context, id string) error
- func (_m *DataStore) EnsureSessionTokensLimit(ctx context.Context, userID oid.ObjectID, sessionsLimit int) error
- func (_m *DataStore) GetPersonalAccessTokens(ctx context.Context, userID string) ([]model.PersonalAccessToken, error)
- func (_m *DataStore) GetSettings(ctx context.Context) (*model.Settings, error)
- func (_m *DataStore) GetTokenById(ctx context.Context, id oid.ObjectID) (*jwt.Token, error)
- func (_m *DataStore) GetUserAndPasswordById(ctx context.Context, id string) (*model.User, error)
- func (_m *DataStore) GetUserByEmail(ctx context.Context, email model.Email) (*model.User, error)
- func (_m *DataStore) GetUserById(ctx context.Context, id string) (*model.User, error)
- func (_m *DataStore) GetUserSettings(ctx context.Context, userID string) (*model.Settings, error)
- func (_m *DataStore) GetUsers(ctx context.Context, fltr model.UserFilter) ([]model.User, error)
- func (_m *DataStore) Ping(ctx context.Context) error
- func (_m *DataStore) SaveSettings(ctx context.Context, s *model.Settings, etag string) error
- func (_m *DataStore) SaveToken(ctx context.Context, token *jwt.Token) error
- func (_m *DataStore) SaveUserSettings(ctx context.Context, userID string, s *model.Settings, etag string) error
- func (_m *DataStore) UpdateLoginTs(ctx context.Context, id string) error
- func (_m *DataStore) UpdateTokenLastUsed(ctx context.Context, id oid.ObjectID) error
- func (_m *DataStore) UpdateUser(ctx context.Context, id string, u *model.UserUpdate) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
DataStore is an autogenerated mock type for the DataStore type
func (*DataStore) CountPersonalAccessTokens ¶
CountPersonalAccessTokens provides a mock function with given fields: ctx, userID
func (*DataStore) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, u
func (*DataStore) DeleteToken ¶
func (_m *DataStore) DeleteToken(ctx context.Context, userID oid.ObjectID, tokenID oid.ObjectID) error
DeleteToken provides a mock function with given fields: ctx, userID, tokenID
func (*DataStore) DeleteTokens ¶
DeleteTokens provides a mock function with given fields: ctx
func (*DataStore) DeleteTokensByUserId ¶
DeleteTokensByUserId provides a mock function with given fields: ctx, userId
func (*DataStore) DeleteTokensByUserIdExceptCurrentOne ¶
func (_m *DataStore) DeleteTokensByUserIdExceptCurrentOne(ctx context.Context, userId string, tokenID oid.ObjectID) error
DeleteTokensByUserIdExceptCurrentOne provides a mock function with given fields: ctx, userId, tokenID
func (*DataStore) DeleteUser ¶
DeleteUser provides a mock function with given fields: ctx, id
func (*DataStore) EnsureSessionTokensLimit ¶
func (_m *DataStore) EnsureSessionTokensLimit(ctx context.Context, userID oid.ObjectID, sessionsLimit int) error
EnsureSessionTokensLimit provides a mock function with given fields: ctx, userID, sessionsLimit
func (*DataStore) GetPersonalAccessTokens ¶
func (_m *DataStore) GetPersonalAccessTokens(ctx context.Context, userID string) ([]model.PersonalAccessToken, error)
GetPersonalAccessTokens provides a mock function with given fields: ctx, userID
func (*DataStore) GetSettings ¶
GetSettings provides a mock function with given fields: ctx
func (*DataStore) GetTokenById ¶
GetTokenById provides a mock function with given fields: ctx, id
func (*DataStore) GetUserAndPasswordById ¶
GetUserAndPasswordById provides a mock function with given fields: ctx, id
func (*DataStore) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*DataStore) GetUserById ¶
GetUserById provides a mock function with given fields: ctx, id
func (*DataStore) GetUserSettings ¶
GetUserSettings provides a mock function with given fields: ctx, userID
func (*DataStore) SaveSettings ¶
SaveSettings provides a mock function with given fields: ctx, s, etag
func (*DataStore) SaveUserSettings ¶
func (_m *DataStore) SaveUserSettings(ctx context.Context, userID string, s *model.Settings, etag string) error
SaveUserSettings provides a mock function with given fields: ctx, userID, s, etag
func (*DataStore) UpdateLoginTs ¶
UpdateLoginTs provides a mock function with given fields: ctx, id
func (*DataStore) UpdateTokenLastUsed ¶
UpdateTokenLastUsed provides a mock function with given fields: ctx, id