externalaccount

package
v1.22.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinkAccountFromStore added in v1.16.0

func LinkAccountFromStore(ctx context.Context, store Store, user *user_model.User) error

LinkAccountFromStore links the provided user with a stored external user

func LinkAccountToUser

func LinkAccountToUser(ctx context.Context, user *user_model.User, gothUser goth.User) error

LinkAccountToUser link the gothUser to the user

func UpdateExternalUser added in v1.16.0

func UpdateExternalUser(ctx context.Context, user *user_model.User, gothUser goth.User) error

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

type Store added in v1.16.0

type Store interface {
	Get(any) any
	Set(any, any) error
	Release() error
}

Store represents a thing that stores things

Jump to

Keyboard shortcuts

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