userdb

package
v1.17.11 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx context.Context, username, password string, master bool) (bool, error)

func CreateProvider

func CreateProvider(ctx context.Context, name, mailDomain, pluginName string, options map[string]string) error

func ExpandAlias

func ExpandAlias(ctx context.Context, alias string) ([]string, error)

func GetEmptyProviderSettings

func GetEmptyProviderSettings(ctx context.Context, pluginName string) ([]interface{}, error)

func GetPoviderDesc

func GetPoviderDesc(ctx context.Context, pluginName string) (string, error)

func GetProviderByIdx

func GetProviderByIdx(ctx context.Context, idx int) (*tt.UserDBProvider, error)

func GetProviderList

func GetProviderList(ctx context.Context) ([]*tt.UserDBProvider, error)

func GetProviderPluginNamesDesc

func GetProviderPluginNamesDesc(ctx context.Context) ([][]string, error)

func GetProvidersByMailDomain

func GetProvidersByMailDomain(ctx context.Context, mailDomain string) ([]*tt.UserDBProvider, error)

func LoadProviderSettings

func LoadProviderSettings(ctx context.Context, pluginName, sourceID string) ([]interface{}, error)

func NormalEmail

func NormalEmail(ctx context.Context, email string) (string, error)

func ProviderNameExists

func ProviderNameExists(ctx context.Context, name string) (bool, error)

func ProviderWebExists

func ProviderWebExists(ctx context.Context, pluginName string) (bool, error)

func RemoveProvider

func RemoveProvider(ctx context.Context, pluginName, sourceID string) error

func SaveProviderSettings

func SaveProviderSettings(ctx context.Context, _, _, pluginName, sourceID string, options map[string]string) error

func UserByEmail

func UserByEmail(ctx context.Context, email string) (string, error)

func UserQuotaMB

func UserQuotaMB(ctx context.Context, email string) (int, error)

func Web

func Web(ctx context.Context, pluginName, sourceID, action string, params map[string]string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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