Documentation
¶
Index ¶
- Variables
- func ProvideStore(sqlStore db.DB, secretsService secrets.Service) login.Store
- type OSSUserProtectionImpl
- type Service
- func (s *Service) DeleteUserAuthInfo(ctx context.Context, userID int64) error
- func (s *Service) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
- func (s *Service) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
- func (s *Service) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
- func (s *Service) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
- type Store
- func (s *Store) DeleteUserAuthInfo(ctx context.Context, userID int64) error
- func (s *Store) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
- func (s *Store) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
- func (s *Store) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
- func (s *Store) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GetTime = time.Now
Functions ¶
Types ¶
type OSSUserProtectionImpl ¶
type OSSUserProtectionImpl struct { }
func ProvideOSSUserProtectionService ¶
func ProvideOSSUserProtectionService() *OSSUserProtectionImpl
func (*OSSUserProtectionImpl) AllowUserMapping ¶
func (*OSSUserProtectionImpl) AllowUserMapping(_ *user.User, _ string) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(authInfoStore login.Store, remoteCache remotecache.CacheStorage, secretService secrets.Service) *Service
func (*Service) DeleteUserAuthInfo ¶
func (*Service) GetAuthInfo ¶
func (*Service) GetUserLabels ¶
func (*Service) SetAuthInfo ¶
func (*Service) UpdateAuthInfo ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteUserAuthInfo ¶
func (*Store) GetAuthInfo ¶
func (s *Store) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
GetAuthInfo returns the auth info for a user It will return the latest auth info for a user
func (*Store) GetUserLabels ¶
func (*Store) SetAuthInfo ¶
func (*Store) UpdateAuthInfo ¶
Click to show internal directories.
Click to hide internal directories.