Documentation ¶
Index ¶
- func ActionAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func ActivateDefaultLabelPolicy(a *instance.Aggregate) preparation.Validation
- func AddAPIAppCommand(app *addAPIApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation
- func AddDefaultDomainPolicy(a *instance.Aggregate, userLoginMustBeDomain, validateOrgDomains bool) preparation.Validation
- func AddDefaultLabelPolicy(a *instance.Aggregate, ...) preparation.Validation
- func AddDefaultLockoutPolicy(a *instance.Aggregate, maxAttempts uint64, showLockoutFailure bool) preparation.Validation
- func AddDefaultLoginPolicy(a *instance.Aggregate, allowUsernamePassword bool, allowRegister bool, ...) preparation.Validation
- func AddEmailTemplate(a *instance.Aggregate, tempalte []byte) preparation.Validation
- func AddHumanCommand(a *user.Aggregate, human *AddHuman, passwordAlg crypto.HashAlgorithm, ...) preparation.Validation
- func AddMultiFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.MultiFactorType) preparation.Validation
- func AddOIDCAppCommand(app *addOIDCApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation
- func AddOrgCommand(ctx context.Context, a *org.Aggregate, name string) preparation.Validation
- func AddOrgDomain(a *org.Aggregate, domain string) preparation.Validation
- func AddPasswordAgePolicy(a *instance.Aggregate, expireWarnDays, maxAgeDays uint64) preparation.Validation
- func AddPasswordComplexityPolicy(a *instance.Aggregate, minLength uint64, ...) preparation.Validation
- func AddPrivacyPolicy(a *instance.Aggregate, tosLink, privacyLink, helpLink string) preparation.Validation
- func AddProjectCommand(a *project.Aggregate, name string, owner string, projectRoleAssertion bool, ...) preparation.Validation
- func AddSecondFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.SecondFactorType) preparation.Validation
- func AppendAndReduce(object interface{ ... }, events ...eventstore.Event) error
- func CheckDomainPolicyForUserName(userName string, policy *domain.DomainPolicy) error
- func ExistsUser(ctx context.Context, filter preparation.FilterToQueryReducer, ...) (exists bool, err error)
- func FormatPhoneNumber(number string) (string, error)
- func InstanceAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func IsInstanceMember(ctx context.Context, filter preparation.FilterToQueryReducer, ...) (isMember bool, err error)
- func IsOrgMember(ctx context.Context, filter preparation.FilterToQueryReducer, ...) (isMember bool, err error)
- func KeyPairAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func NewActionAggregate(id, resourceOwner string) *eventstore.Aggregate
- func OrgAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func ProjectAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func SetIAMConsoleID(a *instance.Aggregate, clientID, appID *string) preparation.Validation
- func SetIAMProject(a *instance.Aggregate, projectID string) preparation.Validation
- func SetInstanceCustomTexts(a *instance.Aggregate, msg *domain.CustomMessageText) preparation.Validation
- func SetPrimaryOrgDomain(a *org.Aggregate, domain string) preparation.Validation
- func UserAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func UserGrantAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
- func VerifyOrgDomain(a *org.Aggregate, domain string) preparation.Validation
- type APIApplicationWriteModel
- func (wm *APIApplicationWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *APIApplicationWriteModel) IsAPI() bool
- func (wm *APIApplicationWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, appID string, ...) (*project.APIConfigChangedEvent, bool, error)
- func (wm *APIApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *APIApplicationWriteModel) Reduce() error
- type ActionExistsModel
- type ActionWriteModel
- type ActionsListByOrgModel
- type AddApp
- type AddHuman
- type ApplicationKeyWriteModel
- type ApplicationWriteModel
- type AssetUpload
- type Commands
- func (c *Commands) ActivateDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) ActivateLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) ActivateSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)
- func (c *Commands) AddAPIApplication(ctx context.Context, application *domain.APIApp, resourceOwner string, ...) (_ *domain.APIApp, err error)
- func (c *Commands) AddAccessAndRefreshToken(ctx context.Context, orgID, agentID, clientID, userID, refreshToken string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) AddAction(ctx context.Context, addAction *domain.Action, resourceOwner string) (_ string, _ *domain.ObjectDetails, err error)
- func (c *Commands) AddApplicationKey(ctx context.Context, key *domain.ApplicationKey, resourceOwner string) (_ *domain.ApplicationKey, err error)
- func (c *Commands) AddDebugNotificationProviderFile(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)
- func (c *Commands) AddDebugNotificationProviderLog(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)
- func (c *Commands) AddDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
- func (c *Commands) AddDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)
- func (c *Commands) AddDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) AddDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) AddDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) AddDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) AddDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) AddDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) AddFontDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddFontLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddHuman(ctx context.Context, resourceOwner string, human *AddHuman) (*domain.HumanDetails, error)
- func (c *Commands) AddHumanAvatar(ctx context.Context, orgID, userID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddHumanOTP(ctx context.Context, userID, resourceowner string) (*domain.OTP, error)
- func (c *Commands) AddIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)
- func (c *Commands) AddIDPProviderToDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
- func (c *Commands) AddIDPProviderToLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
- func (c *Commands) AddIconDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddIconLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)
- func (c *Commands) AddInstanceMember(ctx context.Context, userID string, roles ...string) (*domain.Member, error)
- func (c *Commands) AddInstanceMemberCommand(a *instance.Aggregate, userID string, roles ...string) preparation.Validation
- func (c *Commands) AddLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) AddLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) AddLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) AddLogoDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddLogoLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
- func (c *Commands) AddMachine(ctx context.Context, orgID string, machine *domain.Machine) (*domain.Machine, error)
- func (c *Commands) AddMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (domain.MultiFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddMultiFactorToLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (domain.MultiFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddNewRefreshTokenAndAccessToken(ctx context.Context, userID, orgID, agentID, clientID string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) AddOIDCApplication(ctx context.Context, application *domain.OIDCApp, resourceOwner string, ...) (_ *domain.OIDCApp, err error)
- func (c *Commands) AddOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)
- func (c *Commands) AddOrg(ctx context.Context, name, userID, resourceOwner string, ...) (*domain.Org, error)
- func (c *Commands) AddOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.OrgDomain, error)
- func (c *Commands) AddOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
- func (c *Commands) AddOrgMember(ctx context.Context, userID, orgID string, roles ...string) (*domain.Member, error)
- func (c *Commands) AddOrgMemberCommand(a *org.Aggregate, userID string, roles ...string) preparation.Validation
- func (c *Commands) AddPasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) AddPasswordComplexityPolicy(ctx context.Context, resourceOwner string, ...) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) AddPersonalAccessToken(ctx context.Context, userID, resourceOwner string, expirationDate time.Time, ...) (*domain.Token, string, error)
- func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) AddProject(ctx context.Context, project *domain.Project, ...) (_ *domain.Project, err error)
- func (c *Commands) AddProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string) (_ *domain.ProjectGrant, err error)
- func (c *Commands) AddProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
- func (c *Commands) AddProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
- func (c *Commands) AddProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
- func (c *Commands) AddSMSConfigTwilio(ctx context.Context, instanceID string, config *twilio.TwilioConfig) (string, *domain.ObjectDetails, error)
- func (c *Commands) AddSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)
- func (c *Commands) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (domain.SecondFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddSecondFactorToLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (domain.SecondFactorType, *domain.ObjectDetails, error)
- func (c *Commands) AddSecretGeneratorConfig(ctx context.Context, typ domain.SecretGeneratorType, ...) (*domain.ObjectDetails, error)
- func (c *Commands) AddUserGrant(ctx context.Context, usergrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)
- func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)
- func (c *Commands) AddUserToken(ctx context.Context, orgID, agentID, clientID, userID string, ...) (*domain.Token, error)
- func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) BulkAddedUserIDPLinks(ctx context.Context, userID, resourceOwner string, links []*domain.UserIDPLink) (err error)
- func (c *Commands) BulkRemoveUserGrant(ctx context.Context, grantIDs []string, resourceOwner string) (err error)
- func (c *Commands) BulkRemoveUserMetadata(ctx context.Context, userID, resourceOwner string, metadataKeys ...string) (_ *domain.ObjectDetails, err error)
- func (c *Commands) BulkSetUserMetadata(ctx context.Context, userID, resourceOwner string, ...) (_ *domain.ObjectDetails, err error)
- func (c *Commands) ChangeAPIApplication(ctx context.Context, apiApp *domain.APIApp, resourceOwner string) (*domain.APIApp, error)
- func (c *Commands) ChangeAPIApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string, ...) (*domain.APIApp, error)
- func (c *Commands) ChangeAction(ctx context.Context, actionChange *domain.Action, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, ...) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
- func (c *Commands) ChangeDefaultIDPConfig(ctx context.Context, config *domain.IDPConfig) (*domain.IDPConfig, error)
- func (c *Commands) ChangeDefaultIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig) (*domain.JWTIDPConfig, error)
- func (c *Commands) ChangeDefaultIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig) (*domain.OIDCIDPConfig, error)
- func (c *Commands) ChangeDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) ChangeDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) ChangeDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) ChangeDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) ChangeDefaultNotificationFile(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeDefaultNotificationLog(ctx context.Context, fileSystemProvider *fs.FSConfig) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) ChangeDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) ChangeDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) ChangeHumanAddress(ctx context.Context, address *domain.Address) (*domain.Address, error)
- func (c *Commands) ChangeHumanEmail(ctx context.Context, email *domain.Email, emailCodeGenerator crypto.Generator) (*domain.Email, error)
- func (c *Commands) ChangeHumanPhone(ctx context.Context, phone *domain.Phone, resourceOwner string, ...) (*domain.Phone, error)
- func (c *Commands) ChangeHumanProfile(ctx context.Context, profile *domain.Profile) (*domain.Profile, error)
- func (c *Commands) ChangeIDPConfig(ctx context.Context, config *domain.IDPConfig, resourceOwner string) (*domain.IDPConfig, error)
- func (c *Commands) ChangeIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig, resourceOwner string) (*domain.JWTIDPConfig, error)
- func (c *Commands) ChangeIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig, resourceOwner string) (*domain.OIDCIDPConfig, error)
- func (c *Commands) ChangeInstanceMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) ChangeLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
- func (c *Commands) ChangeLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
- func (c *Commands) ChangeLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
- func (c *Commands) ChangeMachine(ctx context.Context, machine *domain.Machine) (*domain.Machine, error)
- func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
- func (c *Commands) ChangeOIDCApplication(ctx context.Context, oidc *domain.OIDCApp, resourceOwner string) (*domain.OIDCApp, error)
- func (c *Commands) ChangeOIDCApplicationSecret(ctx context.Context, projectID, appID, resourceOwner string, ...) (*domain.OIDCApp, error)
- func (c *Commands) ChangeOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeOrg(ctx context.Context, orgID, name string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
- func (c *Commands) ChangeOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
- func (c *Commands) ChangePassword(ctx context.Context, ...) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) ChangePasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
- func (c *Commands) ChangePasswordComplexityPolicy(ctx context.Context, resourceOwner string, ...) (*domain.PasswordComplexityPolicy, error)
- func (c *Commands) ChangePrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
- func (c *Commands) ChangeProject(ctx context.Context, projectChange *domain.Project, resourceOwner string) (*domain.Project, error)
- func (c *Commands) ChangeProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string, ...) (_ *domain.ProjectGrant, err error)
- func (c *Commands) ChangeProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
- func (c *Commands) ChangeProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
- func (c *Commands) ChangeProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
- func (c *Commands) ChangeSMSConfigTwilio(ctx context.Context, instanceID, id string, config *twilio.TwilioConfig) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeSMSConfigTwilioToken(ctx context.Context, instanceID, id, token string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeSMTPConfigPassword(ctx context.Context, instanceID, password string) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType, ...) (*domain.ObjectDetails, error)
- func (c *Commands) ChangeUserGrant(ctx context.Context, userGrant *domain.UserGrant, resourceOwner string) (_ *domain.UserGrant, err error)
- func (c *Commands) ChangeUsername(ctx context.Context, orgID, userID, userName string) (*domain.ObjectDetails, error)
- func (c *Commands) ClearFlow(ctx context.Context, flowType domain.FlowType, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) CreateHumanEmailVerificationCode(ctx context.Context, userID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) CreateHumanPhoneVerificationCode(ctx context.Context, userID, resourceowner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)
- func (c *Commands) DeactivateSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) DeactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) DeleteAction(ctx context.Context, actionID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) GenerateOrgDomainValidation(ctx context.Context, orgDomain *domain.OrgDomain) (token, url string, err error)
- func (c *Commands) GenerateSigningKeyPair(ctx context.Context, algorithm string) error
- func (c *Commands) HumanAddPasswordlessInitCode(ctx context.Context, userID, resourceOwner string, ...) (*domain.PasswordlessInitCode, error)
- func (c *Commands) HumanAddPasswordlessSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool, ...) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanAddPasswordlessSetupInitCode(ctx context.Context, userID, resourceowner, codeID, verificationCode string, ...) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanAddU2FSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool) (*domain.WebAuthNToken, error)
- func (c *Commands) HumanBeginPasswordlessLogin(ctx context.Context, userID, resourceOwner string, ...) (*domain.WebAuthNLogin, error)
- func (c *Commands) HumanBeginU2FLogin(ctx context.Context, userID, resourceOwner string, ...) (*domain.WebAuthNLogin, error)
- func (c *Commands) HumanCheckMFAOTP(ctx context.Context, userID, code, resourceowner string, ...) error
- func (c *Commands) HumanCheckMFAOTPSetup(ctx context.Context, userID, code, userAgentID, resourceowner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanCheckPassword(ctx context.Context, orgID, userID, password string, ...) (err error)
- func (c *Commands) HumanEmailVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanFinishPasswordlessLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, ...) error
- func (c *Commands) HumanFinishU2FLogin(ctx context.Context, userID, resourceOwner string, credentialData []byte, ...) error
- func (c *Commands) HumanHumanPasswordlessSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumanInitCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanPasswordlessInitCodeSent(ctx context.Context, userID, resourceOwner, codeID string) error
- func (c *Commands) HumanPasswordlessSetupInitCode(ctx context.Context, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumanPhoneVerificationCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) HumanRemoveOTP(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanRemovePasswordless(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanRemoveU2F(ctx context.Context, userID, webAuthNID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) HumanSendPasswordlessInitCode(ctx context.Context, userID, resourceOwner string, ...) (*domain.PasswordlessInitCode, error)
- func (c *Commands) HumanSkipMFAInit(ctx context.Context, userID, resourceowner string) (err error)
- func (c *Commands) HumanVerifyInitCode(ctx context.Context, userID, resourceOwner, code, passwordString string, ...) error
- func (c *Commands) HumanVerifyU2FSetup(ctx context.Context, userID, resourceowner, tokenName, userAgentID string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) HumansSignOut(ctx context.Context, agentID string, userIDs []string) error
- func (c *Commands) ImportHuman(ctx context.Context, orgID string, human *domain.Human, passwordless bool, ...) (_ *domain.Human, passwordlessCode *domain.PasswordlessInitCode, err error)
- func (c *Commands) LockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) PasswordCodeSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) ReactivateAction(ctx context.Context, actionID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateDefaultIDPConfig(ctx context.Context, idpID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateIDPConfig(ctx context.Context, idpID, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateOrg(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateProject(ctx context.Context, projectID string, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string) (details *domain.ObjectDetails, err error)
- func (c *Commands) ReactivateUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) ReactivateUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RegisterHuman(ctx context.Context, orgID string, human *domain.Human, ...) (*domain.Human, error)
- func (c *Commands) RemoveApplication(ctx context.Context, projectID, appID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveApplicationKey(ctx context.Context, projectID, applicationID, keyID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveCustomInstanceLoginTexts(ctx context.Context, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveDefaultNotificationFile(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveDefaultNotificationLog(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveFontDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveFontLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveHumanAvatar(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveHumanPhone(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveIconLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveInstanceMember(ctx context.Context, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveInstanceMessageTexts(ctx context.Context, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLockoutPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLoginPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDarkDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDarkLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoDefaultLabelPolicy(ctx context.Context) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveLogoLabelPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveMailTemplate(ctx context.Context, orgID string) error
- func (c *Commands) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveMultiFactorFromLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgDomainPolicy(ctx context.Context, orgID string) error
- func (c *Commands) RemoveOrgLoginTexts(ctx context.Context, resourceOwner string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgMember(ctx context.Context, orgID, userID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveOrgMessageTexts(ctx context.Context, resourceOwner, messageTextType string, lang language.Tag) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePasswordAgePolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePasswordComplexityPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePersonalAccessToken(ctx context.Context, userID, tokenID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemovePrivacyPolicy(ctx context.Context, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProject(ctx context.Context, projectID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectGrant(ctx context.Context, projectID, grantID, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) RemoveProjectGrantMember(ctx context.Context, projectID, userID, grantID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectMember(ctx context.Context, projectID, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveProjectRole(ctx context.Context, projectID, key, resourceOwner string, ...) (details *domain.ObjectDetails, err error)
- func (c *Commands) RemoveSMSConfigTwilio(ctx context.Context, instanceID, id string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveSecondFactorFromLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserGrant(ctx context.Context, grantID, resourceOwner string) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RemoveUserIDPLink(ctx context.Context, link *domain.UserIDPLink) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserMachineKey(ctx context.Context, userID, keyID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) RemoveUserMetadata(ctx context.Context, metadataKey, userID, resourceOwner string) (_ *domain.ObjectDetails, err error)
- func (c *Commands) RenewRefreshTokenAndAccessToken(ctx context.Context, userID, orgID, refreshToken, agentID, clientID string, ...) (accessToken *domain.Token, newRefreshToken string, err error)
- func (c *Commands) RequestSetPassword(ctx context.Context, userID, resourceOwner string, ...) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) ResendInitialMail(ctx context.Context, userID, email, resourceOwner string, ...) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) RevokeAccessToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)
- func (c *Commands) RevokeRefreshToken(ctx context.Context, userID, orgID, tokenID string) (*domain.ObjectDetails, error)
- func (c *Commands) RevokeRefreshTokens(ctx context.Context, userID, orgID string, tokenIDs []string) (err error)
- func (c *Commands) SetCustomInstanceLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
- func (c *Commands) SetDefaultMessageText(ctx context.Context, instanceID string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
- func (c *Commands) SetInstanceCustomText(ctx context.Context, customText *domain.CustomText) (*domain.CustomText, error)
- func (c *Commands) SetOrgLoginText(ctx context.Context, resourceOwner string, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
- func (c *Commands) SetOrgMessageText(ctx context.Context, resourceOwner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) SetPassword(ctx context.Context, orgID, userID, passwordString string, oneTime bool) (objectDetails *domain.ObjectDetails, err error)
- func (c *Commands) SetPasswordWithVerifyCode(ctx context.Context, orgID, userID, code, passwordString, userAgentID string, ...) (err error)
- func (c *Commands) SetPrimaryInstanceDomain(ctx context.Context, instanceDomain string) (*domain.ObjectDetails, error)
- func (c *Commands) SetPrimaryOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain) (*domain.ObjectDetails, error)
- func (c *Commands) SetTriggerActions(ctx context.Context, flowType domain.FlowType, triggerType domain.TriggerType, ...) (*domain.ObjectDetails, error)
- func (c *Commands) SetUpInstance(ctx context.Context, setup *InstanceSetup) (string, *domain.ObjectDetails, error)
- func (c *Commands) SetUpOrg(ctx context.Context, o *OrgSetup) (*domain.ObjectDetails, error)
- func (c *Commands) SetUserMetadata(ctx context.Context, metadata *domain.Metadata, userID, resourceOwner string) (_ *domain.Metadata, err error)
- func (c *Commands) UnlockUser(ctx context.Context, userID, resourceOwner string) (*domain.ObjectDetails, error)
- func (c *Commands) UserDomainClaimedSent(ctx context.Context, orgID, userID string) (err error)
- func (c *Commands) UserIDPLoginChecked(ctx context.Context, orgID, userID string, authRequest *domain.AuthRequest) (err error)
- func (c *Commands) ValidateOrgDomain(ctx context.Context, orgDomain *domain.OrgDomain, claimedUserIDs []string) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyAPIClientSecret(ctx context.Context, projectID, appID, secret string) (err error)
- func (c *Commands) VerifyHumanEmail(ctx context.Context, userID, code, resourceowner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyHumanPhone(ctx context.Context, userID, code, resourceowner string, ...) (*domain.ObjectDetails, error)
- func (c *Commands) VerifyOIDCClientSecret(ctx context.Context, projectID, appID, secret string) (err error)
- type CustomLoginTextReadModel
- type CustomLoginTextsReadModel
- type CustomMessageTemplatesReadModel
- type CustomMessageTextReadModel
- type CustomText
- type CustomTextWriteModel
- type DebugNotificationWriteModel
- type Domain
- type Email
- type ExistingLabelPoliciesReadModel
- type FlowWriteModel
- type HumanAddressWriteModel
- type HumanEmailWriteModel
- type HumanInitCodeWriteModel
- type HumanOTPWriteModel
- type HumanPasswordWriteModel
- type HumanPasswordlessInitCodeWriteModel
- type HumanPasswordlessLoginReadModel
- type HumanPasswordlessTokensReadModel
- func (wm *HumanPasswordlessTokensReadModel) AppendEvents(events ...eventstore.Event)
- func (rm *HumanPasswordlessTokensReadModel) Query() *eventstore.SearchQueryBuilder
- func (wm *HumanPasswordlessTokensReadModel) Reduce() error
- func (wm *HumanPasswordlessTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
- type HumanPhoneWriteModel
- type HumanProfileWriteModel
- type HumanRefreshTokenWriteModel
- type HumanU2FLoginReadModel
- type HumanU2FTokensReadModel
- func (wm *HumanU2FTokensReadModel) AppendEvents(events ...eventstore.Event)
- func (rm *HumanU2FTokensReadModel) Query() *eventstore.SearchQueryBuilder
- func (wm *HumanU2FTokensReadModel) Reduce() error
- func (wm *HumanU2FTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
- type HumanWebAuthNWriteModel
- type HumanWriteModel
- type IAMSMSConfigWriteModel
- type IDPConfigWriteModel
- type IDPJWTConfigWriteModel
- func (wm *IDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IDPJWTConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.IDPJWTConfigChangedEvent, bool, error)
- func (wm *IDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IDPJWTConfigWriteModel) Reduce() error
- type IDPOIDCConfigWriteModel
- func (wm *IDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *IDPOIDCConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.IDPOIDCConfigChangedEvent, bool, error)
- func (wm *IDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *IDPOIDCConfigWriteModel) Reduce() error
- type IdentityProviderWriteModel
- type InstanceCustomLoginTextReadModel
- type InstanceCustomMessageTextWriteModel
- type InstanceCustomTextWriteModel
- type InstanceDebugNotificationFileWriteModel
- func (wm *InstanceDebugNotificationFileWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceDebugNotificationFileWriteModel) IsValid() bool
- func (wm *InstanceDebugNotificationFileWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, compact bool) (*instance.DebugNotificationProviderFileChangedEvent, bool)
- func (wm *InstanceDebugNotificationFileWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceDebugNotificationFileWriteModel) Reduce() error
- type InstanceDebugNotificationLogWriteModel
- func (wm *InstanceDebugNotificationLogWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceDebugNotificationLogWriteModel) IsValid() bool
- func (wm *InstanceDebugNotificationLogWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, compact bool) (*instance.DebugNotificationProviderLogChangedEvent, bool)
- func (wm *InstanceDebugNotificationLogWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceDebugNotificationLogWriteModel) Reduce() error
- type InstanceDomainPolicyWriteModel
- func (wm *InstanceDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceDomainPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.DomainPolicyChangedEvent, bool)
- func (wm *InstanceDomainPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceDomainPolicyWriteModel) Reduce() error
- type InstanceDomainWriteModel
- type InstanceIDPConfigWriteModel
- func (wm *InstanceIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
- func (wm *InstanceIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceIDPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, ...) (*instance.IDPConfigChangedEvent, bool)
- func (wm *InstanceIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceIDPConfigWriteModel) Reduce() error
- type InstanceIDPJWTConfigWriteModel
- func (wm *InstanceIDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceIDPJWTConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.IDPJWTConfigChangedEvent, bool, error)
- func (wm *InstanceIDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceIDPJWTConfigWriteModel) Reduce() error
- type InstanceIDPOIDCConfigWriteModel
- func (wm *InstanceIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceIDPOIDCConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.IDPOIDCConfigChangedEvent, bool, error)
- func (wm *InstanceIDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceIDPOIDCConfigWriteModel) Reduce() error
- type InstanceIdentityProviderWriteModel
- type InstanceLabelPolicyWriteModel
- func (wm *InstanceLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceLabelPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.LabelPolicyChangedEvent, bool)
- func (wm *InstanceLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceLabelPolicyWriteModel) Reduce() error
- type InstanceLockoutPolicyWriteModel
- func (wm *InstanceLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceLockoutPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, ...) (*instance.LockoutPolicyChangedEvent, bool)
- func (wm *InstanceLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceLockoutPolicyWriteModel) Reduce() error
- type InstanceLoginPolicyWriteModel
- func (wm *InstanceLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceLoginPolicyWriteModel) IsValid() bool
- func (wm *InstanceLoginPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.LoginPolicyChangedEvent, bool)
- func (wm *InstanceLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceLoginPolicyWriteModel) Reduce() error
- type InstanceMailTemplateWriteModel
- func (wm *InstanceMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstanceMailTemplateWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, template []byte) (*instance.MailTemplateChangedEvent, bool)
- func (wm *InstanceMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceMailTemplateWriteModel) Reduce() error
- type InstanceMemberWriteModel
- type InstanceMultiFactorWriteModel
- type InstanceOIDCSettingsWriteModel
- func (wm *InstanceOIDCSettingsWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.OIDCSettingsChangedEvent, bool, error)
- func (wm *InstanceOIDCSettingsWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceOIDCSettingsWriteModel) Reduce() error
- type InstancePasswordAgePolicyWriteModel
- func (wm *InstancePasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstancePasswordAgePolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.PasswordAgePolicyChangedEvent, bool)
- func (wm *InstancePasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstancePasswordAgePolicyWriteModel) Reduce() error
- type InstancePasswordComplexityPolicyWriteModel
- func (wm *InstancePasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstancePasswordComplexityPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, ...) (*instance.PasswordComplexityPolicyChangedEvent, bool)
- func (wm *InstancePasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstancePasswordComplexityPolicyWriteModel) Reduce() error
- type InstancePrivacyPolicyWriteModel
- func (wm *InstancePrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *InstancePrivacyPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.PrivacyPolicyChangedEvent, bool)
- func (wm *InstancePrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstancePrivacyPolicyWriteModel) Reduce() error
- type InstanceSMTPConfigWriteModel
- func (wm *InstanceSMTPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, tls bool, ...) (*instance.SMTPConfigChangedEvent, bool, error)
- func (wm *InstanceSMTPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceSMTPConfigWriteModel) Reduce() error
- type InstanceSecondFactorWriteModel
- type InstanceSecretGeneratorConfigWriteModel
- func (wm *InstanceSecretGeneratorConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*instance.SecretGeneratorChangedEvent, bool, error)
- func (wm *InstanceSecretGeneratorConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *InstanceSecretGeneratorConfigWriteModel) Reduce() error
- type InstanceSetup
- type InstanceWriteModel
- type JWTConfigWriteModel
- type KeyPairWriteModel
- type LabelPolicyWriteModel
- type LockoutPolicyWriteModel
- type LoginPolicyWriteModel
- type MachineKeyWriteModel
- type MachineWriteModel
- type MailTemplateWriteModel
- type MemberWriteModel
- type MetadataListWriteModel
- type MetadataWriteModel
- type MultiFactorWriteModel
- type OIDCApplicationWriteModel
- func (wm *OIDCApplicationWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OIDCApplicationWriteModel) IsOIDC() bool
- func (wm *OIDCApplicationWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, appID string, ...) (*project.OIDCConfigChangedEvent, bool, error)
- func (wm *OIDCApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OIDCApplicationWriteModel) Reduce() error
- type OIDCConfigWriteModel
- type OrgAuthFactorsAllowedWriteModel
- func (wm *OrgAuthFactorsAllowedWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgAuthFactorsAllowedWriteModel) Reduce() error
- func (wm *OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel(factor domain.MultiFactorType) *OrgMultiFactorWriteModel
- func (wm *OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel(factor domain.SecondFactorType) *OrgSecondFactorWriteModel
- type OrgCustomLoginTextReadModel
- type OrgCustomLoginTextsReadModel
- type OrgCustomMessageTemplatesReadModel
- type OrgCustomMessageTextReadModel
- type OrgDomainPolicyWriteModel
- func (wm *OrgDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgDomainPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.DomainPolicyChangedEvent, bool)
- func (wm *OrgDomainPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgDomainPolicyWriteModel) Reduce() error
- type OrgDomainVerifiedWriteModel
- type OrgDomainWriteModel
- type OrgDomainsWriteModel
- type OrgFlowWriteModel
- type OrgIDPConfigWriteModel
- func (wm *OrgIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
- func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgIDPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, ...) (*org.IDPConfigChangedEvent, bool)
- func (wm *OrgIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgIDPConfigWriteModel) Reduce() error
- type OrgIdentityProviderWriteModel
- type OrgLabelPolicyWriteModel
- func (wm *OrgLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLabelPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.LabelPolicyChangedEvent, bool)
- func (wm *OrgLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLabelPolicyWriteModel) Reduce() error
- type OrgLockoutPolicyWriteModel
- func (wm *OrgLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLockoutPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, ...) (*org.LockoutPolicyChangedEvent, bool)
- func (wm *OrgLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLockoutPolicyWriteModel) Reduce() error
- type OrgLoginPolicyWriteModel
- func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgLoginPolicyWriteModel) IsValid() bool
- func (wm *OrgLoginPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.LoginPolicyChangedEvent, bool)
- func (wm *OrgLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgLoginPolicyWriteModel) Reduce() error
- type OrgMailTemplateWriteModel
- func (wm *OrgMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgMailTemplateWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, template []byte) (*org.MailTemplateChangedEvent, bool)
- func (wm *OrgMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgMailTemplateWriteModel) Reduce() error
- type OrgMemberWriteModel
- type OrgMultiFactorWriteModel
- type OrgPasswordAgePolicyWriteModel
- func (wm *OrgPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPasswordAgePolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.PasswordAgePolicyChangedEvent, bool)
- func (wm *OrgPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPasswordAgePolicyWriteModel) Reduce() error
- type OrgPasswordComplexityPolicyWriteModel
- func (wm *OrgPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPasswordComplexityPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, ...) (*org.PasswordComplexityPolicyChangedEvent, bool)
- func (wm *OrgPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPasswordComplexityPolicyWriteModel) Reduce() error
- type OrgPrivacyPolicyWriteModel
- func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*org.PrivacyPolicyChangedEvent, bool)
- func (wm *OrgPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *OrgPrivacyPolicyWriteModel) Reduce() error
- type OrgSecondFactorWriteModel
- type OrgSetup
- type OrgWriteModel
- type PasswordAgePolicyWriteModel
- type PasswordComplexityPolicyWriteModel
- type PersonalAccessTokenWriteModel
- type Phone
- type PolicyDomainWriteModel
- type PrivacyPolicyWriteModel
- type ProjectGrantMemberWriteModel
- type ProjectGrantPreConditionReadModel
- type ProjectGrantWriteModel
- type ProjectMemberWriteModel
- type ProjectRoleWriteModel
- func (wm *ProjectRoleWriteModel) AppendEvents(events ...eventstore.Event)
- func (wm *ProjectRoleWriteModel) NewProjectRoleChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, ...) (*project.RoleChangedEvent, bool, error)
- func (wm *ProjectRoleWriteModel) Query() *eventstore.SearchQueryBuilder
- func (wm *ProjectRoleWriteModel) Reduce() error
- type ProjectWriteModel
- type SecondFactorWriteModel
- type TwilioConfig
- type UniqueConstraintReadModel
- type UserAccessTokenWriteModel
- type UserGrantPreConditionReadModel
- type UserGrantWriteModel
- type UserIDPLinkWriteModel
- type UserMetadataByOrgListWriteModel
- type UserMetadataListWriteModel
- type UserMetadataWriteModel
- type UserWriteModel
- type ZitadelConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionAggregateFromWriteModel ¶
func ActionAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func ActivateDefaultLabelPolicy ¶
func ActivateDefaultLabelPolicy( a *instance.Aggregate, ) preparation.Validation
func AddAPIAppCommand ¶
func AddAPIAppCommand(app *addAPIApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation
func AddDefaultDomainPolicy ¶
func AddDefaultDomainPolicy( a *instance.Aggregate, userLoginMustBeDomain, validateOrgDomains bool, ) preparation.Validation
func AddDefaultLabelPolicy ¶
func AddDefaultLabelPolicy( a *instance.Aggregate, primaryColor, backgroundColor, warnColor, fontColor, primaryColorDark, backgroundColorDark, warnColorDark, fontColorDark string, hideLoginNameSuffix, errorMsgPopup, disableWatermark bool, ) preparation.Validation
func AddDefaultLockoutPolicy ¶
func AddDefaultLockoutPolicy( a *instance.Aggregate, maxAttempts uint64, showLockoutFailure bool, ) preparation.Validation
func AddDefaultLoginPolicy ¶
func AddDefaultLoginPolicy( a *instance.Aggregate, allowUsernamePassword bool, allowRegister bool, allowExternalIDP bool, forceMFA bool, hidePasswordReset bool, passwordlessType domain.PasswordlessType, passwordCheckLifetime time.Duration, externalLoginCheckLifetime time.Duration, mfaInitSkipLifetime time.Duration, secondFactorCheckLifetime time.Duration, multiFactorCheckLifetime time.Duration, ) preparation.Validation
func AddEmailTemplate ¶
func AddEmailTemplate( a *instance.Aggregate, tempalte []byte, ) preparation.Validation
func AddHumanCommand ¶
func AddHumanCommand(a *user.Aggregate, human *AddHuman, passwordAlg crypto.HashAlgorithm, codeAlg crypto.EncryptionAlgorithm) preparation.Validation
func AddMultiFactorToDefaultLoginPolicy ¶
func AddMultiFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.MultiFactorType) preparation.Validation
func AddOIDCAppCommand ¶
func AddOIDCAppCommand(app *addOIDCApp, clientSecretAlg crypto.HashAlgorithm) preparation.Validation
AddOIDCAppCommand prepares the commands to add an oidc app. The ClientID will be set during the CreateCommands
func AddOrgCommand ¶
func AddOrgCommand(ctx context.Context, a *org.Aggregate, name string) preparation.Validation
AddOrgCommand defines the commands to create a new org, this includes the verified default domain
func AddOrgDomain ¶
func AddOrgDomain(a *org.Aggregate, domain string) preparation.Validation
func AddPasswordAgePolicy ¶
func AddPasswordAgePolicy( a *instance.Aggregate, expireWarnDays, maxAgeDays uint64, ) preparation.Validation
func AddPasswordComplexityPolicy ¶
func AddPasswordComplexityPolicy( a *instance.Aggregate, minLength uint64, hasLowercase, hasUppercase, hasNumber, hasSymbol bool, ) preparation.Validation
func AddPrivacyPolicy ¶
func AddPrivacyPolicy( a *instance.Aggregate, tosLink, privacyLink, helpLink string, ) preparation.Validation
func AddProjectCommand ¶
func AddProjectCommand( a *project.Aggregate, name string, owner string, projectRoleAssertion bool, projectRoleCheck bool, hasProjectCheck bool, privateLabelingSetting domain.PrivateLabelingSetting, ) preparation.Validation
func AddSecondFactorToDefaultLoginPolicy ¶
func AddSecondFactorToDefaultLoginPolicy(a *instance.Aggregate, factor domain.SecondFactorType) preparation.Validation
func AppendAndReduce ¶
func AppendAndReduce(object interface { AppendEvents(...eventstore.Event) Reduce() error }, events ...eventstore.Event) error
func CheckDomainPolicyForUserName ¶
func CheckDomainPolicyForUserName(userName string, policy *domain.DomainPolicy) error
func ExistsUser ¶
func ExistsUser(ctx context.Context, filter preparation.FilterToQueryReducer, id, resourceOwner string) (exists bool, err error)
func FormatPhoneNumber ¶
func InstanceAggregateFromWriteModel ¶
func InstanceAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func IsInstanceMember ¶
func IsInstanceMember(ctx context.Context, filter preparation.FilterToQueryReducer, instanceID, userID string) (isMember bool, err error)
func IsOrgMember ¶
func IsOrgMember(ctx context.Context, filter preparation.FilterToQueryReducer, orgID, userID string) (isMember bool, err error)
func KeyPairAggregateFromWriteModel ¶
func KeyPairAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func NewActionAggregate ¶
func NewActionAggregate(id, resourceOwner string) *eventstore.Aggregate
func OrgAggregateFromWriteModel ¶
func OrgAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func ProjectAggregateFromWriteModel ¶
func ProjectAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func SetIAMConsoleID ¶
func SetIAMConsoleID(a *instance.Aggregate, clientID, appID *string) preparation.Validation
SetIAMConsoleID defines the command to set the clientID of the Console App onto the instance
func SetIAMProject ¶
func SetIAMProject(a *instance.Aggregate, projectID string) preparation.Validation
SetIAMProject defines the command to set the id of the IAM project onto the instance
func SetInstanceCustomTexts ¶
func SetInstanceCustomTexts( a *instance.Aggregate, msg *domain.CustomMessageText, ) preparation.Validation
func SetPrimaryOrgDomain ¶
func SetPrimaryOrgDomain(a *org.Aggregate, domain string) preparation.Validation
func UserAggregateFromWriteModel ¶
func UserAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func UserGrantAggregateFromWriteModel ¶
func UserGrantAggregateFromWriteModel(wm *eventstore.WriteModel) *eventstore.Aggregate
func VerifyOrgDomain ¶
func VerifyOrgDomain(a *org.Aggregate, domain string) preparation.Validation
Types ¶
type APIApplicationWriteModel ¶
type APIApplicationWriteModel struct { eventstore.WriteModel AppID string AppName string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string AuthMethodType domain.APIAuthMethodType State domain.AppState // contains filtered or unexported fields }
func NewAPIApplicationWriteModel ¶
func NewAPIApplicationWriteModel(projectID, resourceOwner string) *APIApplicationWriteModel
func NewAPIApplicationWriteModelWithAppID ¶
func NewAPIApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *APIApplicationWriteModel
func (*APIApplicationWriteModel) AppendEvents ¶
func (wm *APIApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*APIApplicationWriteModel) IsAPI ¶
func (wm *APIApplicationWriteModel) IsAPI() bool
func (*APIApplicationWriteModel) NewChangedEvent ¶
func (wm *APIApplicationWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, appID string, authMethodType domain.APIAuthMethodType, ) (*project.APIConfigChangedEvent, bool, error)
func (*APIApplicationWriteModel) Query ¶
func (wm *APIApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*APIApplicationWriteModel) Reduce ¶
func (wm *APIApplicationWriteModel) Reduce() error
type ActionExistsModel ¶
type ActionExistsModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func NewActionsExistModel ¶
func NewActionsExistModel(actionIDs []string, resourceOwner string) *ActionExistsModel
func (*ActionExistsModel) Query ¶
func (wm *ActionExistsModel) Query() *eventstore.SearchQueryBuilder
func (*ActionExistsModel) Reduce ¶
func (wm *ActionExistsModel) Reduce() error
type ActionWriteModel ¶
type ActionWriteModel struct { eventstore.WriteModel Name string Script string Timeout time.Duration AllowedToFail bool State domain.ActionState }
func NewActionWriteModel ¶
func NewActionWriteModel(actionID string, resourceOwner string) *ActionWriteModel
func (*ActionWriteModel) NewChangedEvent ¶
func (wm *ActionWriteModel) NewChangedEvent( ctx context.Context, agg *eventstore.Aggregate, name string, script string, timeout time.Duration, allowedToFail bool, ) (*action.ChangedEvent, error)
func (*ActionWriteModel) Query ¶
func (wm *ActionWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ActionWriteModel) Reduce ¶
func (wm *ActionWriteModel) Reduce() error
type ActionsListByOrgModel ¶
type ActionsListByOrgModel struct { eventstore.WriteModel Actions map[string]*ActionWriteModel }
func NewActionsListByOrgModel ¶
func NewActionsListByOrgModel(resourceOwner string) *ActionsListByOrgModel
func (*ActionsListByOrgModel) Query ¶
func (wm *ActionsListByOrgModel) Query() *eventstore.SearchQueryBuilder
func (*ActionsListByOrgModel) Reduce ¶
func (wm *ActionsListByOrgModel) Reduce() error
type AddHuman ¶
type AddHuman struct { // Username is required Username string // FirstName is required FirstName string // LastName is required LastName string // NickName is required NickName string // DisplayName is required DisplayName string // Email is required Email Email // PreferredLanguage is required PreferredLanguage language.Tag // Gender is required Gender domain.Gender //Phone represents an international phone number Phone Phone //Password is optional Password string //PasswordChangeRequired is used if the `Password`-field is set PasswordChangeRequired bool Passwordless bool ExternalIDP bool Register bool }
type ApplicationKeyWriteModel ¶
type ApplicationKeyWriteModel struct { eventstore.WriteModel AppID string ClientID string KeyID string KeyType domain.AuthNKeyType ExpirationDate time.Time State domain.AppState KeysAllowed bool }
func NewApplicationKeyWriteModel ¶
func NewApplicationKeyWriteModel(projectID, appID, keyID, resourceOwner string) *ApplicationKeyWriteModel
func (*ApplicationKeyWriteModel) AppendEvents ¶
func (wm *ApplicationKeyWriteModel) AppendEvents(events ...eventstore.Event)
func (*ApplicationKeyWriteModel) Query ¶
func (wm *ApplicationKeyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ApplicationKeyWriteModel) Reduce ¶
func (wm *ApplicationKeyWriteModel) Reduce() error
type ApplicationWriteModel ¶
type ApplicationWriteModel struct { eventstore.WriteModel AppID string State domain.AppState Name string }
func NewApplicationWriteModel ¶
func NewApplicationWriteModel(projectID, resourceOwner string) *ApplicationWriteModel
func NewApplicationWriteModelWithAppIDC ¶
func NewApplicationWriteModelWithAppIDC(projectID, appID, resourceOwner string) *ApplicationWriteModel
func (*ApplicationWriteModel) AppendEvents ¶
func (wm *ApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*ApplicationWriteModel) Query ¶
func (wm *ApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ApplicationWriteModel) Reduce ¶
func (wm *ApplicationWriteModel) Reduce() error
type AssetUpload ¶
type Commands ¶
type Commands struct {
// contains filtered or unexported fields
}
func StartCommands ¶
func StartCommands(es *eventstore.Eventstore, defaults sd.SystemDefaults, zitadelRoles []authz.RoleMapping, staticStore static.Storage, webAuthN *webauthn_helper.Config, externalDomain string, externalSecure bool, externalPort uint16, idpConfigEncryption, otpEncryption, smtpEncryption, smsEncryption, userEncryption, domainVerificationEncryption, oidcEncryption crypto.EncryptionAlgorithm, ) (repo *Commands, err error)
func (*Commands) ActivateDefaultLabelPolicy ¶
func (*Commands) ActivateLabelPolicy ¶
func (*Commands) ActivateSMSConfigTwilio ¶
func (*Commands) AddAPIApplication ¶
func (*Commands) AddAccessAndRefreshToken ¶
func (c *Commands) AddAccessAndRefreshToken( ctx context.Context, orgID, agentID, clientID, userID, refreshToken string, audience, scopes, authMethodsReferences []string, accessLifetime, refreshIdleExpiration, refreshExpiration time.Duration, authTime time.Time, ) (accessToken *domain.Token, newRefreshToken string, err error)
func (*Commands) AddApplicationKey ¶
func (c *Commands) AddApplicationKey(ctx context.Context, key *domain.ApplicationKey, resourceOwner string) (_ *domain.ApplicationKey, err error)
func (*Commands) AddDebugNotificationProviderFile ¶
func (*Commands) AddDebugNotificationProviderLog ¶
func (*Commands) AddDefaultDomainPolicy ¶
func (c *Commands) AddDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
func (*Commands) AddDefaultIDPConfig ¶
func (*Commands) AddDefaultLabelPolicy ¶
func (c *Commands) AddDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) AddDefaultLockoutPolicy ¶
func (c *Commands) AddDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) AddDefaultLoginPolicy ¶
func (c *Commands) AddDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) AddDefaultMailTemplate ¶
func (c *Commands) AddDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) AddDefaultPasswordAgePolicy ¶
func (c *Commands) AddDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) AddDefaultPasswordComplexityPolicy ¶
func (c *Commands) AddDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) AddDefaultPrivacyPolicy ¶
func (c *Commands) AddDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) AddFontDefaultLabelPolicy ¶
func (c *Commands) AddFontDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddFontLabelPolicy ¶
func (c *Commands) AddFontLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddHumanAvatar ¶
func (c *Commands) AddHumanAvatar(ctx context.Context, orgID, userID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddHumanOTP ¶
func (*Commands) AddIDPConfig ¶
func (*Commands) AddIDPProviderToDefaultLoginPolicy ¶
func (c *Commands) AddIDPProviderToDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
func (*Commands) AddIDPProviderToLoginPolicy ¶
func (c *Commands) AddIDPProviderToLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider) (*domain.IDPProvider, error)
func (*Commands) AddIconDarkDefaultLabelPolicy ¶
func (c *Commands) AddIconDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddIconDarkLabelPolicy ¶
func (c *Commands) AddIconDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddIconDefaultLabelPolicy ¶
func (c *Commands) AddIconDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddIconLabelPolicy ¶
func (c *Commands) AddIconLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddInstanceDomain ¶
func (*Commands) AddInstanceMember ¶
func (*Commands) AddInstanceMemberCommand ¶
func (c *Commands) AddInstanceMemberCommand(a *instance.Aggregate, userID string, roles ...string) preparation.Validation
func (*Commands) AddLabelPolicy ¶
func (c *Commands) AddLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) AddLockoutPolicy ¶
func (c *Commands) AddLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) AddLoginPolicy ¶
func (c *Commands) AddLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) AddLogoDarkDefaultLabelPolicy ¶
func (c *Commands) AddLogoDarkDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddLogoDarkLabelPolicy ¶
func (c *Commands) AddLogoDarkLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddLogoDefaultLabelPolicy ¶
func (c *Commands) AddLogoDefaultLabelPolicy(ctx context.Context, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddLogoLabelPolicy ¶
func (c *Commands) AddLogoLabelPolicy(ctx context.Context, orgID string, upload *AssetUpload) (*domain.ObjectDetails, error)
func (*Commands) AddMachine ¶
func (*Commands) AddMailTemplate ¶
func (c *Commands) AddMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) AddMultiFactorToDefaultLoginPolicy ¶
func (c *Commands) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (domain.MultiFactorType, *domain.ObjectDetails, error)
func (*Commands) AddMultiFactorToLoginPolicy ¶
func (c *Commands) AddMultiFactorToLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (domain.MultiFactorType, *domain.ObjectDetails, error)
func (*Commands) AddNewRefreshTokenAndAccessToken ¶
func (c *Commands) AddNewRefreshTokenAndAccessToken( ctx context.Context, userID, orgID, agentID, clientID string, audience, scopes, authMethodsReferences []string, refreshExpiration, accessLifetime, refreshIdleExpiration time.Duration, authTime time.Time, ) (accessToken *domain.Token, newRefreshToken string, err error)
func (*Commands) AddOIDCApplication ¶
func (*Commands) AddOIDCSettings ¶
func (c *Commands) AddOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)
func (*Commands) AddOrgDomain ¶
func (*Commands) AddOrgDomainPolicy ¶
func (c *Commands) AddOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
func (*Commands) AddOrgMember ¶
func (*Commands) AddOrgMemberCommand ¶
func (c *Commands) AddOrgMemberCommand(a *org.Aggregate, userID string, roles ...string) preparation.Validation
func (*Commands) AddPasswordAgePolicy ¶
func (c *Commands) AddPasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) AddPasswordComplexityPolicy ¶
func (c *Commands) AddPasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) AddPersonalAccessToken ¶
func (*Commands) AddPrivacyPolicy ¶
func (c *Commands) AddPrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) AddProject ¶
func (*Commands) AddProjectGrant ¶
func (c *Commands) AddProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string) (_ *domain.ProjectGrant, err error)
func (*Commands) AddProjectGrantMember ¶
func (c *Commands) AddProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
func (*Commands) AddProjectMember ¶
func (*Commands) AddProjectRole ¶
func (c *Commands) AddProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
func (*Commands) AddSMSConfigTwilio ¶
func (c *Commands) AddSMSConfigTwilio(ctx context.Context, instanceID string, config *twilio.TwilioConfig) (string, *domain.ObjectDetails, error)
func (*Commands) AddSMTPConfig ¶
func (c *Commands) AddSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)
func (*Commands) AddSecondFactorToDefaultLoginPolicy ¶
func (c *Commands) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (domain.SecondFactorType, *domain.ObjectDetails, error)
func (*Commands) AddSecondFactorToLoginPolicy ¶
func (c *Commands) AddSecondFactorToLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (domain.SecondFactorType, *domain.ObjectDetails, error)
func (*Commands) AddSecretGeneratorConfig ¶
func (c *Commands) AddSecretGeneratorConfig(ctx context.Context, typ domain.SecretGeneratorType, config *crypto.GeneratorConfig) (*domain.ObjectDetails, error)
func (*Commands) AddUserGrant ¶
func (*Commands) AddUserMachineKey ¶
func (c *Commands) AddUserMachineKey(ctx context.Context, machineKey *domain.MachineKey, resourceOwner string) (*domain.MachineKey, error)
func (*Commands) AddUserToken ¶
func (*Commands) BulkAddProjectRole ¶
func (c *Commands) BulkAddProjectRole(ctx context.Context, projectID, resourceOwner string, projectRoles []*domain.ProjectRole) (details *domain.ObjectDetails, err error)
func (*Commands) BulkAddedUserIDPLinks ¶
func (*Commands) BulkRemoveUserGrant ¶
func (*Commands) BulkRemoveUserMetadata ¶
func (*Commands) BulkSetUserMetadata ¶
func (*Commands) ChangeAPIApplication ¶
func (*Commands) ChangeAPIApplicationSecret ¶
func (*Commands) ChangeAction ¶
func (*Commands) ChangeApplication ¶
func (c *Commands) ChangeApplication(ctx context.Context, projectID string, appChange domain.Application, resourceOwner string) (*domain.ObjectDetails, error)
func (*Commands) ChangeDefaultDomainPolicy ¶
func (c *Commands) ChangeDefaultDomainPolicy(ctx context.Context, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
func (*Commands) ChangeDefaultIDPConfig ¶
func (*Commands) ChangeDefaultIDPJWTConfig ¶
func (c *Commands) ChangeDefaultIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig) (*domain.JWTIDPConfig, error)
func (*Commands) ChangeDefaultIDPOIDCConfig ¶
func (c *Commands) ChangeDefaultIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig) (*domain.OIDCIDPConfig, error)
func (*Commands) ChangeDefaultLabelPolicy ¶
func (c *Commands) ChangeDefaultLabelPolicy(ctx context.Context, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) ChangeDefaultLockoutPolicy ¶
func (c *Commands) ChangeDefaultLockoutPolicy(ctx context.Context, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) ChangeDefaultLoginPolicy ¶
func (c *Commands) ChangeDefaultLoginPolicy(ctx context.Context, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) ChangeDefaultMailTemplate ¶
func (c *Commands) ChangeDefaultMailTemplate(ctx context.Context, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) ChangeDefaultNotificationFile ¶
func (*Commands) ChangeDefaultNotificationLog ¶
func (*Commands) ChangeDefaultPasswordAgePolicy ¶
func (c *Commands) ChangeDefaultPasswordAgePolicy(ctx context.Context, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) ChangeDefaultPasswordComplexityPolicy ¶
func (c *Commands) ChangeDefaultPasswordComplexityPolicy(ctx context.Context, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) ChangeDefaultPrivacyPolicy ¶
func (c *Commands) ChangeDefaultPrivacyPolicy(ctx context.Context, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) ChangeHumanAddress ¶
func (*Commands) ChangeHumanEmail ¶
func (*Commands) ChangeHumanPhone ¶
func (*Commands) ChangeHumanProfile ¶
func (*Commands) ChangeIDPConfig ¶
func (*Commands) ChangeIDPJWTConfig ¶
func (c *Commands) ChangeIDPJWTConfig(ctx context.Context, config *domain.JWTIDPConfig, resourceOwner string) (*domain.JWTIDPConfig, error)
func (*Commands) ChangeIDPOIDCConfig ¶
func (c *Commands) ChangeIDPOIDCConfig(ctx context.Context, config *domain.OIDCIDPConfig, resourceOwner string) (*domain.OIDCIDPConfig, error)
func (*Commands) ChangeInstanceMember ¶
func (c *Commands) ChangeInstanceMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
ChangeInstanceMember updates an existing member
func (*Commands) ChangeLabelPolicy ¶
func (c *Commands) ChangeLabelPolicy(ctx context.Context, resourceOwner string, policy *domain.LabelPolicy) (*domain.LabelPolicy, error)
func (*Commands) ChangeLockoutPolicy ¶
func (c *Commands) ChangeLockoutPolicy(ctx context.Context, resourceOwner string, policy *domain.LockoutPolicy) (*domain.LockoutPolicy, error)
func (*Commands) ChangeLoginPolicy ¶
func (c *Commands) ChangeLoginPolicy(ctx context.Context, resourceOwner string, policy *domain.LoginPolicy) (*domain.LoginPolicy, error)
func (*Commands) ChangeMachine ¶
func (*Commands) ChangeMailTemplate ¶
func (c *Commands) ChangeMailTemplate(ctx context.Context, resourceOwner string, policy *domain.MailTemplate) (*domain.MailTemplate, error)
func (*Commands) ChangeOIDCApplication ¶
func (*Commands) ChangeOIDCApplicationSecret ¶
func (*Commands) ChangeOIDCSettings ¶
func (c *Commands) ChangeOIDCSettings(ctx context.Context, settings *domain.OIDCSettings) (*domain.ObjectDetails, error)
func (*Commands) ChangeOrgDomainPolicy ¶
func (c *Commands) ChangeOrgDomainPolicy(ctx context.Context, resourceOwner string, policy *domain.DomainPolicy) (*domain.DomainPolicy, error)
func (*Commands) ChangeOrgMember ¶
func (c *Commands) ChangeOrgMember(ctx context.Context, member *domain.Member) (*domain.Member, error)
ChangeOrgMember updates an existing member
func (*Commands) ChangePassword ¶
func (*Commands) ChangePasswordAgePolicy ¶
func (c *Commands) ChangePasswordAgePolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordAgePolicy) (*domain.PasswordAgePolicy, error)
func (*Commands) ChangePasswordComplexityPolicy ¶
func (c *Commands) ChangePasswordComplexityPolicy(ctx context.Context, resourceOwner string, policy *domain.PasswordComplexityPolicy) (*domain.PasswordComplexityPolicy, error)
func (*Commands) ChangePrivacyPolicy ¶
func (c *Commands) ChangePrivacyPolicy(ctx context.Context, resourceOwner string, policy *domain.PrivacyPolicy) (*domain.PrivacyPolicy, error)
func (*Commands) ChangeProject ¶
func (*Commands) ChangeProjectGrant ¶
func (c *Commands) ChangeProjectGrant(ctx context.Context, grant *domain.ProjectGrant, resourceOwner string, cascadeUserGrantIDs ...string) (_ *domain.ProjectGrant, err error)
func (*Commands) ChangeProjectGrantMember ¶
func (c *Commands) ChangeProjectGrantMember(ctx context.Context, member *domain.ProjectGrantMember) (*domain.ProjectGrantMember, error)
ChangeProjectGrantMember updates an existing member
func (*Commands) ChangeProjectMember ¶
func (c *Commands) ChangeProjectMember(ctx context.Context, member *domain.Member, resourceOwner string) (*domain.Member, error)
ChangeProjectMember updates an existing member
func (*Commands) ChangeProjectRole ¶
func (c *Commands) ChangeProjectRole(ctx context.Context, projectRole *domain.ProjectRole, resourceOwner string) (_ *domain.ProjectRole, err error)
func (*Commands) ChangeSMSConfigTwilio ¶
func (c *Commands) ChangeSMSConfigTwilio(ctx context.Context, instanceID, id string, config *twilio.TwilioConfig) (*domain.ObjectDetails, error)
func (*Commands) ChangeSMSConfigTwilioToken ¶
func (*Commands) ChangeSMTPConfig ¶
func (c *Commands) ChangeSMTPConfig(ctx context.Context, instanceID string, config *smtp.EmailConfig) (*domain.ObjectDetails, error)
func (*Commands) ChangeSMTPConfigPassword ¶
func (*Commands) ChangeSecretGeneratorConfig ¶
func (c *Commands) ChangeSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType, config *crypto.GeneratorConfig) (*domain.ObjectDetails, error)
func (*Commands) ChangeUserGrant ¶
func (*Commands) ChangeUsername ¶
func (*Commands) CreateHumanEmailVerificationCode ¶
func (*Commands) CreateHumanPhoneVerificationCode ¶
func (*Commands) DeactivateAction ¶
func (*Commands) DeactivateApplication ¶
func (*Commands) DeactivateDefaultIDPConfig ¶
func (*Commands) DeactivateIDPConfig ¶
func (*Commands) DeactivateOrg ¶
func (*Commands) DeactivateProject ¶
func (*Commands) DeactivateProjectGrant ¶
func (*Commands) DeactivateSMSConfigTwilio ¶
func (*Commands) DeactivateUser ¶
func (*Commands) DeactivateUserGrant ¶
func (*Commands) DeleteAction ¶
func (*Commands) GenerateOrgDomainValidation ¶
func (*Commands) GenerateSigningKeyPair ¶
func (*Commands) HumanAddPasswordlessInitCode ¶
func (*Commands) HumanAddPasswordlessSetup ¶
func (c *Commands) HumanAddPasswordlessSetup(ctx context.Context, userID, resourceowner string, isLoginUI bool, authenticatorPlatform domain.AuthenticatorAttachment) (*domain.WebAuthNToken, error)
func (*Commands) HumanAddPasswordlessSetupInitCode ¶
func (*Commands) HumanAddU2FSetup ¶
func (*Commands) HumanBeginPasswordlessLogin ¶
func (c *Commands) HumanBeginPasswordlessLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)
func (*Commands) HumanBeginU2FLogin ¶
func (c *Commands) HumanBeginU2FLogin(ctx context.Context, userID, resourceOwner string, authRequest *domain.AuthRequest, isLoginUI bool) (*domain.WebAuthNLogin, error)
func (*Commands) HumanCheckMFAOTP ¶
func (*Commands) HumanCheckMFAOTPSetup ¶
func (*Commands) HumanCheckPassword ¶
func (c *Commands) HumanCheckPassword(ctx context.Context, orgID, userID, password string, authRequest *domain.AuthRequest, lockoutPolicy *domain.LockoutPolicy) (err error)
func (*Commands) HumanEmailVerificationCodeSent ¶
func (*Commands) HumanFinishPasswordlessLogin ¶
func (*Commands) HumanFinishU2FLogin ¶
func (*Commands) HumanHumanPasswordlessSetup ¶
func (*Commands) HumanInitCodeSent ¶
func (*Commands) HumanPasswordlessInitCodeSent ¶
func (*Commands) HumanPasswordlessSetupInitCode ¶
func (*Commands) HumanPhoneVerificationCodeSent ¶
func (*Commands) HumanRemoveOTP ¶
func (*Commands) HumanRemovePasswordless ¶
func (*Commands) HumanRemoveU2F ¶
func (*Commands) HumanSendPasswordlessInitCode ¶
func (*Commands) HumanSkipMFAInit ¶
func (*Commands) HumanVerifyInitCode ¶
func (*Commands) HumanVerifyU2FSetup ¶
func (*Commands) HumansSignOut ¶
func (*Commands) ImportHuman ¶
func (*Commands) PasswordCodeSent ¶
func (*Commands) ReactivateAction ¶
func (*Commands) ReactivateApplication ¶
func (*Commands) ReactivateDefaultIDPConfig ¶
func (*Commands) ReactivateIDPConfig ¶
func (*Commands) ReactivateOrg ¶
func (*Commands) ReactivateProject ¶
func (*Commands) ReactivateProjectGrant ¶
func (*Commands) ReactivateUser ¶
func (*Commands) ReactivateUserGrant ¶
func (*Commands) RegisterHuman ¶
func (*Commands) RemoveApplication ¶
func (*Commands) RemoveApplicationKey ¶
func (*Commands) RemoveCustomInstanceLoginTexts ¶
func (*Commands) RemoveDefaultIDPConfig ¶
func (c *Commands) RemoveDefaultIDPConfig(ctx context.Context, idpID string, idpProviders []*domain.IDPProvider, externalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveDefaultNotificationFile ¶
func (*Commands) RemoveDefaultNotificationLog ¶
func (*Commands) RemoveFontDefaultLabelPolicy ¶
func (*Commands) RemoveFontLabelPolicy ¶
func (*Commands) RemoveHumanAvatar ¶
func (*Commands) RemoveHumanPhone ¶
func (*Commands) RemoveIDPConfig ¶
func (c *Commands) RemoveIDPConfig(ctx context.Context, idpID, orgID string, cascadeRemoveProvider bool, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIDPProviderFromDefaultLoginPolicy ¶
func (c *Commands) RemoveIDPProviderFromDefaultLoginPolicy(ctx context.Context, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIDPProviderFromLoginPolicy ¶
func (c *Commands) RemoveIDPProviderFromLoginPolicy(ctx context.Context, resourceOwner string, idpProvider *domain.IDPProvider, cascadeExternalIDPs ...*domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveIconDarkDefaultLabelPolicy ¶
func (*Commands) RemoveIconDarkLabelPolicy ¶
func (*Commands) RemoveIconDefaultLabelPolicy ¶
func (*Commands) RemoveIconLabelPolicy ¶
func (*Commands) RemoveInstanceDomain ¶
func (*Commands) RemoveInstanceMember ¶
func (*Commands) RemoveInstanceMessageTexts ¶
func (*Commands) RemoveLabelPolicy ¶
func (*Commands) RemoveLockoutPolicy ¶
func (*Commands) RemoveLoginPolicy ¶
func (*Commands) RemoveLogoDarkDefaultLabelPolicy ¶
func (*Commands) RemoveLogoDarkLabelPolicy ¶
func (*Commands) RemoveLogoDefaultLabelPolicy ¶
func (*Commands) RemoveLogoLabelPolicy ¶
func (*Commands) RemoveMailTemplate ¶
func (*Commands) RemoveMultiFactorFromDefaultLoginPolicy ¶
func (c *Commands) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType) (*domain.ObjectDetails, error)
func (*Commands) RemoveMultiFactorFromLoginPolicy ¶
func (c *Commands) RemoveMultiFactorFromLoginPolicy(ctx context.Context, multiFactor domain.MultiFactorType, orgID string) (*domain.ObjectDetails, error)
func (*Commands) RemoveOrgDomain ¶
func (*Commands) RemoveOrgDomainPolicy ¶
func (*Commands) RemoveOrgLoginTexts ¶
func (*Commands) RemoveOrgMember ¶
func (*Commands) RemoveOrgMessageTexts ¶
func (*Commands) RemovePasswordAgePolicy ¶
func (*Commands) RemovePasswordComplexityPolicy ¶
func (*Commands) RemovePersonalAccessToken ¶
func (*Commands) RemovePrivacyPolicy ¶
func (*Commands) RemoveProject ¶
func (*Commands) RemoveProjectGrant ¶
func (*Commands) RemoveProjectGrantMember ¶
func (*Commands) RemoveProjectMember ¶
func (*Commands) RemoveProjectRole ¶
func (*Commands) RemoveSMSConfigTwilio ¶
func (*Commands) RemoveSecondFactorFromDefaultLoginPolicy ¶
func (c *Commands) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType) (*domain.ObjectDetails, error)
func (*Commands) RemoveSecondFactorFromLoginPolicy ¶
func (c *Commands) RemoveSecondFactorFromLoginPolicy(ctx context.Context, secondFactor domain.SecondFactorType, orgID string) (*domain.ObjectDetails, error)
func (*Commands) RemoveSecretGeneratorConfig ¶
func (c *Commands) RemoveSecretGeneratorConfig(ctx context.Context, generatorType domain.SecretGeneratorType) (*domain.ObjectDetails, error)
func (*Commands) RemoveUser ¶
func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, cascadingUserMemberships []*query.Membership, cascadingGrantIDs ...string) (*domain.ObjectDetails, error)
func (*Commands) RemoveUserGrant ¶
func (*Commands) RemoveUserIDPLink ¶
func (c *Commands) RemoveUserIDPLink(ctx context.Context, link *domain.UserIDPLink) (*domain.ObjectDetails, error)
func (*Commands) RemoveUserMachineKey ¶
func (*Commands) RemoveUserMetadata ¶
func (*Commands) RenewRefreshTokenAndAccessToken ¶
func (*Commands) RequestSetPassword ¶
func (*Commands) ResendInitialMail ¶
func (c *Commands) ResendInitialMail(ctx context.Context, userID, email, resourceOwner string, initCodeGenerator crypto.Generator) (objectDetails *domain.ObjectDetails, err error)
ResendInitialMail resend inital mail and changes email if provided
func (*Commands) RevokeAccessToken ¶
func (*Commands) RevokeRefreshToken ¶
func (*Commands) RevokeRefreshTokens ¶
func (*Commands) SetCustomInstanceLoginText ¶
func (c *Commands) SetCustomInstanceLoginText(ctx context.Context, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
func (*Commands) SetDefaultMessageText ¶
func (c *Commands) SetDefaultMessageText(ctx context.Context, instanceID string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
func (*Commands) SetInstanceCustomText ¶
func (c *Commands) SetInstanceCustomText(ctx context.Context, customText *domain.CustomText) (*domain.CustomText, error)
func (*Commands) SetOrgLoginText ¶
func (c *Commands) SetOrgLoginText(ctx context.Context, resourceOwner string, loginText *domain.CustomLoginText) (*domain.ObjectDetails, error)
func (*Commands) SetOrgMessageText ¶
func (c *Commands) SetOrgMessageText(ctx context.Context, resourceOwner string, messageText *domain.CustomMessageText) (*domain.ObjectDetails, error)
func (*Commands) SetPassword ¶
func (*Commands) SetPasswordWithVerifyCode ¶
func (*Commands) SetPrimaryInstanceDomain ¶
func (*Commands) SetPrimaryOrgDomain ¶
func (*Commands) SetTriggerActions ¶
func (*Commands) SetUpInstance ¶
func (c *Commands) SetUpInstance(ctx context.Context, setup *InstanceSetup) (string, *domain.ObjectDetails, error)
func (*Commands) SetUserMetadata ¶
func (*Commands) UnlockUser ¶
func (*Commands) UserDomainClaimedSent ¶
func (*Commands) UserIDPLoginChecked ¶
func (*Commands) ValidateOrgDomain ¶
func (*Commands) VerifyAPIClientSecret ¶
func (*Commands) VerifyHumanEmail ¶
func (*Commands) VerifyHumanPhone ¶
type CustomLoginTextReadModel ¶
type CustomLoginTextReadModel struct { eventstore.WriteModel Language language.Tag State domain.PolicyState SelectAccountTitle string SelectAccountDescription string SelectAccountTitleLinkingProcess string SelectAccountDescriptionLinkingProcess string SelectAccountOtherUser string SelectAccountSessionStateActive string SelectAccountSessionStateInactive string SelectAccountUserMustBeMemberOfOrg string LoginTitle string LoginDescription string LoginTitleLinkingProcess string LoginDescriptionLinkingProcess string LoginNameLabel string LoginUsernamePlaceholder string LoginLoginnamePlaceholder string LoginRegisterButtonText string LoginNextButtonText string LoginExternalUserDescription string LoginUserMustBeMemberOfOrg string PasswordTitle string PasswordDescription string PasswordLabel string PasswordResetLinkText string PasswordBackButtonText string PasswordNextButtonText string PasswordMinLength string PasswordHasUppercase string PasswordHasLowercase string PasswordHasNumber string PasswordHasSymbol string PasswordConfirmation string UsernameChangeTitle string UsernameChangeDescription string UsernameChangeUsernameLabel string UsernameChangeCancelButtonText string UsernameChangeNextButtonText string UsernameChangeDoneTitle string UsernameChangeDoneDescription string UsernameChangeDoneNextButtonText string InitPasswordTitle string InitPasswordDescription string InitPasswordCodeLabel string InitPasswordNewPasswordLabel string InitPasswordNewPasswordConfirmLabel string InitPasswordNextButtonText string InitPasswordResendButtonText string InitPasswordDoneTitle string InitPasswordDoneDescription string InitPasswordDoneNextButtonText string InitPasswordDoneCancelButtonText string EmailVerificationTitle string EmailVerificationDescription string EmailVerificationCodeLabel string EmailVerificationNextButtonText string EmailVerificationResendButtonText string EmailVerificationDoneTitle string EmailVerificationDoneDescription string EmailVerificationDoneNextButtonText string EmailVerificationDoneCancelButtonText string EmailVerificationDoneLoginButtonText string InitializeTitle string InitializeDescription string InitializeCodeLabel string InitializeNewPassword string InitializeNewPasswordConfirm string InitializeResendButtonText string InitializeNextButtonText string InitializeDoneTitle string InitializeDoneDescription string InitializeDoneAbortButtonText string InitializeDoneNextButtonText string InitMFAPromptTitle string InitMFAPromptDescription string InitMFAPromptOTPOption string InitMFAPromptU2FOption string InitMFAPromptSkipButtonText string InitMFAPromptNextButtonText string InitMFAOTPTitle string InitMFAOTPDescription string InitMFAOTPDescriptionOTP string InitMFAOTPSecretLabel string InitMFAOTPCodeLabel string InitMFAOTPNextButtonText string InitMFAOTPCancelButtonText string InitMFAU2FTitle string InitMFAU2FDescription string InitMFAU2FTokenNameLabel string InitMFAU2FRegisterTokenButtonText string InitMFAU2FNotSupported string InitMFAU2FErrorRetry string InitMFADoneTitle string InitMFADoneDescription string InitMFADoneAbortButtonText string InitMFADoneNextButtonText string MFAProvidersChooseOther string MFAProvidersOTP string MFAProvidersU2F string VerifyMFAOTPTitle string VerifyMFAOTPDescription string VerifyMFAOTPCodeLabel string VerifyMFAOTPNextButtonText string VerifyMFAU2FTitle string VerifyMFAU2FDescription string VerifyMFAU2FValidateTokenText string VerifyMFAU2FNotSupported string VerifyMFAU2FErrorRetry string PasswordlessTitle string PasswordlessDescription string PasswordlessLoginWithPwButtonText string PasswordlessValidateTokenButtonText string PasswordlessNotSupported string PasswordlessErrorRetry string PasswordlessPromptTitle string PasswordlessPromptDescription string PasswordlessPromptDescriptionInit string PasswordlessPromptPasswordlessButtonText string PasswordlessPromptNextButtonText string PasswordlessPromptSkipButtonText string PasswordlessRegistrationTitle string PasswordlessRegistrationDescription string PasswordlessRegistrationRegisterTokenButtonText string PasswordlessRegistrationTokenNameLabel string PasswordlessRegistrationNotSupported string PasswordlessRegistrationErrorRetry string PasswordlessRegistrationDoneTitle string PasswordlessRegistrationDoneDescription string PasswordlessRegistrationDoneDescriptionClose string PasswordlessRegistrationDoneNextButtonText string PasswordlessRegistrationDoneCancelButtonText string PasswordChangeTitle string PasswordChangeDescription string PasswordChangeOldPasswordLabel string PasswordChangeNewPasswordLabel string PasswordChangeNewPasswordConfirmLabel string PasswordChangeCancelButtonText string PasswordChangeNextButtonText string PasswordChangeDoneTitle string PasswordChangeDoneDescription string PasswordChangeDoneNextButtonText string PasswordResetDoneTitle string PasswordResetDoneDescription string PasswordResetDoneNextButtonText string RegistrationOptionTitle string RegistrationOptionDescription string RegistrationOptionUserNameButtonText string RegistrationOptionExternalLoginDescription string RegistrationUserTitle string RegistrationUserDescription string RegistrationUserDescriptionOrgRegister string RegistrationUserFirstnameLabel string RegistrationUserLastnameLabel string RegistrationUserEmailLabel string RegistrationUserUsernameLabel string RegistrationUserLanguageLabel string RegistrationUserGenderLabel string RegistrationUserPasswordLabel string RegistrationUserPasswordConfirmLabel string RegistrationUserTOSAndPrivacyLabel string RegistrationUserTOSConfirm string RegistrationUserTOSLink string RegistrationUserTOSLinkText string RegistrationUserTOSConfirmAnd string RegistrationUserPrivacyLink string RegistrationUserPrivacyLinkText string RegistrationUserNextButtonText string RegistrationUserBackButtonText string ExternalRegistrationUserOverviewTitle string ExternalRegistrationUserOverviewDescription string ExternalRegistrationUserOverviewEmailLabel string ExternalRegistrationUserOverviewUsernameLabel string ExternalRegistrationUserOverviewFirstnameLabel string ExternalRegistrationUserOverviewLastnameLabel string ExternalRegistrationUserOverviewNicknameLabel string ExternalRegistrationUserOverviewLanguageLabel string ExternalRegistrationUserOverviewPhoneLabel string ExternalRegistrationUserOverviewTOSAndPrivacyLabel string ExternalRegistrationUserOverviewTOSConfirm string ExternalRegistrationUserOverviewTOSLink string ExternalRegistrationUserOverviewTOSLinkText string ExternalRegistrationUserOverviewTOSConfirmAnd string ExternalRegistrationUserOverviewPrivacyLink string ExternalRegistrationUserOverviewPrivacyLinkText string ExternalRegistrationUserOverviewBackButtonText string ExternalRegistrationUserOverviewNextButtonText string RegisterOrgTitle string RegisterOrgDescription string RegisterOrgOrgNameLabel string RegisterOrgFirstnameLabel string RegisterOrgLastnameLabel string RegisterOrgUsernameLabel string RegisterOrgEmailLabel string RegisterOrgPasswordLabel string RegisterOrgPasswordConfirmLabel string RegisterOrgTOSAndPrivacyLabel string RegisterOrgTOSConfirm string RegisterOrgTOSLinkText string RegisterOrgTOSConfirmAnd string RegisterOrgPrivacyLinkText string RegisterOrgSaveButtonText string LinkingUserDoneTitle string LinkingUserDoneDescription string LinkingUserDoneCancelButtonText string LinkingUserDoneNextButtonText string ExternalUserNotFoundTitle string ExternalUserNotFoundDescription string ExternalUserNotFoundLinkButtonText string ExternalUserNotFoundAutoRegisterButtonText string ExternalUserNotFoundTOSAndPrivacyLabel string ExternalUserNotFoundTOSConfirm string ExternalUserNotFoundTOSLinkText string ExternalUserNotFoundTOSConfirmAnd string ExternalUserNotFoundPrivacyLinkText string SuccessLoginTitle string SuccessLoginAutoRedirectDescription string SuccessLoginRedirectedDescription string SuccessLoginNextButtonText string LogoutDoneTitle string LogoutDoneDescription string LogoutDoneLoginButtonText string }
func (*CustomLoginTextReadModel) Reduce ¶
func (wm *CustomLoginTextReadModel) Reduce() error
type CustomLoginTextsReadModel ¶
type CustomLoginTextsReadModel struct { eventstore.WriteModel CustomLoginTexts map[string]*CustomText }
func (*CustomLoginTextsReadModel) Reduce ¶
func (wm *CustomLoginTextsReadModel) Reduce() error
type CustomMessageTemplatesReadModel ¶
type CustomMessageTemplatesReadModel struct { eventstore.WriteModel CustomMessageTemplate map[string]*CustomText }
func (*CustomMessageTemplatesReadModel) Reduce ¶
func (wm *CustomMessageTemplatesReadModel) Reduce() error
type CustomMessageTextReadModel ¶
type CustomMessageTextReadModel struct { eventstore.WriteModel MessageTextType string Language language.Tag Title string PreHeader string Subject string Greeting string Text string ButtonText string State domain.PolicyState }
func (*CustomMessageTextReadModel) Reduce ¶
func (wm *CustomMessageTextReadModel) Reduce() error
type CustomText ¶
type CustomTextWriteModel ¶
type CustomTextWriteModel struct { eventstore.WriteModel Key string Language language.Tag Text string State domain.CustomTextState }
func (*CustomTextWriteModel) Reduce ¶
func (wm *CustomTextWriteModel) Reduce() error
type DebugNotificationWriteModel ¶
type DebugNotificationWriteModel struct { eventstore.WriteModel Compact bool State domain.NotificationProviderState }
func (*DebugNotificationWriteModel) Reduce ¶
func (wm *DebugNotificationWriteModel) Reduce() error
type ExistingLabelPoliciesReadModel ¶
type ExistingLabelPoliciesReadModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func NewExistingLabelPoliciesReadModel ¶
func NewExistingLabelPoliciesReadModel(ctx context.Context) *ExistingLabelPoliciesReadModel
func (*ExistingLabelPoliciesReadModel) AppendEvents ¶
func (rm *ExistingLabelPoliciesReadModel) AppendEvents(events ...eventstore.Event)
func (*ExistingLabelPoliciesReadModel) Query ¶
func (rm *ExistingLabelPoliciesReadModel) Query() *eventstore.SearchQueryBuilder
func (*ExistingLabelPoliciesReadModel) Reduce ¶
func (rm *ExistingLabelPoliciesReadModel) Reduce() error
type FlowWriteModel ¶
type FlowWriteModel struct { eventstore.WriteModel FlowType domain.FlowType State domain.FlowState Triggers map[domain.TriggerType][]string }
func NewFlowWriteModel ¶
func NewFlowWriteModel(flowType domain.FlowType, resourceOwner string) *FlowWriteModel
func (*FlowWriteModel) Reduce ¶
func (wm *FlowWriteModel) Reduce() error
type HumanAddressWriteModel ¶
type HumanAddressWriteModel struct { eventstore.WriteModel Country string Locality string PostalCode string Region string StreetAddress string State domain.AddressState }
func NewHumanAddressWriteModel ¶
func NewHumanAddressWriteModel(userID, resourceOwner string) *HumanAddressWriteModel
func (*HumanAddressWriteModel) NewChangedEvent ¶
func (wm *HumanAddressWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, country, locality, postalCode, region, streetAddress string, ) (*user.HumanAddressChangedEvent, bool, error)
func (*HumanAddressWriteModel) Query ¶
func (wm *HumanAddressWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanAddressWriteModel) Reduce ¶
func (wm *HumanAddressWriteModel) Reduce() error
type HumanEmailWriteModel ¶
type HumanEmailWriteModel struct { eventstore.WriteModel Email string IsEmailVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration UserState domain.UserState }
func NewHumanEmailWriteModel ¶
func NewHumanEmailWriteModel(userID, resourceOwner string) *HumanEmailWriteModel
func (*HumanEmailWriteModel) NewChangedEvent ¶
func (wm *HumanEmailWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, email string, ) (*user.HumanEmailChangedEvent, bool)
func (*HumanEmailWriteModel) Query ¶
func (wm *HumanEmailWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanEmailWriteModel) Reduce ¶
func (wm *HumanEmailWriteModel) Reduce() error
type HumanInitCodeWriteModel ¶
type HumanInitCodeWriteModel struct { eventstore.WriteModel Email string IsEmailVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration UserState domain.UserState }
func NewHumanInitCodeWriteModel ¶
func NewHumanInitCodeWriteModel(userID, resourceOwner string) *HumanInitCodeWriteModel
func (*HumanInitCodeWriteModel) NewChangedEvent ¶
func (wm *HumanInitCodeWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, email string, ) (*user.HumanEmailChangedEvent, bool)
func (*HumanInitCodeWriteModel) Query ¶
func (wm *HumanInitCodeWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanInitCodeWriteModel) Reduce ¶
func (wm *HumanInitCodeWriteModel) Reduce() error
type HumanOTPWriteModel ¶
type HumanOTPWriteModel struct { eventstore.WriteModel State domain.MFAState Secret *crypto.CryptoValue }
func NewHumanOTPWriteModel ¶
func NewHumanOTPWriteModel(userID, resourceOwner string) *HumanOTPWriteModel
func (*HumanOTPWriteModel) Query ¶
func (wm *HumanOTPWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanOTPWriteModel) Reduce ¶
func (wm *HumanOTPWriteModel) Reduce() error
type HumanPasswordWriteModel ¶
type HumanPasswordWriteModel struct { eventstore.WriteModel Secret *crypto.CryptoValue SecretChangeRequired bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration PasswordCheckFailedCount uint64 UserState domain.UserState }
func NewHumanPasswordWriteModel ¶
func NewHumanPasswordWriteModel(userID, resourceOwner string) *HumanPasswordWriteModel
func (*HumanPasswordWriteModel) Query ¶
func (wm *HumanPasswordWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordWriteModel) Reduce ¶
func (wm *HumanPasswordWriteModel) Reduce() error
type HumanPasswordlessInitCodeWriteModel ¶
type HumanPasswordlessInitCodeWriteModel struct { eventstore.WriteModel CodeID string Attempts uint8 CryptoCode *crypto.CryptoValue Expiration time.Duration State domain.PasswordlessInitCodeState }
func NewHumanPasswordlessInitCodeWriteModel ¶
func NewHumanPasswordlessInitCodeWriteModel(userID, codeID, resourceOwner string) *HumanPasswordlessInitCodeWriteModel
func (*HumanPasswordlessInitCodeWriteModel) AppendEvents ¶
func (wm *HumanPasswordlessInitCodeWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessInitCodeWriteModel) Query ¶
func (wm *HumanPasswordlessInitCodeWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessInitCodeWriteModel) Reduce ¶
func (wm *HumanPasswordlessInitCodeWriteModel) Reduce() error
type HumanPasswordlessLoginReadModel ¶
type HumanPasswordlessLoginReadModel struct { eventstore.WriteModel AuthReqID string Challenge string AllowedCredentialIDs [][]byte UserVerification domain.UserVerificationRequirement State domain.UserState }
func NewHumanPasswordlessLoginReadModel ¶
func NewHumanPasswordlessLoginReadModel(userID, authReqID, resourceOwner string) *HumanPasswordlessLoginReadModel
func (*HumanPasswordlessLoginReadModel) AppendEvents ¶
func (wm *HumanPasswordlessLoginReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessLoginReadModel) Query ¶
func (rm *HumanPasswordlessLoginReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessLoginReadModel) Reduce ¶
func (wm *HumanPasswordlessLoginReadModel) Reduce() error
type HumanPasswordlessTokensReadModel ¶
type HumanPasswordlessTokensReadModel struct { eventstore.WriteModel WebAuthNTokens []*HumanWebAuthNWriteModel UserState domain.UserState }
func NewHumanPasswordlessTokensReadModel ¶
func NewHumanPasswordlessTokensReadModel(userID, resourceOwner string) *HumanPasswordlessTokensReadModel
func (*HumanPasswordlessTokensReadModel) AppendEvents ¶
func (wm *HumanPasswordlessTokensReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanPasswordlessTokensReadModel) Query ¶
func (rm *HumanPasswordlessTokensReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPasswordlessTokensReadModel) Reduce ¶
func (wm *HumanPasswordlessTokensReadModel) Reduce() error
func (*HumanPasswordlessTokensReadModel) WebAuthNTokenByID ¶
func (wm *HumanPasswordlessTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
type HumanPhoneWriteModel ¶
type HumanPhoneWriteModel struct { eventstore.WriteModel Phone string IsPhoneVerified bool Code *crypto.CryptoValue CodeCreationDate time.Time CodeExpiry time.Duration State domain.PhoneState UserState domain.UserState }
func NewHumanPhoneWriteModel ¶
func NewHumanPhoneWriteModel(userID, resourceOwner string) *HumanPhoneWriteModel
func (*HumanPhoneWriteModel) NewChangedEvent ¶
func (wm *HumanPhoneWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, phone string, ) (*user.HumanPhoneChangedEvent, bool)
func (*HumanPhoneWriteModel) Query ¶
func (wm *HumanPhoneWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanPhoneWriteModel) Reduce ¶
func (wm *HumanPhoneWriteModel) Reduce() error
type HumanProfileWriteModel ¶
type HumanProfileWriteModel struct { eventstore.WriteModel FirstName string LastName string NickName string DisplayName string PreferredLanguage language.Tag Gender domain.Gender UserState domain.UserState }
func NewHumanProfileWriteModel ¶
func NewHumanProfileWriteModel(userID, resourceOwner string) *HumanProfileWriteModel
func (*HumanProfileWriteModel) NewChangedEvent ¶
func (wm *HumanProfileWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, firstName, lastName, nickName, displayName string, preferredLanguage language.Tag, gender domain.Gender, ) (*user.HumanProfileChangedEvent, bool, error)
func (*HumanProfileWriteModel) Query ¶
func (wm *HumanProfileWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanProfileWriteModel) Reduce ¶
func (wm *HumanProfileWriteModel) Reduce() error
type HumanRefreshTokenWriteModel ¶
type HumanRefreshTokenWriteModel struct { eventstore.WriteModel TokenID string RefreshToken string UserState domain.UserState IdleExpiration time.Time Expiration time.Time }
func NewHumanRefreshTokenWriteModel ¶
func NewHumanRefreshTokenWriteModel(userID, resourceOwner, tokenID string) *HumanRefreshTokenWriteModel
func (*HumanRefreshTokenWriteModel) AppendEvents ¶
func (wm *HumanRefreshTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanRefreshTokenWriteModel) Query ¶
func (wm *HumanRefreshTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanRefreshTokenWriteModel) Reduce ¶
func (wm *HumanRefreshTokenWriteModel) Reduce() error
type HumanU2FLoginReadModel ¶
type HumanU2FLoginReadModel struct { eventstore.WriteModel AuthReqID string Challenge string AllowedCredentialIDs [][]byte UserVerification domain.UserVerificationRequirement State domain.UserState }
func NewHumanU2FLoginReadModel ¶
func NewHumanU2FLoginReadModel(userID, authReqID, resourceOwner string) *HumanU2FLoginReadModel
func (*HumanU2FLoginReadModel) AppendEvents ¶
func (wm *HumanU2FLoginReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanU2FLoginReadModel) Query ¶
func (rm *HumanU2FLoginReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanU2FLoginReadModel) Reduce ¶
func (wm *HumanU2FLoginReadModel) Reduce() error
type HumanU2FTokensReadModel ¶
type HumanU2FTokensReadModel struct { eventstore.WriteModel WebAuthNTokens []*HumanWebAuthNWriteModel UserState domain.UserState }
func NewHumanU2FTokensReadModel ¶
func NewHumanU2FTokensReadModel(userID, resourceOwner string) *HumanU2FTokensReadModel
func (*HumanU2FTokensReadModel) AppendEvents ¶
func (wm *HumanU2FTokensReadModel) AppendEvents(events ...eventstore.Event)
func (*HumanU2FTokensReadModel) Query ¶
func (rm *HumanU2FTokensReadModel) Query() *eventstore.SearchQueryBuilder
func (*HumanU2FTokensReadModel) Reduce ¶
func (wm *HumanU2FTokensReadModel) Reduce() error
func (*HumanU2FTokensReadModel) WebAuthNTokenByID ¶
func (wm *HumanU2FTokensReadModel) WebAuthNTokenByID(id string) (idx int, token *HumanWebAuthNWriteModel)
type HumanWebAuthNWriteModel ¶
type HumanWebAuthNWriteModel struct { eventstore.WriteModel WebauthNTokenID string Challenge string KeyID []byte PublicKey []byte AttestationType string AAGUID []byte SignCount uint32 WebAuthNTokenName string State domain.MFAState }
func NewHumanWebAuthNWriteModel ¶
func NewHumanWebAuthNWriteModel(userID, webAuthNTokenID, resourceOwner string) *HumanWebAuthNWriteModel
func (*HumanWebAuthNWriteModel) AppendEvents ¶
func (wm *HumanWebAuthNWriteModel) AppendEvents(events ...eventstore.Event)
func (*HumanWebAuthNWriteModel) Query ¶
func (wm *HumanWebAuthNWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanWebAuthNWriteModel) Reduce ¶
func (wm *HumanWebAuthNWriteModel) Reduce() error
type HumanWriteModel ¶
type HumanWriteModel struct { eventstore.WriteModel UserName string FirstName string LastName string NickName string DisplayName string PreferredLanguage language.Tag Gender domain.Gender Avatar string Email string IsEmailVerified bool Phone string IsPhoneVerified bool Country string Locality string PostalCode string Region string StreetAddress string Secret *crypto.CryptoValue SecretChangeRequired bool UserState domain.UserState }
func NewHumanWriteModel ¶
func NewHumanWriteModel(userID, resourceOwner string) *HumanWriteModel
func (*HumanWriteModel) Query ¶
func (wm *HumanWriteModel) Query() *eventstore.SearchQueryBuilder
func (*HumanWriteModel) Reduce ¶
func (wm *HumanWriteModel) Reduce() error
type IAMSMSConfigWriteModel ¶
type IAMSMSConfigWriteModel struct { eventstore.WriteModel ID string Twilio *TwilioConfig State domain.SMSConfigState }
func NewIAMSMSConfigWriteModel ¶
func NewIAMSMSConfigWriteModel(instanceID, id string) *IAMSMSConfigWriteModel
func (*IAMSMSConfigWriteModel) NewChangedEvent ¶
func (wm *IAMSMSConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, id, sid, senderNumber string) (*instance.SMSConfigTwilioChangedEvent, bool, error)
func (*IAMSMSConfigWriteModel) Query ¶
func (wm *IAMSMSConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IAMSMSConfigWriteModel) Reduce ¶
func (wm *IAMSMSConfigWriteModel) Reduce() error
type IDPConfigWriteModel ¶
type IDPConfigWriteModel struct { eventstore.WriteModel State domain.IDPConfigState ConfigID string Name string AutoRegister bool StylingType domain.IDPConfigStylingType }
func (*IDPConfigWriteModel) AppendEvents ¶
func (rm *IDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPConfigWriteModel) Reduce ¶
func (rm *IDPConfigWriteModel) Reduce() error
type IDPJWTConfigWriteModel ¶
type IDPJWTConfigWriteModel struct {
JWTConfigWriteModel
}
func NewOrgIDPJWTConfigWriteModel ¶
func NewOrgIDPJWTConfigWriteModel(idpConfigID, orgID string) *IDPJWTConfigWriteModel
func (*IDPJWTConfigWriteModel) AppendEvents ¶
func (wm *IDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPJWTConfigWriteModel) NewChangedEvent ¶
func (wm *IDPJWTConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, jwtEndpoint, issuer, keysEndpoint, headerName string, ) (*org.IDPJWTConfigChangedEvent, bool, error)
func (*IDPJWTConfigWriteModel) Query ¶
func (wm *IDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IDPJWTConfigWriteModel) Reduce ¶
func (wm *IDPJWTConfigWriteModel) Reduce() error
type IDPOIDCConfigWriteModel ¶
type IDPOIDCConfigWriteModel struct {
OIDCConfigWriteModel
}
func NewOrgIDPOIDCConfigWriteModel ¶
func NewOrgIDPOIDCConfigWriteModel(idpConfigID, orgID string) *IDPOIDCConfigWriteModel
func (*IDPOIDCConfigWriteModel) AppendEvents ¶
func (wm *IDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*IDPOIDCConfigWriteModel) NewChangedEvent ¶
func (wm *IDPOIDCConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, clientID, issuer, authorizationEndpoint, tokenEndpoint, clientSecretString string, secretCrypto crypto.Crypto, idpDisplayNameMapping, userNameMapping domain.OIDCMappingField, scopes ...string, ) (*org.IDPOIDCConfigChangedEvent, bool, error)
func (*IDPOIDCConfigWriteModel) Query ¶
func (wm *IDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*IDPOIDCConfigWriteModel) Reduce ¶
func (wm *IDPOIDCConfigWriteModel) Reduce() error
type IdentityProviderWriteModel ¶
type IdentityProviderWriteModel struct { eventstore.WriteModel IDPConfigID string IDPProviderType domain.IdentityProviderType State domain.IdentityProviderState }
func (*IdentityProviderWriteModel) Reduce ¶
func (wm *IdentityProviderWriteModel) Reduce() error
type InstanceCustomLoginTextReadModel ¶
type InstanceCustomLoginTextReadModel struct {
CustomLoginTextReadModel
}
func NewInstanceCustomLoginTextReadModel ¶
func NewInstanceCustomLoginTextReadModel(ctx context.Context, lang language.Tag) *InstanceCustomLoginTextReadModel
func (*InstanceCustomLoginTextReadModel) AppendEvents ¶
func (wm *InstanceCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)
func (*InstanceCustomLoginTextReadModel) Query ¶
func (wm *InstanceCustomLoginTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceCustomLoginTextReadModel) Reduce ¶
func (wm *InstanceCustomLoginTextReadModel) Reduce() error
type InstanceCustomMessageTextWriteModel ¶
type InstanceCustomMessageTextWriteModel struct {
CustomMessageTextReadModel
}
func (*InstanceCustomMessageTextWriteModel) AppendEvents ¶
func (wm *InstanceCustomMessageTextWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceCustomMessageTextWriteModel) Query ¶
func (wm *InstanceCustomMessageTextWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceCustomMessageTextWriteModel) Reduce ¶
func (wm *InstanceCustomMessageTextWriteModel) Reduce() error
type InstanceCustomTextWriteModel ¶
type InstanceCustomTextWriteModel struct {
CustomTextWriteModel
}
func (*InstanceCustomTextWriteModel) AppendEvents ¶
func (wm *InstanceCustomTextWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceCustomTextWriteModel) Query ¶
func (wm *InstanceCustomTextWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceCustomTextWriteModel) Reduce ¶
func (wm *InstanceCustomTextWriteModel) Reduce() error
type InstanceDebugNotificationFileWriteModel ¶
type InstanceDebugNotificationFileWriteModel struct {
DebugNotificationWriteModel
}
func NewInstanceDebugNotificationFileWriteModel ¶
func NewInstanceDebugNotificationFileWriteModel(ctx context.Context) *InstanceDebugNotificationFileWriteModel
func (*InstanceDebugNotificationFileWriteModel) AppendEvents ¶
func (wm *InstanceDebugNotificationFileWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceDebugNotificationFileWriteModel) IsValid ¶
func (wm *InstanceDebugNotificationFileWriteModel) IsValid() bool
func (*InstanceDebugNotificationFileWriteModel) NewChangedEvent ¶
func (wm *InstanceDebugNotificationFileWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, compact bool) (*instance.DebugNotificationProviderFileChangedEvent, bool)
func (*InstanceDebugNotificationFileWriteModel) Query ¶
func (wm *InstanceDebugNotificationFileWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceDebugNotificationFileWriteModel) Reduce ¶
func (wm *InstanceDebugNotificationFileWriteModel) Reduce() error
type InstanceDebugNotificationLogWriteModel ¶
type InstanceDebugNotificationLogWriteModel struct {
DebugNotificationWriteModel
}
func NewInstanceDebugNotificationLogWriteModel ¶
func NewInstanceDebugNotificationLogWriteModel(ctx context.Context) *InstanceDebugNotificationLogWriteModel
func (*InstanceDebugNotificationLogWriteModel) AppendEvents ¶
func (wm *InstanceDebugNotificationLogWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceDebugNotificationLogWriteModel) IsValid ¶
func (wm *InstanceDebugNotificationLogWriteModel) IsValid() bool
func (*InstanceDebugNotificationLogWriteModel) NewChangedEvent ¶
func (wm *InstanceDebugNotificationLogWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, compact bool) (*instance.DebugNotificationProviderLogChangedEvent, bool)
func (*InstanceDebugNotificationLogWriteModel) Query ¶
func (wm *InstanceDebugNotificationLogWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceDebugNotificationLogWriteModel) Reduce ¶
func (wm *InstanceDebugNotificationLogWriteModel) Reduce() error
type InstanceDomainPolicyWriteModel ¶
type InstanceDomainPolicyWriteModel struct {
PolicyDomainWriteModel
}
func NewInstanceDomainPolicyWriteModel ¶
func NewInstanceDomainPolicyWriteModel(ctx context.Context) *InstanceDomainPolicyWriteModel
func (*InstanceDomainPolicyWriteModel) AppendEvents ¶
func (wm *InstanceDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceDomainPolicyWriteModel) NewChangedEvent ¶
func (wm *InstanceDomainPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, userLoginMustBeDomain, validateOrgDomain bool) (*instance.DomainPolicyChangedEvent, bool)
func (*InstanceDomainPolicyWriteModel) Query ¶
func (wm *InstanceDomainPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceDomainPolicyWriteModel) Reduce ¶
func (wm *InstanceDomainPolicyWriteModel) Reduce() error
type InstanceDomainWriteModel ¶
type InstanceDomainWriteModel struct { eventstore.WriteModel Domain string Generated bool State domain.InstanceDomainState }
func NewInstanceDomainWriteModel ¶
func NewInstanceDomainWriteModel(ctx context.Context, instanceDomain string) *InstanceDomainWriteModel
func (*InstanceDomainWriteModel) AppendEvents ¶
func (wm *InstanceDomainWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceDomainWriteModel) Query ¶
func (wm *InstanceDomainWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceDomainWriteModel) Reduce ¶
func (wm *InstanceDomainWriteModel) Reduce() error
type InstanceIDPConfigWriteModel ¶
type InstanceIDPConfigWriteModel struct {
IDPConfigWriteModel
}
func NewInstanceIDPConfigWriteModel ¶
func NewInstanceIDPConfigWriteModel(ctx context.Context, configID string) *InstanceIDPConfigWriteModel
func (*InstanceIDPConfigWriteModel) AppendAndReduce ¶
func (wm *InstanceIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
func (*InstanceIDPConfigWriteModel) AppendEvents ¶
func (wm *InstanceIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceIDPConfigWriteModel) NewChangedEvent ¶
func (wm *InstanceIDPConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, stylingType domain.IDPConfigStylingType, autoRegister bool, ) (*instance.IDPConfigChangedEvent, bool)
func (*InstanceIDPConfigWriteModel) Query ¶
func (wm *InstanceIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceIDPConfigWriteModel) Reduce ¶
func (wm *InstanceIDPConfigWriteModel) Reduce() error
type InstanceIDPJWTConfigWriteModel ¶
type InstanceIDPJWTConfigWriteModel struct {
JWTConfigWriteModel
}
func NewInstanceIDPJWTConfigWriteModel ¶
func NewInstanceIDPJWTConfigWriteModel(ctx context.Context, idpConfigID string) *InstanceIDPJWTConfigWriteModel
func (*InstanceIDPJWTConfigWriteModel) AppendEvents ¶
func (wm *InstanceIDPJWTConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceIDPJWTConfigWriteModel) NewChangedEvent ¶
func (wm *InstanceIDPJWTConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, jwtEndpoint, issuer, keysEndpoint, headerName string, ) (*instance.IDPJWTConfigChangedEvent, bool, error)
func (*InstanceIDPJWTConfigWriteModel) Query ¶
func (wm *InstanceIDPJWTConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceIDPJWTConfigWriteModel) Reduce ¶
func (wm *InstanceIDPJWTConfigWriteModel) Reduce() error
type InstanceIDPOIDCConfigWriteModel ¶
type InstanceIDPOIDCConfigWriteModel struct {
OIDCConfigWriteModel
}
func NewInstanceIDPOIDCConfigWriteModel ¶
func NewInstanceIDPOIDCConfigWriteModel(ctx context.Context, idpConfigID string) *InstanceIDPOIDCConfigWriteModel
func (*InstanceIDPOIDCConfigWriteModel) AppendEvents ¶
func (wm *InstanceIDPOIDCConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceIDPOIDCConfigWriteModel) NewChangedEvent ¶
func (wm *InstanceIDPOIDCConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, idpConfigID, clientID, issuer, authorizationEndpoint, tokenEndpoint, clientSecretString string, secretCrypto crypto.Crypto, idpDisplayNameMapping, userNameMapping domain.OIDCMappingField, scopes ...string, ) (*instance.IDPOIDCConfigChangedEvent, bool, error)
func (*InstanceIDPOIDCConfigWriteModel) Query ¶
func (wm *InstanceIDPOIDCConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceIDPOIDCConfigWriteModel) Reduce ¶
func (wm *InstanceIDPOIDCConfigWriteModel) Reduce() error
type InstanceIdentityProviderWriteModel ¶
type InstanceIdentityProviderWriteModel struct {
IdentityProviderWriteModel
}
func NewInstanceIdentityProviderWriteModel ¶
func NewInstanceIdentityProviderWriteModel(ctx context.Context, idpConfigID string) *InstanceIdentityProviderWriteModel
func (*InstanceIdentityProviderWriteModel) AppendEvents ¶
func (wm *InstanceIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceIdentityProviderWriteModel) Query ¶
func (wm *InstanceIdentityProviderWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceIdentityProviderWriteModel) Reduce ¶
func (wm *InstanceIdentityProviderWriteModel) Reduce() error
type InstanceLabelPolicyWriteModel ¶
type InstanceLabelPolicyWriteModel struct {
LabelPolicyWriteModel
}
func NewInstanceLabelPolicyWriteModel ¶
func NewInstanceLabelPolicyWriteModel(ctx context.Context) *InstanceLabelPolicyWriteModel
func (*InstanceLabelPolicyWriteModel) AppendEvents ¶
func (wm *InstanceLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceLabelPolicyWriteModel) NewChangedEvent ¶
func (wm *InstanceLabelPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, primaryColor, backgroundColor, warnColor, fontColor, primaryColorDark, backgroundColorDark, warnColorDark, fontColorDark string, hideLoginNameSuffix, errorMsgPopup, disableWatermark bool, ) (*instance.LabelPolicyChangedEvent, bool)
func (*InstanceLabelPolicyWriteModel) Query ¶
func (wm *InstanceLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceLabelPolicyWriteModel) Reduce ¶
func (wm *InstanceLabelPolicyWriteModel) Reduce() error
type InstanceLockoutPolicyWriteModel ¶
type InstanceLockoutPolicyWriteModel struct {
LockoutPolicyWriteModel
}
func NewInstanceLockoutPolicyWriteModel ¶
func NewInstanceLockoutPolicyWriteModel(ctx context.Context) *InstanceLockoutPolicyWriteModel
func (*InstanceLockoutPolicyWriteModel) AppendEvents ¶
func (wm *InstanceLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceLockoutPolicyWriteModel) NewChangedEvent ¶
func (wm *InstanceLockoutPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, showLockoutFailure bool) (*instance.LockoutPolicyChangedEvent, bool)
func (*InstanceLockoutPolicyWriteModel) Query ¶
func (wm *InstanceLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceLockoutPolicyWriteModel) Reduce ¶
func (wm *InstanceLockoutPolicyWriteModel) Reduce() error
type InstanceLoginPolicyWriteModel ¶
type InstanceLoginPolicyWriteModel struct {
LoginPolicyWriteModel
}
func NewInstanceLoginPolicyWriteModel ¶
func NewInstanceLoginPolicyWriteModel(ctx context.Context) *InstanceLoginPolicyWriteModel
func (*InstanceLoginPolicyWriteModel) AppendEvents ¶
func (wm *InstanceLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceLoginPolicyWriteModel) IsValid ¶
func (wm *InstanceLoginPolicyWriteModel) IsValid() bool
func (*InstanceLoginPolicyWriteModel) NewChangedEvent ¶
func (wm *InstanceLoginPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, allowUsernamePassword, allowRegister, allowExternalIDP, forceMFA, hidePasswordReset bool, passwordlessType domain.PasswordlessType, passwordCheckLifetime, externalLoginCheckLifetime, mfaInitSkipLifetime, secondFactorCheckLifetime, multiFactorCheckLifetime time.Duration, ) (*instance.LoginPolicyChangedEvent, bool)
func (*InstanceLoginPolicyWriteModel) Query ¶
func (wm *InstanceLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceLoginPolicyWriteModel) Reduce ¶
func (wm *InstanceLoginPolicyWriteModel) Reduce() error
type InstanceMailTemplateWriteModel ¶
type InstanceMailTemplateWriteModel struct {
MailTemplateWriteModel
}
func NewInstanceMailTemplateWriteModel ¶
func NewInstanceMailTemplateWriteModel(ctx context.Context) *InstanceMailTemplateWriteModel
func (*InstanceMailTemplateWriteModel) AppendEvents ¶
func (wm *InstanceMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceMailTemplateWriteModel) NewChangedEvent ¶
func (wm *InstanceMailTemplateWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, template []byte, ) (*instance.MailTemplateChangedEvent, bool)
func (*InstanceMailTemplateWriteModel) Query ¶
func (wm *InstanceMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceMailTemplateWriteModel) Reduce ¶
func (wm *InstanceMailTemplateWriteModel) Reduce() error
type InstanceMemberWriteModel ¶
type InstanceMemberWriteModel struct {
MemberWriteModel
}
func NewInstanceMemberWriteModel ¶
func NewInstanceMemberWriteModel(ctx context.Context, userID string) *InstanceMemberWriteModel
func (*InstanceMemberWriteModel) AppendEvents ¶
func (wm *InstanceMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceMemberWriteModel) Query ¶
func (wm *InstanceMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceMemberWriteModel) Reduce ¶
func (wm *InstanceMemberWriteModel) Reduce() error
type InstanceMultiFactorWriteModel ¶
type InstanceMultiFactorWriteModel struct {
MultiFactorWriteModel
}
func NewInstanceMultiFactorWriteModel ¶
func NewInstanceMultiFactorWriteModel(ctx context.Context, factorType domain.MultiFactorType) *InstanceMultiFactorWriteModel
func (*InstanceMultiFactorWriteModel) AppendEvents ¶
func (wm *InstanceMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceMultiFactorWriteModel) Query ¶
func (wm *InstanceMultiFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceMultiFactorWriteModel) Reduce ¶
func (wm *InstanceMultiFactorWriteModel) Reduce() error
type InstanceOIDCSettingsWriteModel ¶
type InstanceOIDCSettingsWriteModel struct { eventstore.WriteModel AccessTokenLifetime time.Duration IdTokenLifetime time.Duration RefreshTokenIdleExpiration time.Duration RefreshTokenExpiration time.Duration State domain.OIDCSettingsState }
func NewInstanceOIDCSettingsWriteModel ¶
func NewInstanceOIDCSettingsWriteModel(ctx context.Context) *InstanceOIDCSettingsWriteModel
func (*InstanceOIDCSettingsWriteModel) NewChangedEvent ¶
func (wm *InstanceOIDCSettingsWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, accessTokenLifetime, idTokenLifetime, refreshTokenIdleExpiration, refreshTokenExpiration time.Duration, ) (*instance.OIDCSettingsChangedEvent, bool, error)
func (*InstanceOIDCSettingsWriteModel) Query ¶
func (wm *InstanceOIDCSettingsWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceOIDCSettingsWriteModel) Reduce ¶
func (wm *InstanceOIDCSettingsWriteModel) Reduce() error
type InstancePasswordAgePolicyWriteModel ¶
type InstancePasswordAgePolicyWriteModel struct {
PasswordAgePolicyWriteModel
}
func NewInstancePasswordAgePolicyWriteModel ¶
func NewInstancePasswordAgePolicyWriteModel(ctx context.Context) *InstancePasswordAgePolicyWriteModel
func (*InstancePasswordAgePolicyWriteModel) AppendEvents ¶
func (wm *InstancePasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstancePasswordAgePolicyWriteModel) NewChangedEvent ¶
func (wm *InstancePasswordAgePolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, expireWarnDays, maxAgeDays uint64) (*instance.PasswordAgePolicyChangedEvent, bool)
func (*InstancePasswordAgePolicyWriteModel) Query ¶
func (wm *InstancePasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstancePasswordAgePolicyWriteModel) Reduce ¶
func (wm *InstancePasswordAgePolicyWriteModel) Reduce() error
type InstancePasswordComplexityPolicyWriteModel ¶
type InstancePasswordComplexityPolicyWriteModel struct {
PasswordComplexityPolicyWriteModel
}
func NewInstancePasswordComplexityPolicyWriteModel ¶
func NewInstancePasswordComplexityPolicyWriteModel(ctx context.Context) *InstancePasswordComplexityPolicyWriteModel
func (*InstancePasswordComplexityPolicyWriteModel) AppendEvents ¶
func (wm *InstancePasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstancePasswordComplexityPolicyWriteModel) NewChangedEvent ¶
func (wm *InstancePasswordComplexityPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, hasLowercase, hasUppercase, hasNumber, hasSymbol bool, ) (*instance.PasswordComplexityPolicyChangedEvent, bool)
func (*InstancePasswordComplexityPolicyWriteModel) Query ¶
func (wm *InstancePasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstancePasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *InstancePasswordComplexityPolicyWriteModel) Reduce() error
type InstancePrivacyPolicyWriteModel ¶
type InstancePrivacyPolicyWriteModel struct {
PrivacyPolicyWriteModel
}
func NewInstancePrivacyPolicyWriteModel ¶
func NewInstancePrivacyPolicyWriteModel(ctx context.Context) *InstancePrivacyPolicyWriteModel
func (*InstancePrivacyPolicyWriteModel) AppendEvents ¶
func (wm *InstancePrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstancePrivacyPolicyWriteModel) NewChangedEvent ¶
func (wm *InstancePrivacyPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, tosLink, privacyLink, helpLink string, ) (*instance.PrivacyPolicyChangedEvent, bool)
func (*InstancePrivacyPolicyWriteModel) Query ¶
func (wm *InstancePrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstancePrivacyPolicyWriteModel) Reduce ¶
func (wm *InstancePrivacyPolicyWriteModel) Reduce() error
type InstanceSMTPConfigWriteModel ¶
type InstanceSMTPConfigWriteModel struct { eventstore.WriteModel SenderAddress string SenderName string TLS bool Host string User string Password *crypto.CryptoValue State domain.SMTPConfigState }
func NewInstanceSMTPConfigWriteModel ¶
func NewInstanceSMTPConfigWriteModel(instanceID string) *InstanceSMTPConfigWriteModel
func (*InstanceSMTPConfigWriteModel) NewChangedEvent ¶
func (wm *InstanceSMTPConfigWriteModel) NewChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, tls bool, fromAddress, fromName, smtpHost, smtpUser string) (*instance.SMTPConfigChangedEvent, bool, error)
func (*InstanceSMTPConfigWriteModel) Query ¶
func (wm *InstanceSMTPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceSMTPConfigWriteModel) Reduce ¶
func (wm *InstanceSMTPConfigWriteModel) Reduce() error
type InstanceSecondFactorWriteModel ¶
type InstanceSecondFactorWriteModel struct {
SecondFactorWriteModel
}
func NewInstanceSecondFactorWriteModel ¶
func NewInstanceSecondFactorWriteModel(ctx context.Context, factorType domain.SecondFactorType) *InstanceSecondFactorWriteModel
func (*InstanceSecondFactorWriteModel) AppendEvents ¶
func (wm *InstanceSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*InstanceSecondFactorWriteModel) Query ¶
func (wm *InstanceSecondFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceSecondFactorWriteModel) Reduce ¶
func (wm *InstanceSecondFactorWriteModel) Reduce() error
type InstanceSecretGeneratorConfigWriteModel ¶
type InstanceSecretGeneratorConfigWriteModel struct { eventstore.WriteModel GeneratorType domain.SecretGeneratorType Length uint Expiry time.Duration IncludeLowerLetters bool IncludeUpperLetters bool IncludeDigits bool IncludeSymbols bool State domain.SecretGeneratorState }
func NewInstanceSecretGeneratorConfigWriteModel ¶
func NewInstanceSecretGeneratorConfigWriteModel(ctx context.Context, GeneratorType domain.SecretGeneratorType) *InstanceSecretGeneratorConfigWriteModel
func (*InstanceSecretGeneratorConfigWriteModel) NewChangedEvent ¶
func (wm *InstanceSecretGeneratorConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, generatorType domain.SecretGeneratorType, length uint, expiry time.Duration, includeLowerLetters, includeUpperLetters, includeDigits, includeSymbols bool, ) (*instance.SecretGeneratorChangedEvent, bool, error)
func (*InstanceSecretGeneratorConfigWriteModel) Query ¶
func (wm *InstanceSecretGeneratorConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceSecretGeneratorConfigWriteModel) Reduce ¶
func (wm *InstanceSecretGeneratorConfigWriteModel) Reduce() error
type InstanceSetup ¶
type InstanceSetup struct { InstanceName string CustomDomain string Org OrgSetup SecretGenerators struct { PasswordSaltCost uint ClientSecret *crypto.GeneratorConfig InitializeUserCode *crypto.GeneratorConfig EmailVerificationCode *crypto.GeneratorConfig PhoneVerificationCode *crypto.GeneratorConfig PasswordVerificationCode *crypto.GeneratorConfig PasswordlessInitCode *crypto.GeneratorConfig DomainVerification *crypto.GeneratorConfig } PasswordComplexityPolicy struct { MinLength uint64 HasLowercase bool HasUppercase bool HasNumber bool HasSymbol bool } PasswordAgePolicy struct { ExpireWarnDays uint64 MaxAgeDays uint64 } DomainPolicy struct { UserLoginMustBeDomain bool ValidateOrgDomains bool } LoginPolicy struct { AllowUsernamePassword bool AllowRegister bool AllowExternalIDP bool ForceMFA bool HidePasswordReset bool PasswordlessType domain.PasswordlessType PasswordCheckLifetime time.Duration ExternalLoginCheckLifetime time.Duration MfaInitSkipLifetime time.Duration SecondFactorCheckLifetime time.Duration MultiFactorCheckLifetime time.Duration } PrivacyPolicy struct { TOSLink string PrivacyLink string HelpLink string } LabelPolicy struct { PrimaryColor string BackgroundColor string WarnColor string FontColor string PrimaryColorDark string BackgroundColorDark string WarnColorDark string FontColorDark string HideLoginNameSuffix bool ErrorMsgPopup bool DisableWatermark bool } LockoutPolicy struct { MaxAttempts uint64 ShouldShowLockoutFailure bool } EmailTemplate []byte MessageTexts []*domain.CustomMessageText // contains filtered or unexported fields }
type InstanceWriteModel ¶
type InstanceWriteModel struct { eventstore.WriteModel Name string State domain.InstanceState GeneratedDomain string SetUpStarted domain.Step SetUpDone domain.Step GlobalOrgID string ProjectID string DefaultLanguage language.Tag }
func NewInstanceWriteModel ¶
func NewInstanceWriteModel(instanceID string) *InstanceWriteModel
func (*InstanceWriteModel) Query ¶
func (wm *InstanceWriteModel) Query() *eventstore.SearchQueryBuilder
func (*InstanceWriteModel) Reduce ¶
func (wm *InstanceWriteModel) Reduce() error
type JWTConfigWriteModel ¶
type JWTConfigWriteModel struct { eventstore.WriteModel IDPConfigID string JWTEndpoint string Issuer string KeysEndpoint string HeaderName string State domain.IDPConfigState }
func (*JWTConfigWriteModel) Reduce ¶
func (wm *JWTConfigWriteModel) Reduce() error
type KeyPairWriteModel ¶
type KeyPairWriteModel struct { eventstore.WriteModel Usage domain.KeyUsage Algorithm string PrivateKey *domain.Key PublicKey *domain.Key }
func NewKeyPairWriteModel ¶
func NewKeyPairWriteModel(aggregateID, resourceOwner string) *KeyPairWriteModel
func (*KeyPairWriteModel) AppendEvents ¶
func (wm *KeyPairWriteModel) AppendEvents(events ...eventstore.Event)
func (*KeyPairWriteModel) Query ¶
func (wm *KeyPairWriteModel) Query() *eventstore.SearchQueryBuilder
func (*KeyPairWriteModel) Reduce ¶
func (wm *KeyPairWriteModel) Reduce() error
type LabelPolicyWriteModel ¶
type LabelPolicyWriteModel struct { eventstore.WriteModel PrimaryColor string BackgroundColor string WarnColor string FontColor string LogoKey string IconKey string PrimaryColorDark string BackgroundColorDark string WarnColorDark string FontColorDark string LogoDarkKey string IconDarkKey string FontKey string HideLoginNameSuffix bool ErrorMsgPopup bool DisableWatermark bool State domain.PolicyState }
func (*LabelPolicyWriteModel) Reduce ¶
func (wm *LabelPolicyWriteModel) Reduce() error
type LockoutPolicyWriteModel ¶
type LockoutPolicyWriteModel struct { eventstore.WriteModel MaxPasswordAttempts uint64 ShowLockOutFailures bool State domain.PolicyState }
func (*LockoutPolicyWriteModel) Reduce ¶
func (wm *LockoutPolicyWriteModel) Reduce() error
type LoginPolicyWriteModel ¶
type LoginPolicyWriteModel struct { eventstore.WriteModel AllowUserNamePassword bool AllowRegister bool AllowExternalIDP bool ForceMFA bool HidePasswordReset bool PasswordlessType domain.PasswordlessType PasswordCheckLifetime time.Duration ExternalLoginCheckLifetime time.Duration MFAInitSkipLifetime time.Duration SecondFactorCheckLifetime time.Duration MultiFactorCheckLifetime time.Duration State domain.PolicyState }
func (*LoginPolicyWriteModel) Reduce ¶
func (wm *LoginPolicyWriteModel) Reduce() error
type MachineKeyWriteModel ¶
type MachineKeyWriteModel struct { eventstore.WriteModel KeyID string KeyType domain.AuthNKeyType ExpirationDate time.Time State domain.MachineKeyState }
func NewMachineKeyWriteModel ¶
func NewMachineKeyWriteModel(userID, keyID, resourceOwner string) *MachineKeyWriteModel
func (*MachineKeyWriteModel) AppendEvents ¶
func (wm *MachineKeyWriteModel) AppendEvents(events ...eventstore.Event)
func (*MachineKeyWriteModel) Exists ¶
func (wm *MachineKeyWriteModel) Exists() bool
func (*MachineKeyWriteModel) Query ¶
func (wm *MachineKeyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*MachineKeyWriteModel) Reduce ¶
func (wm *MachineKeyWriteModel) Reduce() error
type MachineWriteModel ¶
type MachineWriteModel struct { eventstore.WriteModel UserName string Name string Description string UserState domain.UserState }
func NewMachineWriteModel ¶
func NewMachineWriteModel(userID, resourceOwner string) *MachineWriteModel
func (*MachineWriteModel) NewChangedEvent ¶
func (wm *MachineWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, name, description string, ) (*user.MachineChangedEvent, bool, error)
func (*MachineWriteModel) Query ¶
func (wm *MachineWriteModel) Query() *eventstore.SearchQueryBuilder
func (*MachineWriteModel) Reduce ¶
func (wm *MachineWriteModel) Reduce() error
type MailTemplateWriteModel ¶
type MailTemplateWriteModel struct { eventstore.WriteModel Template []byte State domain.PolicyState }
func (*MailTemplateWriteModel) Reduce ¶
func (wm *MailTemplateWriteModel) Reduce() error
type MemberWriteModel ¶
type MemberWriteModel struct { eventstore.WriteModel UserID string Roles []string State domain.MemberState }
func NewMemberWriteModel ¶
func NewMemberWriteModel(userID string) *MemberWriteModel
func (*MemberWriteModel) Reduce ¶
func (wm *MemberWriteModel) Reduce() error
type MetadataListWriteModel ¶
type MetadataListWriteModel struct { eventstore.WriteModel // contains filtered or unexported fields }
func (*MetadataListWriteModel) Reduce ¶
func (wm *MetadataListWriteModel) Reduce() error
type MetadataWriteModel ¶
type MetadataWriteModel struct { eventstore.WriteModel Key string Value []byte State domain.MetadataState }
func (*MetadataWriteModel) Reduce ¶
func (wm *MetadataWriteModel) Reduce() error
type MultiFactorWriteModel ¶
type MultiFactorWriteModel struct { eventstore.WriteModel MFAType domain.MultiFactorType State domain.FactorState }
func (*MultiFactorWriteModel) Reduce ¶
func (wm *MultiFactorWriteModel) Reduce() error
type OIDCApplicationWriteModel ¶
type OIDCApplicationWriteModel struct { eventstore.WriteModel AppID string AppName string ClientID string ClientSecret *crypto.CryptoValue ClientSecretString string RedirectUris []string ResponseTypes []domain.OIDCResponseType GrantTypes []domain.OIDCGrantType ApplicationType domain.OIDCApplicationType AuthMethodType domain.OIDCAuthMethodType PostLogoutRedirectUris []string OIDCVersion domain.OIDCVersion Compliance *domain.Compliance DevMode bool AccessTokenType domain.OIDCTokenType AccessTokenRoleAssertion bool IDTokenRoleAssertion bool IDTokenUserinfoAssertion bool ClockSkew time.Duration State domain.AppState AdditionalOrigins []string // contains filtered or unexported fields }
func NewOIDCApplicationWriteModel ¶
func NewOIDCApplicationWriteModel(projectID, resourceOwner string) *OIDCApplicationWriteModel
func NewOIDCApplicationWriteModelWithAppID ¶
func NewOIDCApplicationWriteModelWithAppID(projectID, appID, resourceOwner string) *OIDCApplicationWriteModel
func (*OIDCApplicationWriteModel) AppendEvents ¶
func (wm *OIDCApplicationWriteModel) AppendEvents(events ...eventstore.Event)
func (*OIDCApplicationWriteModel) IsOIDC ¶
func (wm *OIDCApplicationWriteModel) IsOIDC() bool
func (*OIDCApplicationWriteModel) NewChangedEvent ¶
func (wm *OIDCApplicationWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, appID string, redirectURIS, postLogoutRedirectURIs []string, responseTypes []domain.OIDCResponseType, grantTypes []domain.OIDCGrantType, appType domain.OIDCApplicationType, authMethodType domain.OIDCAuthMethodType, oidcVersion domain.OIDCVersion, accessTokenType domain.OIDCTokenType, devMode, accessTokenRoleAssertion, idTokenRoleAssertion, idTokenUserinfoAssertion bool, clockSkew time.Duration, additionalOrigins []string, ) (*project.OIDCConfigChangedEvent, bool, error)
func (*OIDCApplicationWriteModel) Query ¶
func (wm *OIDCApplicationWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OIDCApplicationWriteModel) Reduce ¶
func (wm *OIDCApplicationWriteModel) Reduce() error
type OIDCConfigWriteModel ¶
type OIDCConfigWriteModel struct { eventstore.WriteModel IDPConfigID string ClientID string ClientSecret *crypto.CryptoValue Issuer string AuthorizationEndpoint string TokenEndpoint string Scopes []string IDPDisplayNameMapping domain.OIDCMappingField UserNameMapping domain.OIDCMappingField State domain.IDPConfigState }
func (*OIDCConfigWriteModel) Reduce ¶
func (wm *OIDCConfigWriteModel) Reduce() error
type OrgAuthFactorsAllowedWriteModel ¶
type OrgAuthFactorsAllowedWriteModel struct { eventstore.WriteModel SecondFactors map[domain.SecondFactorType]*factorState MultiFactors map[domain.MultiFactorType]*factorState }
func NewOrgAuthFactorsAllowedWriteModel ¶
func NewOrgAuthFactorsAllowedWriteModel(ctx context.Context, orgID string) *OrgAuthFactorsAllowedWriteModel
func (*OrgAuthFactorsAllowedWriteModel) Query ¶
func (wm *OrgAuthFactorsAllowedWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgAuthFactorsAllowedWriteModel) Reduce ¶
func (wm *OrgAuthFactorsAllowedWriteModel) Reduce() error
func (*OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel ¶
func (wm *OrgAuthFactorsAllowedWriteModel) ToMultiFactorWriteModel(factor domain.MultiFactorType) *OrgMultiFactorWriteModel
func (*OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel ¶
func (wm *OrgAuthFactorsAllowedWriteModel) ToSecondFactorWriteModel(factor domain.SecondFactorType) *OrgSecondFactorWriteModel
type OrgCustomLoginTextReadModel ¶
type OrgCustomLoginTextReadModel struct {
CustomLoginTextReadModel
}
func NewOrgCustomLoginTextReadModel ¶
func NewOrgCustomLoginTextReadModel(orgID string, lang language.Tag) *OrgCustomLoginTextReadModel
func (*OrgCustomLoginTextReadModel) AppendEvents ¶
func (wm *OrgCustomLoginTextReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomLoginTextReadModel) Query ¶
func (wm *OrgCustomLoginTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomLoginTextReadModel) Reduce ¶
func (wm *OrgCustomLoginTextReadModel) Reduce() error
type OrgCustomLoginTextsReadModel ¶
type OrgCustomLoginTextsReadModel struct {
CustomLoginTextsReadModel
}
func NewOrgCustomLoginTextsReadModel ¶
func NewOrgCustomLoginTextsReadModel(orgID string) *OrgCustomLoginTextsReadModel
func (*OrgCustomLoginTextsReadModel) AppendEvents ¶
func (wm *OrgCustomLoginTextsReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomLoginTextsReadModel) Query ¶
func (wm *OrgCustomLoginTextsReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomLoginTextsReadModel) Reduce ¶
func (wm *OrgCustomLoginTextsReadModel) Reduce() error
type OrgCustomMessageTemplatesReadModel ¶
type OrgCustomMessageTemplatesReadModel struct {
CustomMessageTemplatesReadModel
}
func NewOrgCustomMessageTextsWriteModel ¶
func NewOrgCustomMessageTextsWriteModel(orgID string) *OrgCustomMessageTemplatesReadModel
func (*OrgCustomMessageTemplatesReadModel) AppendEvents ¶
func (wm *OrgCustomMessageTemplatesReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomMessageTemplatesReadModel) Query ¶
func (wm *OrgCustomMessageTemplatesReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomMessageTemplatesReadModel) Reduce ¶
func (wm *OrgCustomMessageTemplatesReadModel) Reduce() error
type OrgCustomMessageTextReadModel ¶
type OrgCustomMessageTextReadModel struct {
CustomMessageTextReadModel
}
func NewOrgCustomMessageTextWriteModel ¶
func NewOrgCustomMessageTextWriteModel(orgID, messageTextType string, lang language.Tag) *OrgCustomMessageTextReadModel
func (*OrgCustomMessageTextReadModel) AppendEvents ¶
func (wm *OrgCustomMessageTextReadModel) AppendEvents(events ...eventstore.Event)
func (*OrgCustomMessageTextReadModel) Query ¶
func (wm *OrgCustomMessageTextReadModel) Query() *eventstore.SearchQueryBuilder
func (*OrgCustomMessageTextReadModel) Reduce ¶
func (wm *OrgCustomMessageTextReadModel) Reduce() error
type OrgDomainPolicyWriteModel ¶
type OrgDomainPolicyWriteModel struct {
PolicyDomainWriteModel
}
func NewOrgDomainPolicyWriteModel ¶
func NewOrgDomainPolicyWriteModel(orgID string) *OrgDomainPolicyWriteModel
func (*OrgDomainPolicyWriteModel) AppendEvents ¶
func (wm *OrgDomainPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgDomainPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgDomainPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, userLoginMustBeDomain, validateOrgDomains bool) (*org.DomainPolicyChangedEvent, bool)
func (*OrgDomainPolicyWriteModel) Query ¶
func (wm *OrgDomainPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainPolicyWriteModel) Reduce ¶
func (wm *OrgDomainPolicyWriteModel) Reduce() error
type OrgDomainVerifiedWriteModel ¶
type OrgDomainVerifiedWriteModel struct { eventstore.WriteModel Domain string Verified bool }
func NewOrgDomainVerifiedWriteModel ¶
func NewOrgDomainVerifiedWriteModel(domain string) *OrgDomainVerifiedWriteModel
func (*OrgDomainVerifiedWriteModel) AppendEvents ¶
func (wm *OrgDomainVerifiedWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgDomainVerifiedWriteModel) Query ¶
func (wm *OrgDomainVerifiedWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainVerifiedWriteModel) Reduce ¶
func (wm *OrgDomainVerifiedWriteModel) Reduce() error
type OrgDomainWriteModel ¶
type OrgDomainWriteModel struct { eventstore.WriteModel Domain string ValidationType domain.OrgDomainValidationType ValidationCode *crypto.CryptoValue Primary bool Verified bool State domain.OrgDomainState }
func NewOrgDomainWriteModel ¶
func NewOrgDomainWriteModel(orgID string, domain string) *OrgDomainWriteModel
func (*OrgDomainWriteModel) AppendEvents ¶
func (wm *OrgDomainWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgDomainWriteModel) Query ¶
func (wm *OrgDomainWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainWriteModel) Reduce ¶
func (wm *OrgDomainWriteModel) Reduce() error
type OrgDomainsWriteModel ¶
type OrgDomainsWriteModel struct { eventstore.WriteModel Domains []*Domain PrimaryDomain string OrgName string }
func NewOrgDomainsWriteModel ¶
func NewOrgDomainsWriteModel(orgID string) *OrgDomainsWriteModel
func (*OrgDomainsWriteModel) Query ¶
func (wm *OrgDomainsWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgDomainsWriteModel) Reduce ¶
func (wm *OrgDomainsWriteModel) Reduce() error
type OrgFlowWriteModel ¶
type OrgFlowWriteModel struct {
FlowWriteModel
}
func NewOrgFlowWriteModel ¶
func NewOrgFlowWriteModel(flowType domain.FlowType, resourceOwner string) *OrgFlowWriteModel
func (*OrgFlowWriteModel) AppendEvents ¶
func (wm *OrgFlowWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgFlowWriteModel) Query ¶
func (wm *OrgFlowWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgFlowWriteModel) Reduce ¶
func (wm *OrgFlowWriteModel) Reduce() error
type OrgIDPConfigWriteModel ¶
type OrgIDPConfigWriteModel struct {
IDPConfigWriteModel
}
func NewOrgIDPConfigWriteModel ¶
func NewOrgIDPConfigWriteModel(configID, orgID string) *OrgIDPConfigWriteModel
func (*OrgIDPConfigWriteModel) AppendAndReduce ¶
func (wm *OrgIDPConfigWriteModel) AppendAndReduce(events ...eventstore.Event) error
func (*OrgIDPConfigWriteModel) AppendEvents ¶
func (wm *OrgIDPConfigWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgIDPConfigWriteModel) NewChangedEvent ¶
func (wm *OrgIDPConfigWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, configID, name string, stylingType domain.IDPConfigStylingType, autoRegister bool, ) (*org.IDPConfigChangedEvent, bool)
func (*OrgIDPConfigWriteModel) Query ¶
func (wm *OrgIDPConfigWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgIDPConfigWriteModel) Reduce ¶
func (wm *OrgIDPConfigWriteModel) Reduce() error
type OrgIdentityProviderWriteModel ¶
type OrgIdentityProviderWriteModel struct {
IdentityProviderWriteModel
}
func NewOrgIdentityProviderWriteModel ¶
func NewOrgIdentityProviderWriteModel(orgID, idpConfigID string) *OrgIdentityProviderWriteModel
func (*OrgIdentityProviderWriteModel) AppendEvents ¶
func (wm *OrgIdentityProviderWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgIdentityProviderWriteModel) Query ¶
func (wm *OrgIdentityProviderWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgIdentityProviderWriteModel) Reduce ¶
func (wm *OrgIdentityProviderWriteModel) Reduce() error
type OrgLabelPolicyWriteModel ¶
type OrgLabelPolicyWriteModel struct {
LabelPolicyWriteModel
}
func NewOrgLabelPolicyWriteModel ¶
func NewOrgLabelPolicyWriteModel(orgID string) *OrgLabelPolicyWriteModel
func (*OrgLabelPolicyWriteModel) AppendEvents ¶
func (wm *OrgLabelPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLabelPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLabelPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, primaryColor, backgroundColor, warnColor, fontColor, primaryColorDark, backgroundColorDark, warnColorDark, fontColorDark string, hideLoginNameSuffix, errorMsgPopup, disableWatermark bool, ) (*org.LabelPolicyChangedEvent, bool)
func (*OrgLabelPolicyWriteModel) Query ¶
func (wm *OrgLabelPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLabelPolicyWriteModel) Reduce ¶
func (wm *OrgLabelPolicyWriteModel) Reduce() error
type OrgLockoutPolicyWriteModel ¶
type OrgLockoutPolicyWriteModel struct {
LockoutPolicyWriteModel
}
func NewOrgLockoutPolicyWriteModel ¶
func NewOrgLockoutPolicyWriteModel(orgID string) *OrgLockoutPolicyWriteModel
func (*OrgLockoutPolicyWriteModel) AppendEvents ¶
func (wm *OrgLockoutPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLockoutPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLockoutPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, maxAttempts uint64, showLockoutFailure bool) (*org.LockoutPolicyChangedEvent, bool)
func (*OrgLockoutPolicyWriteModel) Query ¶
func (wm *OrgLockoutPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLockoutPolicyWriteModel) Reduce ¶
func (wm *OrgLockoutPolicyWriteModel) Reduce() error
type OrgLoginPolicyWriteModel ¶
type OrgLoginPolicyWriteModel struct {
LoginPolicyWriteModel
}
func NewOrgLoginPolicyWriteModel ¶
func NewOrgLoginPolicyWriteModel(orgID string) *OrgLoginPolicyWriteModel
func (*OrgLoginPolicyWriteModel) AppendEvents ¶
func (wm *OrgLoginPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgLoginPolicyWriteModel) IsValid ¶
func (wm *OrgLoginPolicyWriteModel) IsValid() bool
func (*OrgLoginPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgLoginPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, allowUsernamePassword, allowRegister, allowExternalIDP, forceMFA, hidePasswordReset bool, passwordlessType domain.PasswordlessType, passwordCheckLifetime, externalLoginCheckLifetime, mfaInitSkipLifetime, secondFactorCheckLifetime, multiFactorCheckLifetime time.Duration, ) (*org.LoginPolicyChangedEvent, bool)
func (*OrgLoginPolicyWriteModel) Query ¶
func (wm *OrgLoginPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgLoginPolicyWriteModel) Reduce ¶
func (wm *OrgLoginPolicyWriteModel) Reduce() error
type OrgMailTemplateWriteModel ¶
type OrgMailTemplateWriteModel struct {
MailTemplateWriteModel
}
func NewOrgMailTemplateWriteModel ¶
func NewOrgMailTemplateWriteModel(orgID string) *OrgMailTemplateWriteModel
func (*OrgMailTemplateWriteModel) AppendEvents ¶
func (wm *OrgMailTemplateWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMailTemplateWriteModel) NewChangedEvent ¶
func (wm *OrgMailTemplateWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, template []byte, ) (*org.MailTemplateChangedEvent, bool)
func (*OrgMailTemplateWriteModel) Query ¶
func (wm *OrgMailTemplateWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMailTemplateWriteModel) Reduce ¶
func (wm *OrgMailTemplateWriteModel) Reduce() error
type OrgMemberWriteModel ¶
type OrgMemberWriteModel struct {
MemberWriteModel
}
func NewOrgMemberWriteModel ¶
func NewOrgMemberWriteModel(orgID, userID string) *OrgMemberWriteModel
func (*OrgMemberWriteModel) AppendEvents ¶
func (wm *OrgMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMemberWriteModel) Query ¶
func (wm *OrgMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMemberWriteModel) Reduce ¶
func (wm *OrgMemberWriteModel) Reduce() error
type OrgMultiFactorWriteModel ¶
type OrgMultiFactorWriteModel struct {
MultiFactorWriteModel
}
func NewOrgMultiFactorWriteModel ¶
func NewOrgMultiFactorWriteModel(orgID string, factorType domain.MultiFactorType) *OrgMultiFactorWriteModel
func (*OrgMultiFactorWriteModel) AppendEvents ¶
func (wm *OrgMultiFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgMultiFactorWriteModel) Query ¶
func (wm *OrgMultiFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgMultiFactorWriteModel) Reduce ¶
func (wm *OrgMultiFactorWriteModel) Reduce() error
type OrgPasswordAgePolicyWriteModel ¶
type OrgPasswordAgePolicyWriteModel struct {
PasswordAgePolicyWriteModel
}
func NewOrgPasswordAgePolicyWriteModel ¶
func NewOrgPasswordAgePolicyWriteModel(orgID string) *OrgPasswordAgePolicyWriteModel
func (*OrgPasswordAgePolicyWriteModel) AppendEvents ¶
func (wm *OrgPasswordAgePolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPasswordAgePolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPasswordAgePolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, expireWarnDays, maxAgeDays uint64) (*org.PasswordAgePolicyChangedEvent, bool)
func (*OrgPasswordAgePolicyWriteModel) Query ¶
func (wm *OrgPasswordAgePolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPasswordAgePolicyWriteModel) Reduce ¶
func (wm *OrgPasswordAgePolicyWriteModel) Reduce() error
type OrgPasswordComplexityPolicyWriteModel ¶
type OrgPasswordComplexityPolicyWriteModel struct {
PasswordComplexityPolicyWriteModel
}
func NewOrgPasswordComplexityPolicyWriteModel ¶
func NewOrgPasswordComplexityPolicyWriteModel(orgID string) *OrgPasswordComplexityPolicyWriteModel
func (*OrgPasswordComplexityPolicyWriteModel) AppendEvents ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPasswordComplexityPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, minLength uint64, hasLowercase, hasUppercase, hasNumber, hasSymbol bool, ) (*org.PasswordComplexityPolicyChangedEvent, bool)
func (*OrgPasswordComplexityPolicyWriteModel) Query ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *OrgPasswordComplexityPolicyWriteModel) Reduce() error
type OrgPrivacyPolicyWriteModel ¶
type OrgPrivacyPolicyWriteModel struct {
PrivacyPolicyWriteModel
}
func NewOrgPrivacyPolicyWriteModel ¶
func NewOrgPrivacyPolicyWriteModel(orgID string) *OrgPrivacyPolicyWriteModel
func (*OrgPrivacyPolicyWriteModel) AppendEvents ¶
func (wm *OrgPrivacyPolicyWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgPrivacyPolicyWriteModel) NewChangedEvent ¶
func (wm *OrgPrivacyPolicyWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, tosLink, privacyLink, helpLink string, ) (*org.PrivacyPolicyChangedEvent, bool)
func (*OrgPrivacyPolicyWriteModel) Query ¶
func (wm *OrgPrivacyPolicyWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgPrivacyPolicyWriteModel) Reduce ¶
func (wm *OrgPrivacyPolicyWriteModel) Reduce() error
type OrgSecondFactorWriteModel ¶
type OrgSecondFactorWriteModel struct {
SecondFactorWriteModel
}
func NewOrgSecondFactorWriteModel ¶
func NewOrgSecondFactorWriteModel(orgID string, factorType domain.SecondFactorType) *OrgSecondFactorWriteModel
func (*OrgSecondFactorWriteModel) AppendEvents ¶
func (wm *OrgSecondFactorWriteModel) AppendEvents(events ...eventstore.Event)
func (*OrgSecondFactorWriteModel) Query ¶
func (wm *OrgSecondFactorWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgSecondFactorWriteModel) Reduce ¶
func (wm *OrgSecondFactorWriteModel) Reduce() error
type OrgWriteModel ¶
type OrgWriteModel struct { eventstore.WriteModel Name string State domain.OrgState PrimaryDomain string }
func NewOrgWriteModel ¶
func NewOrgWriteModel(orgID string) *OrgWriteModel
func (*OrgWriteModel) Query ¶
func (wm *OrgWriteModel) Query() *eventstore.SearchQueryBuilder
func (*OrgWriteModel) Reduce ¶
func (wm *OrgWriteModel) Reduce() error
type PasswordAgePolicyWriteModel ¶
type PasswordAgePolicyWriteModel struct { eventstore.WriteModel ExpireWarnDays uint64 MaxAgeDays uint64 State domain.PolicyState }
func (*PasswordAgePolicyWriteModel) Reduce ¶
func (wm *PasswordAgePolicyWriteModel) Reduce() error
type PasswordComplexityPolicyWriteModel ¶
type PasswordComplexityPolicyWriteModel struct { eventstore.WriteModel MinLength uint64 HasLowercase bool HasUppercase bool HasNumber bool HasSymbol bool State domain.PolicyState }
func (*PasswordComplexityPolicyWriteModel) Reduce ¶
func (wm *PasswordComplexityPolicyWriteModel) Reduce() error
func (*PasswordComplexityPolicyWriteModel) Validate ¶
func (wm *PasswordComplexityPolicyWriteModel) Validate(password string) error
type PersonalAccessTokenWriteModel ¶
type PersonalAccessTokenWriteModel struct { eventstore.WriteModel TokenID string ExpirationDate time.Time State domain.PersonalAccessTokenState }
func NewPersonalAccessTokenWriteModel ¶
func NewPersonalAccessTokenWriteModel(userID, tokenID, resourceOwner string) *PersonalAccessTokenWriteModel
func (*PersonalAccessTokenWriteModel) AppendEvents ¶
func (wm *PersonalAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*PersonalAccessTokenWriteModel) Exists ¶
func (wm *PersonalAccessTokenWriteModel) Exists() bool
func (*PersonalAccessTokenWriteModel) Query ¶
func (wm *PersonalAccessTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*PersonalAccessTokenWriteModel) Reduce ¶
func (wm *PersonalAccessTokenWriteModel) Reduce() error
type PolicyDomainWriteModel ¶
type PolicyDomainWriteModel struct { eventstore.WriteModel UserLoginMustBeDomain bool ValidateOrgDomains bool State domain.PolicyState }
func (*PolicyDomainWriteModel) Reduce ¶
func (wm *PolicyDomainWriteModel) Reduce() error
type PrivacyPolicyWriteModel ¶
type PrivacyPolicyWriteModel struct { eventstore.WriteModel TOSLink string PrivacyLink string HelpLink string State domain.PolicyState }
func (*PrivacyPolicyWriteModel) Reduce ¶
func (wm *PrivacyPolicyWriteModel) Reduce() error
type ProjectGrantMemberWriteModel ¶
type ProjectGrantMemberWriteModel struct { eventstore.WriteModel GrantID string UserID string Roles []string State domain.MemberState }
func NewProjectGrantMemberWriteModel ¶
func NewProjectGrantMemberWriteModel(projectID, userID, grantID string) *ProjectGrantMemberWriteModel
func (*ProjectGrantMemberWriteModel) AppendEvents ¶
func (wm *ProjectGrantMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectGrantMemberWriteModel) Query ¶
func (wm *ProjectGrantMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantMemberWriteModel) Reduce ¶
func (wm *ProjectGrantMemberWriteModel) Reduce() error
type ProjectGrantPreConditionReadModel ¶
type ProjectGrantPreConditionReadModel struct { eventstore.WriteModel ProjectID string GrantedOrgID string ProjectExists bool GrantedOrgExists bool ExistingRoleKeys []string }
func NewProjectGrantPreConditionReadModel ¶
func NewProjectGrantPreConditionReadModel(projectID, grantedOrgID string) *ProjectGrantPreConditionReadModel
func (*ProjectGrantPreConditionReadModel) Query ¶
func (wm *ProjectGrantPreConditionReadModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantPreConditionReadModel) Reduce ¶
func (wm *ProjectGrantPreConditionReadModel) Reduce() error
type ProjectGrantWriteModel ¶
type ProjectGrantWriteModel struct { eventstore.WriteModel GrantID string GrantedOrgID string RoleKeys []string State domain.ProjectGrantState }
func NewProjectGrantWriteModel ¶
func NewProjectGrantWriteModel(grantID, projectID, resourceOwner string) *ProjectGrantWriteModel
func (*ProjectGrantWriteModel) AppendEvents ¶
func (wm *ProjectGrantWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectGrantWriteModel) Query ¶
func (wm *ProjectGrantWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectGrantWriteModel) Reduce ¶
func (wm *ProjectGrantWriteModel) Reduce() error
type ProjectMemberWriteModel ¶
type ProjectMemberWriteModel struct {
MemberWriteModel
}
func NewProjectMemberWriteModel ¶
func NewProjectMemberWriteModel(projectID, userID, resourceOwner string) *ProjectMemberWriteModel
func (*ProjectMemberWriteModel) AppendEvents ¶
func (wm *ProjectMemberWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectMemberWriteModel) Query ¶
func (wm *ProjectMemberWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectMemberWriteModel) Reduce ¶
func (wm *ProjectMemberWriteModel) Reduce() error
type ProjectRoleWriteModel ¶
type ProjectRoleWriteModel struct { eventstore.WriteModel Key string DisplayName string Group string State domain.ProjectRoleState }
func NewProjectRoleWriteModel ¶
func NewProjectRoleWriteModel(projectID, resourceOwner string) *ProjectRoleWriteModel
func NewProjectRoleWriteModelWithKey ¶
func NewProjectRoleWriteModelWithKey(key, projectID, resourceOwner string) *ProjectRoleWriteModel
func (*ProjectRoleWriteModel) AppendEvents ¶
func (wm *ProjectRoleWriteModel) AppendEvents(events ...eventstore.Event)
func (*ProjectRoleWriteModel) NewProjectRoleChangedEvent ¶
func (wm *ProjectRoleWriteModel) NewProjectRoleChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, key, displayName, group string, ) (*project.RoleChangedEvent, bool, error)
func (*ProjectRoleWriteModel) Query ¶
func (wm *ProjectRoleWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectRoleWriteModel) Reduce ¶
func (wm *ProjectRoleWriteModel) Reduce() error
type ProjectWriteModel ¶
type ProjectWriteModel struct { eventstore.WriteModel Name string ProjectRoleAssertion bool ProjectRoleCheck bool HasProjectCheck bool PrivateLabelingSetting domain.PrivateLabelingSetting State domain.ProjectState }
func NewProjectWriteModel ¶
func NewProjectWriteModel(projectID string, resourceOwner string) *ProjectWriteModel
func (*ProjectWriteModel) NewChangedEvent ¶
func (wm *ProjectWriteModel) NewChangedEvent( ctx context.Context, aggregate *eventstore.Aggregate, name string, projectRoleAssertion, projectRoleCheck, hasProjectCheck bool, privateLabelingSetting domain.PrivateLabelingSetting, ) (*project.ProjectChangeEvent, bool, error)
func (*ProjectWriteModel) Query ¶
func (wm *ProjectWriteModel) Query() *eventstore.SearchQueryBuilder
func (*ProjectWriteModel) Reduce ¶
func (wm *ProjectWriteModel) Reduce() error
type SecondFactorWriteModel ¶
type SecondFactorWriteModel struct { eventstore.WriteModel MFAType domain.SecondFactorType State domain.FactorState }
func (*SecondFactorWriteModel) Reduce ¶
func (wm *SecondFactorWriteModel) Reduce() error
type TwilioConfig ¶
type TwilioConfig struct { SID string Token *crypto.CryptoValue SenderNumber string }
type UniqueConstraintReadModel ¶
type UniqueConstraintReadModel struct { eventstore.WriteModel UniqueConstraints []*domain.UniqueConstraintMigration // contains filtered or unexported fields }
func NewUniqueConstraintReadModel ¶
func NewUniqueConstraintReadModel(ctx context.Context, provider commandProvider) *UniqueConstraintReadModel
func (*UniqueConstraintReadModel) AppendEvents ¶
func (rm *UniqueConstraintReadModel) AppendEvents(events ...eventstore.Event)
func (*UniqueConstraintReadModel) Query ¶
func (rm *UniqueConstraintReadModel) Query() *eventstore.SearchQueryBuilder
func (*UniqueConstraintReadModel) Reduce ¶
func (rm *UniqueConstraintReadModel) Reduce() error
type UserAccessTokenWriteModel ¶
type UserAccessTokenWriteModel struct { eventstore.WriteModel TokenID string ApplicationID string UserAgentID string Audience []string Scopes []string Expiration time.Time PreferredLanguage string UserState domain.UserState }
func NewUserAccessTokenWriteModel ¶
func NewUserAccessTokenWriteModel(userID, resourceOwner, tokenID string) *UserAccessTokenWriteModel
func (*UserAccessTokenWriteModel) AppendEvents ¶
func (wm *UserAccessTokenWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserAccessTokenWriteModel) Query ¶
func (wm *UserAccessTokenWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserAccessTokenWriteModel) Reduce ¶
func (wm *UserAccessTokenWriteModel) Reduce() error
type UserGrantPreConditionReadModel ¶
type UserGrantPreConditionReadModel struct { eventstore.WriteModel UserID string ProjectID string ProjectGrantID string UserExists bool ProjectExists bool ProjectGrantExists bool ExistingRoleKeys []string }
func NewUserGrantPreConditionReadModel ¶
func NewUserGrantPreConditionReadModel(userID, projectID, projectGrantID string) *UserGrantPreConditionReadModel
func (*UserGrantPreConditionReadModel) Query ¶
func (wm *UserGrantPreConditionReadModel) Query() *eventstore.SearchQueryBuilder
func (*UserGrantPreConditionReadModel) Reduce ¶
func (wm *UserGrantPreConditionReadModel) Reduce() error
type UserGrantWriteModel ¶
type UserGrantWriteModel struct { eventstore.WriteModel UserID string ProjectID string ProjectGrantID string RoleKeys []string State domain.UserGrantState }
func NewUserGrantWriteModel ¶
func NewUserGrantWriteModel(userGrantID string, resourceOwner string) *UserGrantWriteModel
func (*UserGrantWriteModel) Query ¶
func (wm *UserGrantWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserGrantWriteModel) Reduce ¶
func (wm *UserGrantWriteModel) Reduce() error
type UserIDPLinkWriteModel ¶
type UserIDPLinkWriteModel struct { eventstore.WriteModel IDPConfigID string ExternalUserID string DisplayName string State domain.UserIDPLinkState }
func NewUserIDPLinkWriteModel ¶
func NewUserIDPLinkWriteModel(userID, idpConfigID, externalUserID, resourceOwner string) *UserIDPLinkWriteModel
func (*UserIDPLinkWriteModel) AppendEvents ¶
func (wm *UserIDPLinkWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserIDPLinkWriteModel) Query ¶
func (wm *UserIDPLinkWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserIDPLinkWriteModel) Reduce ¶
func (wm *UserIDPLinkWriteModel) Reduce() error
type UserMetadataByOrgListWriteModel ¶
type UserMetadataByOrgListWriteModel struct { eventstore.WriteModel UserMetadata map[string]map[string][]byte }
func NewUserMetadataByOrgListWriteModel ¶
func NewUserMetadataByOrgListWriteModel(resourceOwner string) *UserMetadataByOrgListWriteModel
func (*UserMetadataByOrgListWriteModel) AppendEvents ¶
func (wm *UserMetadataByOrgListWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataByOrgListWriteModel) Query ¶
func (wm *UserMetadataByOrgListWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataByOrgListWriteModel) Reduce ¶
func (wm *UserMetadataByOrgListWriteModel) Reduce() error
type UserMetadataListWriteModel ¶
type UserMetadataListWriteModel struct {
MetadataListWriteModel
}
func NewUserMetadataListWriteModel ¶
func NewUserMetadataListWriteModel(userID, resourceOwner string) *UserMetadataListWriteModel
func (*UserMetadataListWriteModel) AppendEvents ¶
func (wm *UserMetadataListWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataListWriteModel) Query ¶
func (wm *UserMetadataListWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataListWriteModel) Reduce ¶
func (wm *UserMetadataListWriteModel) Reduce() error
type UserMetadataWriteModel ¶
type UserMetadataWriteModel struct {
MetadataWriteModel
}
func NewUserMetadataWriteModel ¶
func NewUserMetadataWriteModel(userID, resourceOwner, key string) *UserMetadataWriteModel
func (*UserMetadataWriteModel) AppendEvents ¶
func (wm *UserMetadataWriteModel) AppendEvents(events ...eventstore.Event)
func (*UserMetadataWriteModel) Query ¶
func (wm *UserMetadataWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserMetadataWriteModel) Reduce ¶
func (wm *UserMetadataWriteModel) Reduce() error
type UserWriteModel ¶
type UserWriteModel struct { eventstore.WriteModel UserName string IDPLinks []*domain.UserIDPLink UserState domain.UserState UserType domain.UserType }
func NewUserWriteModel ¶
func NewUserWriteModel(userID, resourceOwner string) *UserWriteModel
func (*UserWriteModel) IDPLinkByID ¶
func (wm *UserWriteModel) IDPLinkByID(idpID, externalUserID string) (idx int, idp *domain.UserIDPLink)
func (*UserWriteModel) Query ¶
func (wm *UserWriteModel) Query() *eventstore.SearchQueryBuilder
func (*UserWriteModel) Reduce ¶
func (wm *UserWriteModel) Reduce() error
type ZitadelConfig ¶
type ZitadelConfig struct {
// contains filtered or unexported fields
}
Source Files ¶
- auth_checks.go
- command.go
- converter.go
- crypto.go
- custom_login_text.go
- custom_login_text_model.go
- custom_message_text_model.go
- custom_text_model.go
- debug_notification_model.go
- email.go
- existing_label_policies_model.go
- flow_model.go
- identity_provider_model.go
- idp_config_model.go
- instancce_policy_password_age_model.go
- instance.go
- instance_converter.go
- instance_custom_login_text.go
- instance_custom_login_text_model.go
- instance_custom_message_text.go
- instance_custom_message_text_model.go
- instance_custom_text.go
- instance_custom_text_model.go
- instance_debug_notification_file.go
- instance_debug_notification_file_model.go
- instance_debug_notification_log.go
- instance_debug_notification_log_model.go
- instance_domain.go
- instance_domain_model.go
- instance_domain_policy.go
- instance_email_template.go
- instance_idp_config.go
- instance_idp_config_model.go
- instance_idp_jwt_config.go
- instance_idp_jwt_config_model.go
- instance_idp_oidc_config.go
- instance_idp_oidc_config_model.go
- instance_label_policy.go
- instance_lockout_policy.go
- instance_login_policy.go
- instance_member.go
- instance_member_model.go
- instance_model.go
- instance_oidc_settings.go
- instance_oidc_settings_model.go
- instance_password_age_policy.go
- instance_password_complexity_policy.go
- instance_policy_domain.go
- instance_policy_domain_model.go
- instance_policy_label.go
- instance_policy_label_model.go
- instance_policy_login.go
- instance_policy_login_factors_model.go
- instance_policy_login_identity_provider_model.go
- instance_policy_login_model.go
- instance_policy_mail_template.go
- instance_policy_mail_template_model.go
- instance_policy_password_age.go
- instance_policy_password_complexity.go
- instance_policy_password_complexity_model.go
- instance_policy_password_lockout.go
- instance_policy_password_lockout_model.go
- instance_policy_privacy.go
- instance_policy_privacy_model.go
- instance_privacy_policy.go
- instance_secret_generator_model.go
- instance_settings.go
- instance_smtp_config_model.go
- jwt_config_model.go
- key_pair.go
- key_pair_model.go
- member_model.go
- metadata_model.go
- oidc_config_model.go
- org.go
- org_action.go
- org_action_model.go
- org_converter.go
- org_custom_login_text.go
- org_custom_login_text_model.go
- org_custom_message_model.go
- org_custom_message_text.go
- org_domain.go
- org_domain_model.go
- org_flow.go
- org_flow_model.go
- org_idp_config.go
- org_idp_config_model.go
- org_idp_jwt_config.go
- org_idp_jwt_config_model.go
- org_idp_oidc_config.go
- org_idp_oidc_config_model.go
- org_member.go
- org_member_model.go
- org_model.go
- org_policy_domain.go
- org_policy_domain_model.go
- org_policy_label.go
- org_policy_label_model.go
- org_policy_lockout.go
- org_policy_lockout_model.go
- org_policy_login.go
- org_policy_login_factors_model.go
- org_policy_login_identity_provider_model.go
- org_policy_login_model.go
- org_policy_mail_template.go
- org_policy_mail_template_model.go
- org_policy_password_age.go
- org_policy_password_age_model.go
- org_policy_password_complexity.go
- org_policy_password_complexity_model.go
- org_policy_privacy.go
- org_policy_privacy_model.go
- phone.go
- policy_label_model.go
- policy_login_factors_model.go
- policy_login_model.go
- policy_mail_template_model.go
- policy_org_model.go
- policy_password_age_model.go
- policy_password_complexity_model.go
- policy_password_lockout_model.go
- policy_privacy_model.go
- project.go
- project_application.go
- project_application_api.go
- project_application_api_model.go
- project_application_key.go
- project_application_key_model.go
- project_application_model.go
- project_application_oidc.go
- project_application_oidc_model.go
- project_converter.go
- project_grant.go
- project_grant_member.go
- project_grant_member_model.go
- project_grant_model.go
- project_member.go
- project_member_model.go
- project_model.go
- project_role.go
- project_role_model.go
- sms_config.go
- sms_config_model.go
- smtp.go
- statics.go
- unique_constraints_model.go
- user.go
- user_converter.go
- user_domain_policy.go
- user_grant.go
- user_grant_converter.go
- user_grant_model.go
- user_human.go
- user_human_access_token_model.go
- user_human_address.go
- user_human_address_model.go
- user_human_avatar.go
- user_human_email.go
- user_human_email_model.go
- user_human_init.go
- user_human_init_model.go
- user_human_model.go
- user_human_otp.go
- user_human_otp_model.go
- user_human_password.go
- user_human_password_model.go
- user_human_phone.go
- user_human_phone_model.go
- user_human_profile.go
- user_human_profile_model.go
- user_human_refresh_token.go
- user_human_refresh_token_model.go
- user_human_webauthn.go
- user_human_webauthn_model.go
- user_idp_link.go
- user_idp_link_model.go
- user_machine.go
- user_machine_key.go
- user_machine_key_model.go
- user_machine_model.go
- user_membership.go
- user_metadata.go
- user_metadata_model.go
- user_model.go
- user_password_complexity_policy.go
- user_personal_access_token.go
- user_personal_access_token_model.go
Click to show internal directories.
Click to hide internal directories.