Documentation ¶
Index ¶
- type Implementation
- func (s *Implementation) DeleteUserAuthInfo(ctx context.Context, userID int64) error
- func (s *Implementation) GenericOAuthLookup(ctx context.Context, authModule string, authId string, userID int64) (*login.UserAuth, error)
- func (s *Implementation) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
- func (s *Implementation) GetExternalUserInfoByLogin(ctx context.Context, query *login.GetExternalUserInfoByLoginQuery) (*login.ExternalUserInfo, error)
- func (s *Implementation) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
- func (s *Implementation) LookupAndFix(ctx context.Context, query *login.GetUserByAuthInfoQuery) (bool, *user.User, *login.UserAuth, error)
- func (s *Implementation) LookupAndUpdate(ctx context.Context, query *login.GetUserByAuthInfoQuery) (*user.User, error)
- func (s *Implementation) LookupByOneOf(ctx context.Context, params *login.UserLookupParams) (*user.User, error)
- func (s *Implementation) Run(ctx context.Context) error
- func (s *Implementation) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
- func (s *Implementation) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
- type OSSUserProtectionImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
type Implementation struct { UserProtectionService login.UserProtectionService // contains filtered or unexported fields }
func ProvideAuthInfoService ¶
func ProvideAuthInfoService(userProtectionService login.UserProtectionService, authInfoStore login.Store, usageStats usagestats.Service) *Implementation
func (*Implementation) DeleteUserAuthInfo ¶
func (s *Implementation) DeleteUserAuthInfo(ctx context.Context, userID int64) error
func (*Implementation) GenericOAuthLookup ¶
func (*Implementation) GetAuthInfo ¶
func (s *Implementation) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
func (*Implementation) GetExternalUserInfoByLogin ¶
func (s *Implementation) GetExternalUserInfoByLogin(ctx context.Context, query *login.GetExternalUserInfoByLoginQuery) (*login.ExternalUserInfo, error)
func (*Implementation) GetUserLabels ¶
func (s *Implementation) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
func (*Implementation) LookupAndFix ¶
func (*Implementation) LookupAndUpdate ¶
func (s *Implementation) LookupAndUpdate(ctx context.Context, query *login.GetUserByAuthInfoQuery) (*user.User, error)
func (*Implementation) LookupByOneOf ¶
func (s *Implementation) LookupByOneOf(ctx context.Context, params *login.UserLookupParams) (*user.User, error)
func (*Implementation) SetAuthInfo ¶
func (s *Implementation) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
func (*Implementation) UpdateAuthInfo ¶
func (s *Implementation) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
type OSSUserProtectionImpl ¶
type OSSUserProtectionImpl struct { }
func ProvideOSSUserProtectionService ¶
func ProvideOSSUserProtectionService() *OSSUserProtectionImpl
func (*OSSUserProtectionImpl) AllowUserMapping ¶
func (*OSSUserProtectionImpl) AllowUserMapping(_ *user.User, _ string) error
Click to show internal directories.
Click to hide internal directories.