Documentation ¶
Index ¶
- func LinkAccountFromStore(ctx context.Context, store Store, user *user_model.User) error
- func LinkAccountToUser(ctx context.Context, user *user_model.User, gothUser goth.User) error
- func UpdateExternalUser(ctx context.Context, user *user_model.User, gothUser goth.User) error
- func UpdateMigrationsByType(ctx context.Context, tp structs.GitServiceType, externalUserID string, ...) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinkAccountFromStore ¶ added in v1.16.0
LinkAccountFromStore links the provided user with a stored external user
func LinkAccountToUser ¶
LinkAccountToUser link the gothUser to the user
func UpdateExternalUser ¶ added in v1.16.0
UpdateExternalUser updates external user's information
func UpdateMigrationsByType ¶ added in v1.21.0
func UpdateMigrationsByType(ctx context.Context, tp structs.GitServiceType, externalUserID string, userID int64) error
UpdateMigrationsByType updates all migrated repositories' posterid from gitServiceType to replace originalAuthorID to posterID
Types ¶
Click to show internal directories.
Click to hide internal directories.