mocks

package
v0.0.0-...-e2863eb Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.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 DataStore

type DataStore struct {
	mock.Mock
}

DataStore is an autogenerated mock type for the DataStore type

func (*DataStore) CountPersonalAccessTokens

func (_m *DataStore) CountPersonalAccessTokens(ctx context.Context, userID string) (int64, error)

CountPersonalAccessTokens provides a mock function with given fields: ctx, userID

func (*DataStore) CreateUser

func (_m *DataStore) CreateUser(ctx context.Context, u *model.User) error

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

func (_m *DataStore) DeleteTokens(ctx context.Context) error

DeleteTokens provides a mock function with given fields: ctx

func (*DataStore) DeleteTokensByUserId

func (_m *DataStore) DeleteTokensByUserId(ctx context.Context, userId string) error

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

func (_m *DataStore) DeleteUser(ctx context.Context, id string) error

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

func (_m *DataStore) GetSettings(ctx context.Context) (*model.Settings, error)

GetSettings provides a mock function with given fields: ctx

func (*DataStore) GetTokenById

func (_m *DataStore) GetTokenById(ctx context.Context, id oid.ObjectID) (*jwt.Token, error)

GetTokenById provides a mock function with given fields: ctx, id

func (*DataStore) GetUserAndPasswordById

func (_m *DataStore) GetUserAndPasswordById(ctx context.Context, id string) (*model.User, error)

GetUserAndPasswordById provides a mock function with given fields: ctx, id

func (*DataStore) GetUserByEmail

func (_m *DataStore) GetUserByEmail(ctx context.Context, email model.Email) (*model.User, error)

GetUserByEmail provides a mock function with given fields: ctx, email

func (*DataStore) GetUserById

func (_m *DataStore) GetUserById(ctx context.Context, id string) (*model.User, error)

GetUserById provides a mock function with given fields: ctx, id

func (*DataStore) GetUserSettings

func (_m *DataStore) GetUserSettings(ctx context.Context, userID string) (*model.Settings, error)

GetUserSettings provides a mock function with given fields: ctx, userID

func (*DataStore) GetUsers

func (_m *DataStore) GetUsers(ctx context.Context, fltr model.UserFilter) ([]model.User, error)

GetUsers provides a mock function with given fields: ctx, fltr

func (*DataStore) Ping

func (_m *DataStore) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*DataStore) SaveSettings

func (_m *DataStore) SaveSettings(ctx context.Context, s *model.Settings, etag string) error

SaveSettings provides a mock function with given fields: ctx, s, etag

func (*DataStore) SaveToken

func (_m *DataStore) SaveToken(ctx context.Context, token *jwt.Token) error

SaveToken provides a mock function with given fields: ctx, token

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

func (_m *DataStore) UpdateLoginTs(ctx context.Context, id string) error

UpdateLoginTs provides a mock function with given fields: ctx, id

func (*DataStore) UpdateTokenLastUsed

func (_m *DataStore) UpdateTokenLastUsed(ctx context.Context, id oid.ObjectID) error

UpdateTokenLastUsed provides a mock function with given fields: ctx, id

func (*DataStore) UpdateUser

func (_m *DataStore) UpdateUser(ctx context.Context, id string, u *model.UserUpdate) (*model.User, error)

UpdateUser provides a mock function with given fields: ctx, id, u

Jump to

Keyboard shortcuts

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