Documentation
¶
Index ¶
- Variables
- type AuditLogFacade
- type AuditLogQuery
- type AuthenticatorFacade
- type AuthenticatorService
- type AuthorizationFacade
- type AuthorizationService
- type CustomAttributesService
- type EventService
- type IdentityFacade
- func (f *IdentityFacade) Create(userID string, identityDef model.IdentityDef, password string) (*apimodel.IdentityRef, error)
- func (f *IdentityFacade) Get(id string) (*identity.Info, error)
- func (f *IdentityFacade) List(userID string, identityType *apimodel.IdentityType) ([]*apimodel.IdentityRef, error)
- func (f *IdentityFacade) Remove(identityInfo *identity.Info) error
- type IdentityService
- type InteractionService
- type OAuthAuthorizationService
- type OAuthFacade
- type OAuthTokenService
- type SessionFacade
- type SessionManager
- type StandardAttributesService
- type UserFacade
- func (f *UserFacade) Anonymize(id string) (err error)
- func (f *UserFacade) Create(identityDef model.IdentityDef, password string) (string, error)
- func (f *UserFacade) Delete(id string) error
- func (f *UserFacade) ListPage(sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *graphqlutil.PageResult, error)
- func (f *UserFacade) ResetPassword(id string, password string) (err error)
- func (f *UserFacade) ScheduleAnonymization(id string) (err error)
- func (f *UserFacade) ScheduleDeletion(id string) error
- func (f *UserFacade) SearchPage(searchKeyword string, sortOption user.SortOption, ...) ([]apimodel.PageItemRef, *graphqlutil.PageResult, error)
- func (f *UserFacade) SetDisabled(id string, isDisabled bool, reason *string) error
- func (f *UserFacade) UnscheduleAnonymization(id string) (err error)
- func (f *UserFacade) UnscheduleDeletion(id string) error
- type UserProfileFacade
- func (f *UserProfileFacade) DeriveStandardAttributes(role accesscontrol.Role, userID string, updatedAt time.Time, ...) (map[string]interface{}, error)
- func (f *UserProfileFacade) ReadCustomAttributesInStorageForm(role accesscontrol.Role, userID string, storageForm map[string]interface{}) (map[string]interface{}, error)
- func (f *UserProfileFacade) UpdateUserProfile(role accesscontrol.Role, userID string, stdAttrs map[string]interface{}, ...) (err error)
- type UserSearchService
- type UserService
- type VerificationFacade
- type VerificationService
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(UserFacade), "*"), wire.Struct(new(IdentityFacade), "*"), wire.Struct(new(AuthenticatorFacade), "*"), wire.Struct(new(VerificationFacade), "*"), wire.Struct(new(SessionFacade), "*"), wire.Struct(new(AuditLogFacade), "*"), wire.Struct(new(UserProfileFacade), "*"), wire.Struct(new(AuthorizationFacade), "*"), wire.Struct(new(OAuthFacade), "*"), )
Functions ¶
This section is empty.
Types ¶
type AuditLogFacade ¶
type AuditLogFacade struct { AuditLogQuery AuditLogQuery Clock clock.Clock AuditLogFeatureConfig *config.AuditLogFeatureConfig }
func (*AuditLogFacade) QueryPage ¶
func (f *AuditLogFacade) QueryPage(opts audit.QueryPageOptions, pageArgs graphqlutil.PageArgs) ([]model.PageItemRef, *graphqlutil.PageResult, error)
type AuditLogQuery ¶
type AuditLogQuery interface { Count(opts audit.QueryPageOptions) (uint64, error) QueryPage(opts audit.QueryPageOptions, pageArgs graphqlutil.PageArgs) ([]model.PageItemRef, error) }
type AuthenticatorFacade ¶
type AuthenticatorFacade struct { Authenticators AuthenticatorService Interaction InteractionService }
func (*AuthenticatorFacade) Get ¶
func (f *AuthenticatorFacade) Get(id string) (*authenticator.Info, error)
func (*AuthenticatorFacade) List ¶
func (f *AuthenticatorFacade) List(userID string, authenticatorType *apimodel.AuthenticatorType, authenticatorKind *authenticator.Kind) ([]*authenticator.Ref, error)
func (*AuthenticatorFacade) Remove ¶
func (f *AuthenticatorFacade) Remove(authenticatorInfo *authenticator.Info) error
type AuthenticatorService ¶
type AuthenticatorService interface { Get(id string) (*authenticator.Info, error) Count(userID string) (uint64, error) ListRefsByUsers(userIDs []string, authenticatorType *apimodel.AuthenticatorType, authenticatorKind *authenticator.Kind) ([]*authenticator.Ref, error) }
type AuthorizationFacade ¶
type AuthorizationFacade struct {
Authorizations AuthorizationService
}
func (*AuthorizationFacade) Delete ¶
func (f *AuthorizationFacade) Delete(a *oauth.Authorization) error
func (*AuthorizationFacade) Get ¶
func (f *AuthorizationFacade) Get(id string) (*oauth.Authorization, error)
func (*AuthorizationFacade) List ¶
func (f *AuthorizationFacade) List(userID string, filters ...oauth.AuthorizationFilter) ([]*oauth.Authorization, error)
type AuthorizationService ¶
type AuthorizationService interface { GetByID(id string) (*oauth.Authorization, error) ListByUser(userID string, filters ...oauth.AuthorizationFilter) ([]*oauth.Authorization, error) Delete(a *oauth.Authorization) error }
type CustomAttributesService ¶
type EventService ¶
type IdentityFacade ¶
type IdentityFacade struct { Identities IdentityService Interaction InteractionService }
func (*IdentityFacade) Create ¶
func (f *IdentityFacade) Create(userID string, identityDef model.IdentityDef, password string) (*apimodel.IdentityRef, error)
func (*IdentityFacade) List ¶
func (f *IdentityFacade) List(userID string, identityType *apimodel.IdentityType) ([]*apimodel.IdentityRef, error)
type IdentityService ¶
type IdentityService interface { Get(id string) (*identity.Info, error) ListRefsByUsers(userIDs []string, identityType *apimodel.IdentityType) ([]*apimodel.IdentityRef, error) }
type InteractionService ¶
type InteractionService interface {
Perform(intent interaction.Intent, input interface{}) (*interaction.Graph, error)
}
type OAuthFacade ¶
type OAuthFacade struct { Config *config.OAuthConfig Users UserService Authorizations OAuthAuthorizationService Tokens OAuthTokenService Clock clock.Clock }
func (*OAuthFacade) CreateSession ¶
func (f *OAuthFacade) CreateSession(clientID string, userID string) (protocol.TokenResponse, error)
type OAuthTokenService ¶
type OAuthTokenService interface { IssueOfflineGrant( client *config.OAuthClientConfig, opts handler.IssueOfflineGrantOptions, resp protocol.TokenResponse, ) (*oauth.OfflineGrant, error) IssueAccessGrant( client *config.OAuthClientConfig, scopes []string, authzID string, userID string, sessionID string, sessionKind oauth.GrantSessionKind, resp protocol.TokenResponse, ) error }
type SessionFacade ¶
type SessionFacade struct {
Sessions SessionManager
}
func (*SessionFacade) Revoke ¶
func (f *SessionFacade) Revoke(id string) error
func (*SessionFacade) RevokeAll ¶
func (f *SessionFacade) RevokeAll(userID string) error
type SessionManager ¶
type UserFacade ¶
type UserFacade struct { UserSearchService UserSearchService Users UserService StandardAttributes StandardAttributesService Interaction InteractionService }
func (*UserFacade) Anonymize ¶
func (f *UserFacade) Anonymize(id string) (err error)
func (*UserFacade) Create ¶
func (f *UserFacade) Create(identityDef model.IdentityDef, password string) (string, error)
func (*UserFacade) Delete ¶
func (f *UserFacade) Delete(id string) error
func (*UserFacade) ListPage ¶
func (f *UserFacade) ListPage(sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *graphqlutil.PageResult, error)
func (*UserFacade) ResetPassword ¶
func (f *UserFacade) ResetPassword(id string, password string) (err error)
func (*UserFacade) ScheduleAnonymization ¶
func (f *UserFacade) ScheduleAnonymization(id string) (err error)
func (*UserFacade) ScheduleDeletion ¶
func (f *UserFacade) ScheduleDeletion(id string) error
func (*UserFacade) SearchPage ¶
func (f *UserFacade) SearchPage(searchKeyword string, sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *graphqlutil.PageResult, error)
func (*UserFacade) SetDisabled ¶
func (f *UserFacade) SetDisabled(id string, isDisabled bool, reason *string) error
func (*UserFacade) UnscheduleAnonymization ¶
func (f *UserFacade) UnscheduleAnonymization(id string) (err error)
func (*UserFacade) UnscheduleDeletion ¶
func (f *UserFacade) UnscheduleDeletion(id string) error
type UserProfileFacade ¶
type UserProfileFacade struct { User UserService StandardAttributes StandardAttributesService CustomAttributes CustomAttributesService Events EventService }
func (*UserProfileFacade) DeriveStandardAttributes ¶
func (f *UserProfileFacade) DeriveStandardAttributes(role accesscontrol.Role, userID string, updatedAt time.Time, attrs map[string]interface{}) (map[string]interface{}, error)
func (*UserProfileFacade) ReadCustomAttributesInStorageForm ¶
func (f *UserProfileFacade) ReadCustomAttributesInStorageForm( role accesscontrol.Role, userID string, storageForm map[string]interface{}, ) (map[string]interface{}, error)
func (*UserProfileFacade) UpdateUserProfile ¶
func (f *UserProfileFacade) UpdateUserProfile( role accesscontrol.Role, userID string, stdAttrs map[string]interface{}, customAttrs map[string]interface{}, ) (err error)
type UserSearchService ¶
type UserSearchService interface {
QueryUser(searchKeyword string, sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, *libes.Stats, error)
}
type UserService ¶
type UserService interface { GetRaw(id string) (*user.User, error) Count() (uint64, error) QueryPage(sortOption user.SortOption, pageArgs graphqlutil.PageArgs) ([]apimodel.PageItemRef, error) Delete(userID string) error Disable(userID string, reason *string) error Reenable(userID string) error ScheduleDeletionByAdmin(userID string) error UnscheduleDeletionByAdmin(userID string) error Anonymize(userID string) error ScheduleAnonymizationByAdmin(userID string) error UnscheduleAnonymizationByAdmin(userID string) error CheckUserAnonymized(userID string) error }
type VerificationFacade ¶
type VerificationFacade struct {
Verification VerificationService
}
func (*VerificationFacade) Get ¶
func (f *VerificationFacade) Get(userID string) ([]model.Claim, error)
func (*VerificationFacade) SetVerified ¶
type VerificationService ¶
type VerificationService interface { GetClaims(userID string) ([]*verification.Claim, error) NewVerifiedClaim(userID string, claimName string, claimValue string) *verification.Claim MarkClaimVerified(claim *verification.Claim) error DeleteClaim(claimID string) error }
Click to show internal directories.
Click to hide internal directories.