externalaccount

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureLinkExternalToUser added in v1.23.0

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

EnsureLinkExternalToUser link the gothUser to the user

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 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