externalaccount

package
v1.22.0-dev Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 8 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(store Store, user *user_model.User) error

LinkAccountFromStore links the provided user with a stored external user

func LinkAccountToUser

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

LinkAccountToUser link the gothUser to the user

func UpdateExternalUser added in v1.16.0

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

UpdateExternalUser updates external user's information

func UpdateMigrationsByType added in v1.21.0

func UpdateMigrationsByType(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