Documentation ¶
Index ¶
- Variables
- type ClaimStore
- type EventService
- type IdentityService
- type PictureTransformer
- type Service
- func (s *Service) DeriveStandardAttributes(ctx context.Context, role accesscontrol.Role, userID string, ...) (map[string]interface{}, error)
- func (s *Service) PopulateIdentityAwareStandardAttributes(ctx context.Context, userID string) (err error)
- func (s *Service) PopulateStandardAttributes(ctx context.Context, userID string, iden *identity.Info) error
- func (s *Service) UpdateStandardAttributes(ctx context.Context, role accesscontrol.Role, userID string, ...) error
- func (s *Service) UpdateStandardAttributesWithList(ctx context.Context, role accesscontrol.Role, userID string, attrs attrs.List) error
- type ServiceNoEvent
- func (s *ServiceNoEvent) DeriveStandardAttributes(ctx context.Context, role accesscontrol.Role, userID string, ...) (map[string]interface{}, error)
- func (s *ServiceNoEvent) DeriveStandardAttributesForUsers(ctx context.Context, role accesscontrol.Role, userIDs []string, ...) (map[string]map[string]interface{}, error)
- func (s *ServiceNoEvent) PopulateIdentityAwareStandardAttributes(ctx context.Context, userID string) (err error)
- func (s *ServiceNoEvent) UpdateStandardAttributes(ctx context.Context, role accesscontrol.Role, userID string, ...) error
- type Transformer
- type UserQueries
- type UserStore
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(Service), "*"), wire.Struct(new(ServiceNoEvent), "*"), wire.Struct(new(PictureTransformer), "*"), wire.Bind(new(Transformer), new(*PictureTransformer)), )
Functions ¶
This section is empty.
Types ¶
type ClaimStore ¶
type EventService ¶
type IdentityService ¶
type PictureTransformer ¶
type PictureTransformer struct { HTTPProto httputil.HTTPProto HTTPHost httputil.HTTPHost ImagesCDNHost config.ImagesCDNHost }
func (*PictureTransformer) RepresentationFormToStorageForm ¶
func (t *PictureTransformer) RepresentationFormToStorageForm(key string, value interface{}) (interface{}, error)
func (*PictureTransformer) StorageFormToRepresentationForm ¶
func (t *PictureTransformer) StorageFormToRepresentationForm(key string, value interface{}) (interface{}, error)
type Service ¶
type Service struct { UserProfileConfig *config.UserProfileConfig ServiceNoEvent *ServiceNoEvent Identities IdentityService UserQueries UserQueries UserStore UserStore Events EventService }
func (*Service) DeriveStandardAttributes ¶
func (*Service) PopulateIdentityAwareStandardAttributes ¶
func (*Service) PopulateStandardAttributes ¶
func (*Service) UpdateStandardAttributes ¶
type ServiceNoEvent ¶
type ServiceNoEvent struct { UserProfileConfig *config.UserProfileConfig Identities IdentityService UserQueries UserQueries UserStore UserStore ClaimStore ClaimStore Transformer Transformer }
func (*ServiceNoEvent) DeriveStandardAttributes ¶
func (s *ServiceNoEvent) DeriveStandardAttributes( ctx context.Context, role accesscontrol.Role, userID string, updatedAt time.Time, attrs map[string]interface{}, ) (map[string]interface{}, error)
DeriveStandardAttributes populates email_verified and phone_number_verified, if email or phone_number are found in attrs.
func (*ServiceNoEvent) DeriveStandardAttributesForUsers ¶
func (s *ServiceNoEvent) DeriveStandardAttributesForUsers( ctx context.Context, role accesscontrol.Role, userIDs []string, updatedAts []time.Time, attrsList []map[string]interface{}, ) (map[string]map[string]interface{}, error)
Batch implementation of DeriveStandardAttributes TODO: Write some tests and simplify the implementation nolint:gocognit
func (*ServiceNoEvent) PopulateIdentityAwareStandardAttributes ¶
func (s *ServiceNoEvent) PopulateIdentityAwareStandardAttributes(ctx context.Context, userID string) (err error)
func (*ServiceNoEvent) UpdateStandardAttributes ¶
func (s *ServiceNoEvent) UpdateStandardAttributes(ctx context.Context, role accesscontrol.Role, userID string, stdAttrs map[string]interface{}) error
type Transformer ¶
type UserQueries ¶
Click to show internal directories.
Click to hide internal directories.