Documentation
¶
Index ¶
- func EnsureLinkExternalToUser(ctx context.Context, authSourceID int64, user *user_model.User, ...) error
- func LinkAccountToUser(ctx context.Context, authSourceID int64, user *user_model.User, ...) error
- func UpdateMigrationsByType(ctx context.Context, tp structs.GitServiceType, externalUserID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureLinkExternalToUser ¶ added in v1.23.0
func EnsureLinkExternalToUser(ctx context.Context, authSourceID int64, user *user_model.User, gothUser goth.User) error
EnsureLinkExternalToUser link the gothUser to the user
func LinkAccountToUser ¶
func LinkAccountToUser(ctx context.Context, authSourceID int64, user *user_model.User, gothUser goth.User) error
LinkAccountToUser link the gothUser to the user
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.