policy

package
v0.0.0-...-860e413 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CustomTextSetEventType             = customTextPrefix + "set"
	CustomTextRemovedEventType         = customTextPrefix + "removed"
	CustomTextTemplateRemovedEventType = customTextPrefix + "template.removed"
)
View Source
const (
	LabelPolicyAddedEventType     = "policy.label.added"
	LabelPolicyChangedEventType   = "policy.label.changed"
	LabelPolicyActivatedEventType = "policy.label.activated"

	LabelPolicyLogoAddedEventType   = "policy.label.logo.added"
	LabelPolicyLogoRemovedEventType = "policy.label.logo.removed"
	LabelPolicyIconAddedEventType   = "policy.label.icon.added"
	LabelPolicyIconRemovedEventType = "policy.label.icon.removed"

	LabelPolicyLogoDarkAddedEventType   = "policy.label.logo.dark.added"
	LabelPolicyLogoDarkRemovedEventType = "policy.label.logo.dark.removed"
	LabelPolicyIconDarkAddedEventType   = "policy.label.icon.dark.added"
	LabelPolicyIconDarkRemovedEventType = "policy.label.icon.dark.removed"

	LabelPolicyFontAddedEventType   = "policy.label.font.added"
	LabelPolicyFontRemovedEventType = "policy.label.font.removed"

	LabelPolicyAssetsRemovedEventType = "policy.label.assets.removed"

	LabelPolicyRemovedEventType = "policy.label.removed"
)
View Source
const (
	LoginPolicyAddedEventType   = loginPolicyPrefix + "added"
	LoginPolicyChangedEventType = loginPolicyPrefix + "changed"
	LoginPolicyRemovedEventType = loginPolicyPrefix + "removed"
)
View Source
const (
	MailTemplatePolicyAddedEventType   = mailTemplatePolicyPrefix + "added"
	MailTemplatePolicyChangedEventType = mailTemplatePolicyPrefix + "changed"
	MailTemplatePolicyRemovedEventType = mailTemplatePolicyPrefix + "removed"
)
View Source
const (
	UniqueMailText = "mail_text"

	MailTextPolicyAddedEventType   = mailTextPolicyPrefix + "added"
	MailTextPolicyChangedEventType = mailTextPolicyPrefix + "changed"
	MailTextPolicyRemovedEventType = mailTextPolicyPrefix + "removed"
)
View Source
const (
	DomainPolicyAddedEventType   = "policy.domain.added"
	DomainPolicyChangedEventType = "policy.domain.changed"
	DomainPolicyRemovedEventType = "policy.domain.removed"
)
View Source
const (
	LoginPolicySecondFactorAddedEventType   = loginPolicySecondFactorPrefix + "added"
	LoginPolicySecondFactorRemovedEventType = loginPolicySecondFactorPrefix + "removed"

	LoginPolicyMultiFactorAddedEventType   = loginPolicyMultiFactorPrefix + "added"
	LoginPolicyMultiFactorRemovedEventType = loginPolicyMultiFactorPrefix + "removed"
)
View Source
const (
	LoginPolicyIDPProviderAddedType          = loginPolicyIDPProviderPrevix + "added"
	LoginPolicyIDPProviderRemovedType        = loginPolicyIDPProviderPrevix + "removed"
	LoginPolicyIDPProviderCascadeRemovedType = loginPolicyIDPProviderPrevix + "cascade.removed"
)
View Source
const (
	PasswordAgePolicyAddedEventType   = "policy.password.age.added"
	PasswordAgePolicyChangedEventType = "policy.password.age.changed"
	PasswordAgePolicyRemovedEventType = "policy.password.age.removed"
)
View Source
const (
	PasswordComplexityPolicyAddedEventType   = "policy.password.complexity.added"
	PasswordComplexityPolicyChangedEventType = "policy.password.complexity.changed"
	PasswordComplexityPolicyRemovedEventType = "policy.password.complexity.removed"
)
View Source
const (
	LockoutPolicyAddedEventType   = "policy.lockout.added"
	LockoutPolicyChangedEventType = "policy.lockout.changed"
	LockoutPolicyRemovedEventType = "policy.lockout.removed"
)
View Source
const (
	PrivacyPolicyAddedEventType   = "policy.privacy.added"
	PrivacyPolicyChangedEventType = "policy.privacy.changed"
	PrivacyPolicyRemovedEventType = "policy.privacy.removed"
)

Variables

This section is empty.

Functions

func ChangeAllowDomainDiscovery

func ChangeAllowDomainDiscovery(allowDomainDiscovery bool) func(*LoginPolicyChangedEvent)

func ChangeAllowExternalIDP

func ChangeAllowExternalIDP(allowExternalIDP bool) func(*LoginPolicyChangedEvent)

func ChangeAllowRegister

func ChangeAllowRegister(allowRegister bool) func(*LoginPolicyChangedEvent)

func ChangeAllowUserNamePassword

func ChangeAllowUserNamePassword(allowUserNamePassword bool) func(*LoginPolicyChangedEvent)

func ChangeBackgroundColor

func ChangeBackgroundColor(background string) func(*LabelPolicyChangedEvent)

func ChangeBackgroundColorDark

func ChangeBackgroundColorDark(backgroundColorDark string) func(*LabelPolicyChangedEvent)

func ChangeButtonText

func ChangeButtonText(buttonText string) func(*MailTextChangedEvent)

func ChangeDefaultRedirectURI

func ChangeDefaultRedirectURI(defaultRedirectURI string) func(*LoginPolicyChangedEvent)

func ChangeDisableLoginWithEmail

func ChangeDisableLoginWithEmail(disableLoginWithEmail bool) func(*LoginPolicyChangedEvent)

func ChangeDisableLoginWithPhone

func ChangeDisableLoginWithPhone(DisableLoginWithPhone bool) func(*LoginPolicyChangedEvent)

func ChangeDisableWatermark

func ChangeDisableWatermark(disableWatermark bool) func(*LabelPolicyChangedEvent)

func ChangeErrorMsgPopup

func ChangeErrorMsgPopup(errMsgPopup bool) func(*LabelPolicyChangedEvent)

func ChangeExpireWarnDays

func ChangeExpireWarnDays(expireWarnDay uint64) func(*PasswordAgePolicyChangedEvent)

func ChangeExternalLoginCheckLifetime

func ChangeExternalLoginCheckLifetime(externalLoginCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeFontColor

func ChangeFontColor(fontColor string) func(*LabelPolicyChangedEvent)

func ChangeFontColorDark

func ChangeFontColorDark(fontColorDark string) func(*LabelPolicyChangedEvent)

func ChangeForceMFA

func ChangeForceMFA(forceMFA bool) func(*LoginPolicyChangedEvent)

func ChangeGreeting

func ChangeGreeting(greeting string) func(*MailTextChangedEvent)

func ChangeHasLowercase

func ChangeHasLowercase(hasLowercase bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasNumber

func ChangeHasNumber(hasNumber bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasSymbol

func ChangeHasSymbol(hasSymbol bool) func(*PasswordComplexityPolicyChangedEvent)

func ChangeHasUppercase

func ChangeHasUppercase(hasUppercase bool) func(*PasswordComplexityPolicyChangedEvent)
func ChangeHelpLink(helpLink string) func(*PrivacyPolicyChangedEvent)

func ChangeHideLoginNameSuffix

func ChangeHideLoginNameSuffix(hideLoginNameSuffix bool) func(*LabelPolicyChangedEvent)

func ChangeHidePasswordReset

func ChangeHidePasswordReset(hidePasswordReset bool) func(*LoginPolicyChangedEvent)

func ChangeIgnoreUnknownUsernames

func ChangeIgnoreUnknownUsernames(ignoreUnknownUsernames bool) func(*LoginPolicyChangedEvent)

func ChangeMFAInitSkipLifetime

func ChangeMFAInitSkipLifetime(mfaInitSkipLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeMaxAgeDays

func ChangeMaxAgeDays(maxAgeDays uint64) func(*PasswordAgePolicyChangedEvent)

func ChangeMaxAttempts

func ChangeMaxAttempts(maxAttempts uint64) func(*LockoutPolicyChangedEvent)

func ChangeMinLength

func ChangeMinLength(minLength uint64) func(*PasswordComplexityPolicyChangedEvent)

func ChangeMultiFactorCheckLifetime

func ChangeMultiFactorCheckLifetime(multiFactorCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangePasswordCheckLifetime

func ChangePasswordCheckLifetime(passwordCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangePasswordlessType

func ChangePasswordlessType(passwordlessType domain.PasswordlessType) func(*LoginPolicyChangedEvent)

func ChangePreHeader

func ChangePreHeader(preHeader string) func(*MailTextChangedEvent)

func ChangePrimaryColor

func ChangePrimaryColor(primaryColor string) func(*LabelPolicyChangedEvent)

func ChangePrimaryColorDark

func ChangePrimaryColorDark(primaryColorDark string) func(*LabelPolicyChangedEvent)
func ChangePrivacyLink(privacyLink string) func(*PrivacyPolicyChangedEvent)

func ChangeSMTPSenderAddressMatchesInstanceDomain

func ChangeSMTPSenderAddressMatchesInstanceDomain(smtpSenderAddressMatchesInstanceDomain bool) func(*DomainPolicyChangedEvent)

func ChangeSecondFactorCheckLifetime

func ChangeSecondFactorCheckLifetime(secondFactorCheckLifetime time.Duration) func(*LoginPolicyChangedEvent)

func ChangeShowLockOutFailures

func ChangeShowLockOutFailures(showLockOutFailures bool) func(*LockoutPolicyChangedEvent)

func ChangeSubject

func ChangeSubject(greeting string) func(*MailTextChangedEvent)
func ChangeTOSLink(tosLink string) func(*PrivacyPolicyChangedEvent)

func ChangeTemplate

func ChangeTemplate(template []byte) func(*MailTemplateChangedEvent)

func ChangeText

func ChangeText(text string) func(*MailTextChangedEvent)

func ChangeTitle

func ChangeTitle(title string) func(*MailTextChangedEvent)

func ChangeUserLoginMustBeDomain

func ChangeUserLoginMustBeDomain(userLoginMustBeDomain bool) func(*DomainPolicyChangedEvent)

func ChangeValidateOrgDomains

func ChangeValidateOrgDomains(validateOrgDomain bool) func(*DomainPolicyChangedEvent)

func ChangeWarnColor

func ChangeWarnColor(warnColor string) func(*LabelPolicyChangedEvent)

func ChangeWarnColorDark

func ChangeWarnColorDark(warnColorDark string) func(*LabelPolicyChangedEvent)

func CustomTextRemovedEventMapper

func CustomTextRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func CustomTextSetEventMapper

func CustomTextSetEventMapper(event *repository.Event) (eventstore.Event, error)

func CustomTextTemplateRemovedEventMapper

func CustomTextTemplateRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func DomainPolicyAddedEventMapper

func DomainPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func DomainPolicyChangedEventMapper

func DomainPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func DomainPolicyRemovedEventMapper

func DomainPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func IdentityProviderAddedEventMapper

func IdentityProviderAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func IdentityProviderCascadeRemovedEventMapper

func IdentityProviderCascadeRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func IdentityProviderRemovedEventMapper

func IdentityProviderRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyActivatedEventMapper

func LabelPolicyActivatedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyAddedEventMapper

func LabelPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyAssetsRemovedEventMapper

func LabelPolicyAssetsRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyChangedEventMapper

func LabelPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyFontAddedEventMapper

func LabelPolicyFontAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyFontRemovedEventMapper

func LabelPolicyFontRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyIconAddedEventMapper

func LabelPolicyIconAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyIconDarkAddedEventMapper

func LabelPolicyIconDarkAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyIconDarkRemovedEventMapper

func LabelPolicyIconDarkRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyIconRemovedEventMapper

func LabelPolicyIconRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyLogoAddedEventMapper

func LabelPolicyLogoAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyLogoDarkAddedEventMapper

func LabelPolicyLogoDarkAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyLogoDarkRemovedEventMapper

func LabelPolicyLogoDarkRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyLogoRemovedEventMapper

func LabelPolicyLogoRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LabelPolicyRemovedEventMapper

func LabelPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LockoutPolicyAddedEventMapper

func LockoutPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LockoutPolicyChangedEventMapper

func LockoutPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func LockoutPolicyRemovedEventMapper

func LockoutPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func LoginPolicyAddedEventMapper

func LoginPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func LoginPolicyChangedEventMapper

func LoginPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func LoginPolicyRemovedEventMapper

func LoginPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTemplateAddedEventMapper

func MailTemplateAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTemplateChangedEventMapper

func MailTemplateChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTemplateRemovedEventMapper

func MailTemplateRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTextAddedEventMapper

func MailTextAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTextChangedEventMapper

func MailTextChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func MailTextRemovedEventMapper

func MailTextRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func MultiFactorAddedEventMapper

func MultiFactorAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func MultiFactorRemovedEventMapper

func MultiFactorRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func NewAddMailTextUniqueConstraint

func NewAddMailTextUniqueConstraint(aggregateID, mailTextType, langugage string) *eventstore.EventUniqueConstraint

func NewRemoveMailTextUniqueConstraint

func NewRemoveMailTextUniqueConstraint(aggregateID, mailTextType, langugage string) *eventstore.EventUniqueConstraint

func PasswordAgePolicyAddedEventMapper

func PasswordAgePolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func PasswordAgePolicyChangedEventMapper

func PasswordAgePolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func PasswordAgePolicyRemovedEventMapper

func PasswordAgePolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func PasswordComplexityPolicyAddedEventMapper

func PasswordComplexityPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func PasswordComplexityPolicyChangedEventMapper

func PasswordComplexityPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func PasswordComplexityPolicyRemovedEventMapper

func PasswordComplexityPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func PrivacyPolicyAddedEventMapper

func PrivacyPolicyAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func PrivacyPolicyChangedEventMapper

func PrivacyPolicyChangedEventMapper(event *repository.Event) (eventstore.Event, error)

func PrivacyPolicyRemovedEventMapper

func PrivacyPolicyRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

func SecondFactorAddedEventMapper

func SecondFactorAddedEventMapper(event *repository.Event) (eventstore.Event, error)

func SecondFactorRemovedEventMapper

func SecondFactorRemovedEventMapper(event *repository.Event) (eventstore.Event, error)

Types

type CustomTextRemovedEvent

type CustomTextRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Key      string       `json:"key,omitempty"`
	Language language.Tag `json:"language,omitempty"`
}

func NewCustomTextRemovedEvent

func NewCustomTextRemovedEvent(base *eventstore.BaseEvent, template, key string, language language.Tag) *CustomTextRemovedEvent

func (*CustomTextRemovedEvent) Data

func (e *CustomTextRemovedEvent) Data() interface{}

func (*CustomTextRemovedEvent) UniqueConstraints

func (e *CustomTextRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type CustomTextSetEvent

type CustomTextSetEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Key      string       `json:"key,omitempty"`
	Language language.Tag `json:"language,omitempty"`
	Text     string       `json:"text,omitempty"`
}

func NewCustomTextSetEvent

func NewCustomTextSetEvent(
	base *eventstore.BaseEvent,
	template,
	key,
	text string,
	language language.Tag,
) *CustomTextSetEvent

func (*CustomTextSetEvent) Data

func (e *CustomTextSetEvent) Data() interface{}

func (*CustomTextSetEvent) UniqueConstraints

func (e *CustomTextSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type CustomTextTemplateRemovedEvent

type CustomTextTemplateRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template string       `json:"template,omitempty"`
	Language language.Tag `json:"language,omitempty"`
}

func NewCustomTextTemplateRemovedEvent

func NewCustomTextTemplateRemovedEvent(base *eventstore.BaseEvent, template string, language language.Tag) *CustomTextTemplateRemovedEvent

func (*CustomTextTemplateRemovedEvent) Data

func (e *CustomTextTemplateRemovedEvent) Data() interface{}

func (*CustomTextTemplateRemovedEvent) UniqueConstraints

type DomainPolicyAddedEvent

type DomainPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserLoginMustBeDomain                  bool `json:"userLoginMustBeDomain,omitempty"`
	ValidateOrgDomains                     bool `json:"validateOrgDomains,omitempty"`
	SMTPSenderAddressMatchesInstanceDomain bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
}

func NewDomainPolicyAddedEvent

func NewDomainPolicyAddedEvent(
	base *eventstore.BaseEvent,
	userLoginMustBeDomain,
	validateOrgDomains,
	smtpSenderAddressMatchesInstanceDomain bool,
) *DomainPolicyAddedEvent

func (*DomainPolicyAddedEvent) Data

func (e *DomainPolicyAddedEvent) Data() interface{}

func (*DomainPolicyAddedEvent) UniqueConstraints

func (e *DomainPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type DomainPolicyChangedEvent

type DomainPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	UserLoginMustBeDomain                  *bool `json:"userLoginMustBeDomain,omitempty"`
	ValidateOrgDomains                     *bool `json:"validateOrgDomains,omitempty"`
	SMTPSenderAddressMatchesInstanceDomain *bool `json:"smtpSenderAddressMatchesInstanceDomain,omitempty"`
}

func NewDomainPolicyChangedEvent

func NewDomainPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []DomainPolicyChanges,
) (*DomainPolicyChangedEvent, error)

func (*DomainPolicyChangedEvent) Data

func (e *DomainPolicyChangedEvent) Data() interface{}

func (*DomainPolicyChangedEvent) UniqueConstraints

func (e *DomainPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type DomainPolicyChanges

type DomainPolicyChanges func(*DomainPolicyChangedEvent)

type DomainPolicyRemovedEvent

type DomainPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewDomainPolicyRemovedEvent

func NewDomainPolicyRemovedEvent(base *eventstore.BaseEvent) *DomainPolicyRemovedEvent

func (*DomainPolicyRemovedEvent) Data

func (e *DomainPolicyRemovedEvent) Data() interface{}

func (*DomainPolicyRemovedEvent) UniqueConstraints

func (e *DomainPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type IdentityProviderAddedEvent

type IdentityProviderAddedEvent struct {
	eventstore.BaseEvent

	IDPConfigID     string                      `json:"idpConfigId,omitempty"`
	IDPProviderType domain.IdentityProviderType `json:"idpProviderType,omitempty"`
}

func NewIdentityProviderAddedEvent

func NewIdentityProviderAddedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
	idpProviderType domain.IdentityProviderType,
) *IdentityProviderAddedEvent

func (*IdentityProviderAddedEvent) Data

func (e *IdentityProviderAddedEvent) Data() interface{}

func (*IdentityProviderAddedEvent) UniqueConstraints

type IdentityProviderCascadeRemovedEvent

type IdentityProviderCascadeRemovedEvent struct {
	eventstore.BaseEvent

	IDPConfigID string `json:"idpConfigId"`
}

func NewIdentityProviderCascadeRemovedEvent

func NewIdentityProviderCascadeRemovedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
) *IdentityProviderCascadeRemovedEvent

func (*IdentityProviderCascadeRemovedEvent) Data

func (e *IdentityProviderCascadeRemovedEvent) Data() interface{}

func (*IdentityProviderCascadeRemovedEvent) UniqueConstraints

type IdentityProviderRemovedEvent

type IdentityProviderRemovedEvent struct {
	eventstore.BaseEvent

	IDPConfigID string `json:"idpConfigId"`
}

func NewIdentityProviderRemovedEvent

func NewIdentityProviderRemovedEvent(
	base *eventstore.BaseEvent,
	idpConfigID string,
) *IdentityProviderRemovedEvent

func (*IdentityProviderRemovedEvent) Data

func (e *IdentityProviderRemovedEvent) Data() interface{}

func (*IdentityProviderRemovedEvent) UniqueConstraints

type LabelPolicyActivatedEvent

type LabelPolicyActivatedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyActivatedEvent

func NewLabelPolicyActivatedEvent(base *eventstore.BaseEvent) *LabelPolicyActivatedEvent

func (*LabelPolicyActivatedEvent) Data

func (e *LabelPolicyActivatedEvent) Data() interface{}

func (*LabelPolicyActivatedEvent) UniqueConstraints

type LabelPolicyAddedEvent

type LabelPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PrimaryColor        string `json:"primaryColor,omitempty"`
	BackgroundColor     string `json:"backgroundColor,omitempty"`
	WarnColor           string `json:"warnColor,omitempty"`
	FontColor           string `json:"fontColor,omitempty"`
	PrimaryColorDark    string `json:"primaryColorDark,omitempty"`
	BackgroundColorDark string `json:"backgroundColorDark,omitempty"`
	WarnColorDark       string `json:"warnColorDark,omitempty"`
	FontColorDark       string `json:"fontColorDark,omitempty"`
	HideLoginNameSuffix bool   `json:"hideLoginNameSuffix,omitempty"`
	ErrorMsgPopup       bool   `json:"errorMsgPopup,omitempty"`
	DisableWatermark    bool   `json:"disableMsgPopup,omitempty"`
}

func NewLabelPolicyAddedEvent

func NewLabelPolicyAddedEvent(
	base *eventstore.BaseEvent,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
) *LabelPolicyAddedEvent

func (*LabelPolicyAddedEvent) Data

func (e *LabelPolicyAddedEvent) Data() interface{}

func (*LabelPolicyAddedEvent) UniqueConstraints

func (e *LabelPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LabelPolicyAssetsRemovedEvent

type LabelPolicyAssetsRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyAssetsRemovedEvent

func NewLabelPolicyAssetsRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyAssetsRemovedEvent

func (*LabelPolicyAssetsRemovedEvent) Data

func (e *LabelPolicyAssetsRemovedEvent) Data() interface{}

func (*LabelPolicyAssetsRemovedEvent) UniqueConstraints

type LabelPolicyChangedEvent

type LabelPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	PrimaryColor        *string `json:"primaryColor,omitempty"`
	BackgroundColor     *string `json:"backgroundColor,omitempty"`
	WarnColor           *string `json:"warnColor,omitempty"`
	FontColor           *string `json:"fontColor,omitempty"`
	PrimaryColorDark    *string `json:"primaryColorDark,omitempty"`
	BackgroundColorDark *string `json:"backgroundColorDark,omitempty"`
	WarnColorDark       *string `json:"warnColorDark,omitempty"`
	FontColorDark       *string `json:"fontColorDark,omitempty"`
	HideLoginNameSuffix *bool   `json:"hideLoginNameSuffix,omitempty"`
	ErrorMsgPopup       *bool   `json:"errorMsgPopup,omitempty"`
	DisableWatermark    *bool   `json:"disableWatermark,omitempty"`
}

func NewLabelPolicyChangedEvent

func NewLabelPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LabelPolicyChanges,
) (*LabelPolicyChangedEvent, error)

func (*LabelPolicyChangedEvent) Data

func (e *LabelPolicyChangedEvent) Data() interface{}

func (*LabelPolicyChangedEvent) UniqueConstraints

func (e *LabelPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LabelPolicyChanges

type LabelPolicyChanges func(*LabelPolicyChangedEvent)

type LabelPolicyFontAddedEvent

type LabelPolicyFontAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyFontAddedEvent

func NewLabelPolicyFontAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyFontAddedEvent

func (*LabelPolicyFontAddedEvent) Data

func (e *LabelPolicyFontAddedEvent) Data() interface{}

func (*LabelPolicyFontAddedEvent) UniqueConstraints

type LabelPolicyFontRemovedEvent

type LabelPolicyFontRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyFontRemovedEvent

func NewLabelPolicyFontRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyFontRemovedEvent

func (*LabelPolicyFontRemovedEvent) Data

func (e *LabelPolicyFontRemovedEvent) Data() interface{}

func (*LabelPolicyFontRemovedEvent) UniqueConstraints

type LabelPolicyIconAddedEvent

type LabelPolicyIconAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyIconAddedEvent

func NewLabelPolicyIconAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconAddedEvent

func (*LabelPolicyIconAddedEvent) Data

func (e *LabelPolicyIconAddedEvent) Data() interface{}

func (*LabelPolicyIconAddedEvent) UniqueConstraints

type LabelPolicyIconDarkAddedEvent

type LabelPolicyIconDarkAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyIconDarkAddedEvent

func NewLabelPolicyIconDarkAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconDarkAddedEvent

func (*LabelPolicyIconDarkAddedEvent) Data

func (e *LabelPolicyIconDarkAddedEvent) Data() interface{}

func (*LabelPolicyIconDarkAddedEvent) UniqueConstraints

type LabelPolicyIconDarkRemovedEvent

type LabelPolicyIconDarkRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyIconDarkRemovedEvent

func NewLabelPolicyIconDarkRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconDarkRemovedEvent

func (*LabelPolicyIconDarkRemovedEvent) Data

func (e *LabelPolicyIconDarkRemovedEvent) Data() interface{}

func (*LabelPolicyIconDarkRemovedEvent) UniqueConstraints

type LabelPolicyIconRemovedEvent

type LabelPolicyIconRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyIconRemovedEvent

func NewLabelPolicyIconRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyIconRemovedEvent

func (*LabelPolicyIconRemovedEvent) Data

func (e *LabelPolicyIconRemovedEvent) Data() interface{}

func (*LabelPolicyIconRemovedEvent) UniqueConstraints

type LabelPolicyLogoAddedEvent

type LabelPolicyLogoAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyLogoAddedEvent

func NewLabelPolicyLogoAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoAddedEvent

func (*LabelPolicyLogoAddedEvent) Data

func (e *LabelPolicyLogoAddedEvent) Data() interface{}

func (*LabelPolicyLogoAddedEvent) UniqueConstraints

type LabelPolicyLogoDarkAddedEvent

type LabelPolicyLogoDarkAddedEvent struct {
	asset.AddedEvent
}

func NewLabelPolicyLogoDarkAddedEvent

func NewLabelPolicyLogoDarkAddedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoDarkAddedEvent

func (*LabelPolicyLogoDarkAddedEvent) Data

func (e *LabelPolicyLogoDarkAddedEvent) Data() interface{}

func (*LabelPolicyLogoDarkAddedEvent) UniqueConstraints

type LabelPolicyLogoDarkRemovedEvent

type LabelPolicyLogoDarkRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyLogoDarkRemovedEvent

func NewLabelPolicyLogoDarkRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoDarkRemovedEvent

func (*LabelPolicyLogoDarkRemovedEvent) Data

func (e *LabelPolicyLogoDarkRemovedEvent) Data() interface{}

func (*LabelPolicyLogoDarkRemovedEvent) UniqueConstraints

type LabelPolicyLogoRemovedEvent

type LabelPolicyLogoRemovedEvent struct {
	asset.RemovedEvent
}

func NewLabelPolicyLogoRemovedEvent

func NewLabelPolicyLogoRemovedEvent(base *eventstore.BaseEvent, storageKey string) *LabelPolicyLogoRemovedEvent

func (*LabelPolicyLogoRemovedEvent) Data

func (e *LabelPolicyLogoRemovedEvent) Data() interface{}

func (*LabelPolicyLogoRemovedEvent) UniqueConstraints

type LabelPolicyRemovedEvent

type LabelPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLabelPolicyRemovedEvent

func NewLabelPolicyRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyRemovedEvent

func (*LabelPolicyRemovedEvent) Data

func (e *LabelPolicyRemovedEvent) Data() interface{}

func (*LabelPolicyRemovedEvent) UniqueConstraints

func (e *LabelPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LockoutPolicyAddedEvent

type LockoutPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MaxPasswordAttempts uint64 `json:"maxPasswordAttempts,omitempty"`
	ShowLockOutFailures bool   `json:"showLockOutFailures,omitempty"`
}

func NewLockoutPolicyAddedEvent

func NewLockoutPolicyAddedEvent(
	base *eventstore.BaseEvent,
	maxAttempts uint64,
	showLockOutFailures bool,
) *LockoutPolicyAddedEvent

func (*LockoutPolicyAddedEvent) Data

func (e *LockoutPolicyAddedEvent) Data() interface{}

func (*LockoutPolicyAddedEvent) UniqueConstraints

func (e *LockoutPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LockoutPolicyChangedEvent

type LockoutPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MaxPasswordAttempts *uint64 `json:"maxPasswordAttempts,omitempty"`
	ShowLockOutFailures *bool   `json:"showLockOutFailures,omitempty"`
}

func NewLockoutPolicyChangedEvent

func NewLockoutPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LockoutPolicyChanges,
) (*LockoutPolicyChangedEvent, error)

func (*LockoutPolicyChangedEvent) Data

func (e *LockoutPolicyChangedEvent) Data() interface{}

func (*LockoutPolicyChangedEvent) UniqueConstraints

type LockoutPolicyChanges

type LockoutPolicyChanges func(*LockoutPolicyChangedEvent)

type LockoutPolicyRemovedEvent

type LockoutPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLockoutPolicyRemovedEvent

func NewLockoutPolicyRemovedEvent(base *eventstore.BaseEvent) *LockoutPolicyRemovedEvent

func (*LockoutPolicyRemovedEvent) Data

func (e *LockoutPolicyRemovedEvent) Data() interface{}

func (*LockoutPolicyRemovedEvent) UniqueConstraints

type LoginPolicyAddedEvent

type LoginPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	AllowUserNamePassword      bool                    `json:"allowUsernamePassword,omitempty"`
	AllowRegister              bool                    `json:"allowRegister,omitempty"`
	AllowExternalIDP           bool                    `json:"allowExternalIdp,omitempty"`
	ForceMFA                   bool                    `json:"forceMFA,omitempty"`
	HidePasswordReset          bool                    `json:"hidePasswordReset,omitempty"`
	IgnoreUnknownUsernames     bool                    `json:"ignoreUnknownUsernames,omitempty"`
	AllowDomainDiscovery       bool                    `json:"allowDomainDiscovery,omitempty"`
	DisableLoginWithEmail      bool                    `json:"disableLoginWithEmail,omitempty"`
	DisableLoginWithPhone      bool                    `json:"disableLoginWithPhone,omitempty"`
	PasswordlessType           domain.PasswordlessType `json:"passwordlessType,omitempty"`
	DefaultRedirectURI         string                  `json:"defaultRedirectURI,omitempty"`
	PasswordCheckLifetime      time.Duration           `json:"passwordCheckLifetime,omitempty"`
	ExternalLoginCheckLifetime time.Duration           `json:"externalLoginCheckLifetime,omitempty"`
	MFAInitSkipLifetime        time.Duration           `json:"mfaInitSkipLifetime,omitempty"`
	SecondFactorCheckLifetime  time.Duration           `json:"secondFactorCheckLifetime,omitempty"`
	MultiFactorCheckLifetime   time.Duration           `json:"multiFactorCheckLifetime,omitempty"`
}

func NewLoginPolicyAddedEvent

func NewLoginPolicyAddedEvent(
	base *eventstore.BaseEvent,
	allowUserNamePassword,
	allowRegister,
	allowExternalIDP,
	forceMFA,
	hidePasswordReset,
	ignoreUnknownUsernames,
	allowDomainDiscovery,
	disableLoginWithEmail,
	disableLoginWithPhone bool,
	passwordlessType domain.PasswordlessType,
	defaultRedirectURI string,
	passwordCheckLifetime,
	externalLoginCheckLifetime,
	mfaInitSkipLifetime,
	secondFactorCheckLifetime,
	multiFactorCheckLifetime time.Duration,
) *LoginPolicyAddedEvent

func (*LoginPolicyAddedEvent) Data

func (e *LoginPolicyAddedEvent) Data() interface{}

func (*LoginPolicyAddedEvent) UniqueConstraints

func (e *LoginPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LoginPolicyChangedEvent

type LoginPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	AllowUserNamePassword      *bool                    `json:"allowUsernamePassword,omitempty"`
	AllowRegister              *bool                    `json:"allowRegister,omitempty"`
	AllowExternalIDP           *bool                    `json:"allowExternalIdp,omitempty"`
	ForceMFA                   *bool                    `json:"forceMFA,omitempty"`
	HidePasswordReset          *bool                    `json:"hidePasswordReset,omitempty"`
	IgnoreUnknownUsernames     *bool                    `json:"ignoreUnknownUsernames,omitempty"`
	AllowDomainDiscovery       *bool                    `json:"allowDomainDiscovery,omitempty"`
	DisableLoginWithEmail      *bool                    `json:"disableLoginWithEmail,omitempty"`
	DisableLoginWithPhone      *bool                    `json:"disableLoginWithPhone,omitempty"`
	PasswordlessType           *domain.PasswordlessType `json:"passwordlessType,omitempty"`
	DefaultRedirectURI         *string                  `json:"defaultRedirectURI,omitempty"`
	PasswordCheckLifetime      *time.Duration           `json:"passwordCheckLifetime,omitempty"`
	ExternalLoginCheckLifetime *time.Duration           `json:"externalLoginCheckLifetime,omitempty"`
	MFAInitSkipLifetime        *time.Duration           `json:"mfaInitSkipLifetime,omitempty"`
	SecondFactorCheckLifetime  *time.Duration           `json:"secondFactorCheckLifetime,omitempty"`
	MultiFactorCheckLifetime   *time.Duration           `json:"multiFactorCheckLifetime,omitempty"`
}

func NewLoginPolicyChangedEvent

func NewLoginPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []LoginPolicyChanges,
) (*LoginPolicyChangedEvent, error)

func (*LoginPolicyChangedEvent) Data

func (e *LoginPolicyChangedEvent) Data() interface{}

func (*LoginPolicyChangedEvent) UniqueConstraints

func (e *LoginPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type LoginPolicyChanges

type LoginPolicyChanges func(*LoginPolicyChangedEvent)

type LoginPolicyRemovedEvent

type LoginPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewLoginPolicyRemovedEvent

func NewLoginPolicyRemovedEvent(base *eventstore.BaseEvent) *LoginPolicyRemovedEvent

func (*LoginPolicyRemovedEvent) Data

func (e *LoginPolicyRemovedEvent) Data() interface{}

func (*LoginPolicyRemovedEvent) UniqueConstraints

func (e *LoginPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTemplateAddedEvent

type MailTemplateAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template []byte `json:"template,omitempty"`
}

func NewMailTemplateAddedEvent

func NewMailTemplateAddedEvent(
	base *eventstore.BaseEvent,
	template []byte,
) *MailTemplateAddedEvent

func (*MailTemplateAddedEvent) Data

func (e *MailTemplateAddedEvent) Data() interface{}

func (*MailTemplateAddedEvent) UniqueConstraints

func (e *MailTemplateAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTemplateChangedEvent

type MailTemplateChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	Template *[]byte `json:"template,omitempty"`
}

func NewMailTemplateChangedEvent

func NewMailTemplateChangedEvent(
	base *eventstore.BaseEvent,
	changes []MailTemplateChanges,
) (*MailTemplateChangedEvent, error)

func (*MailTemplateChangedEvent) Data

func (e *MailTemplateChangedEvent) Data() interface{}

func (*MailTemplateChangedEvent) UniqueConstraints

func (e *MailTemplateChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTemplateChanges

type MailTemplateChanges func(*MailTemplateChangedEvent)

type MailTemplateRemovedEvent

type MailTemplateRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewMailTemplateRemovedEvent

func NewMailTemplateRemovedEvent(base *eventstore.BaseEvent) *MailTemplateRemovedEvent

func (*MailTemplateRemovedEvent) Data

func (e *MailTemplateRemovedEvent) Data() interface{}

func (*MailTemplateRemovedEvent) UniqueConstraints

func (e *MailTemplateRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTextAddedEvent

type MailTextAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string `json:"mailTextType,omitempty"`
	Language     string `json:"language,omitempty"`
	Title        string `json:"title,omitempty"`
	PreHeader    string `json:"preHeader,omitempty"`
	Subject      string `json:"subject,omitempty"`
	Greeting     string `json:"greeting,omitempty"`
	Text         string `json:"text,omitempty"`
	ButtonText   string `json:"buttonText,omitempty"`
}

func NewMailTextAddedEvent

func NewMailTextAddedEvent(
	base *eventstore.BaseEvent,
	mailTextType,
	language,
	title,
	preHeader,
	subject,
	greeting,
	text,
	buttonText string,
) *MailTextAddedEvent

func (*MailTextAddedEvent) Data

func (e *MailTextAddedEvent) Data() interface{}

func (*MailTextAddedEvent) UniqueConstraints

func (e *MailTextAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTextChangedEvent

type MailTextChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string  `json:"mailTextType,omitempty"`
	Language     string  `json:"language,omitempty"`
	Title        *string `json:"title,omitempty"`
	PreHeader    *string `json:"preHeader,omitempty"`
	Subject      *string `json:"subject,omitempty"`
	Greeting     *string `json:"greeting,omitempty"`
	Text         *string `json:"text,omitempty"`
	ButtonText   *string `json:"buttonText,omitempty"`
}

func NewMailTextChangedEvent

func NewMailTextChangedEvent(
	base *eventstore.BaseEvent,
	mailTextType,
	language string,
	changes []MailTextChanges,
) (*MailTextChangedEvent, error)

func (*MailTextChangedEvent) Data

func (e *MailTextChangedEvent) Data() interface{}

func (*MailTextChangedEvent) UniqueConstraints

func (e *MailTextChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MailTextChanges

type MailTextChanges func(*MailTextChangedEvent)

type MailTextRemovedEvent

type MailTextRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MailTextType string `json:"mailTextType,omitempty"`
	Language     string `json:"language,omitempty"`
}

func NewMailTextRemovedEvent

func NewMailTextRemovedEvent(base *eventstore.BaseEvent, mailTextType, language string) *MailTextRemovedEvent

func (*MailTextRemovedEvent) Data

func (e *MailTextRemovedEvent) Data() interface{}

func (*MailTextRemovedEvent) UniqueConstraints

func (e *MailTextRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MultiFactorAddedEvent

type MultiFactorAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MFAType domain.MultiFactorType `json:"mfaType"`
}

func NewMultiFactorAddedEvent

func NewMultiFactorAddedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.MultiFactorType,
) *MultiFactorAddedEvent

func (*MultiFactorAddedEvent) Data

func (e *MultiFactorAddedEvent) Data() interface{}

func (*MultiFactorAddedEvent) UniqueConstraints

func (e *MultiFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type MultiFactorRemovedEvent

type MultiFactorRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	MFAType              domain.MultiFactorType `json:"mfaType"`
}

func NewMultiFactorRemovedEvent

func NewMultiFactorRemovedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.MultiFactorType,
) *MultiFactorRemovedEvent

func (*MultiFactorRemovedEvent) Data

func (e *MultiFactorRemovedEvent) Data() interface{}

func (*MultiFactorRemovedEvent) UniqueConstraints

func (e *MultiFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type PasswordAgePolicyAddedEvent

type PasswordAgePolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ExpireWarnDays uint64 `json:"expireWarnDays,omitempty"`
	MaxAgeDays     uint64 `json:"maxAgeDays,omitempty"`
}

func NewPasswordAgePolicyAddedEvent

func NewPasswordAgePolicyAddedEvent(
	base *eventstore.BaseEvent,
	expireWarnDays,
	maxAgeDays uint64,
) *PasswordAgePolicyAddedEvent

func (*PasswordAgePolicyAddedEvent) Data

func (e *PasswordAgePolicyAddedEvent) Data() interface{}

func (*PasswordAgePolicyAddedEvent) UniqueConstraints

type PasswordAgePolicyChangedEvent

type PasswordAgePolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	ExpireWarnDays *uint64 `json:"expireWarnDays,omitempty"`
	MaxAgeDays     *uint64 `json:"maxAgeDays,omitempty"`
}

func NewPasswordAgePolicyChangedEvent

func NewPasswordAgePolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []PasswordAgePolicyChanges,
) (*PasswordAgePolicyChangedEvent, error)

func (*PasswordAgePolicyChangedEvent) Data

func (e *PasswordAgePolicyChangedEvent) Data() interface{}

func (*PasswordAgePolicyChangedEvent) UniqueConstraints

type PasswordAgePolicyChanges

type PasswordAgePolicyChanges func(*PasswordAgePolicyChangedEvent)

type PasswordAgePolicyRemovedEvent

type PasswordAgePolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPasswordAgePolicyRemovedEvent

func NewPasswordAgePolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordAgePolicyRemovedEvent

func (*PasswordAgePolicyRemovedEvent) Data

func (e *PasswordAgePolicyRemovedEvent) Data() interface{}

func (*PasswordAgePolicyRemovedEvent) UniqueConstraints

type PasswordComplexityPolicyAddedEvent

type PasswordComplexityPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MinLength    uint64 `json:"minLength,omitempty"`
	HasLowercase bool   `json:"hasLowercase,omitempty"`
	HasUppercase bool   `json:"hasUppercase,omitempty"`
	HasNumber    bool   `json:"hasNumber,omitempty"`
	HasSymbol    bool   `json:"hasSymbol,omitempty"`
}

func NewPasswordComplexityPolicyAddedEvent

func NewPasswordComplexityPolicyAddedEvent(
	base *eventstore.BaseEvent,
	minLength uint64,
	hasLowerCase,
	hasUpperCase,
	hasNumber,
	hasSymbol bool,
) *PasswordComplexityPolicyAddedEvent

func (*PasswordComplexityPolicyAddedEvent) Data

func (e *PasswordComplexityPolicyAddedEvent) Data() interface{}

func (*PasswordComplexityPolicyAddedEvent) UniqueConstraints

type PasswordComplexityPolicyChangedEvent

type PasswordComplexityPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MinLength    *uint64 `json:"minLength,omitempty"`
	HasLowercase *bool   `json:"hasLowercase,omitempty"`
	HasUppercase *bool   `json:"hasUppercase,omitempty"`
	HasNumber    *bool   `json:"hasNumber,omitempty"`
	HasSymbol    *bool   `json:"hasSymbol,omitempty"`
}

func (*PasswordComplexityPolicyChangedEvent) Data

func (e *PasswordComplexityPolicyChangedEvent) Data() interface{}

func (*PasswordComplexityPolicyChangedEvent) UniqueConstraints

type PasswordComplexityPolicyChanges

type PasswordComplexityPolicyChanges func(*PasswordComplexityPolicyChangedEvent)

type PasswordComplexityPolicyRemovedEvent

type PasswordComplexityPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPasswordComplexityPolicyRemovedEvent

func NewPasswordComplexityPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordComplexityPolicyRemovedEvent

func (*PasswordComplexityPolicyRemovedEvent) Data

func (e *PasswordComplexityPolicyRemovedEvent) Data() interface{}

func (*PasswordComplexityPolicyRemovedEvent) UniqueConstraints

type PrivacyPolicyAddedEvent

type PrivacyPolicyAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TOSLink     string `json:"tosLink,omitempty"`
	PrivacyLink string `json:"privacyLink,omitempty"`
	HelpLink    string `json:"helpLink,omitempty"`
}

func NewPrivacyPolicyAddedEvent

func NewPrivacyPolicyAddedEvent(
	base *eventstore.BaseEvent,
	tosLink,
	privacyLink,
	helpLink string,
) *PrivacyPolicyAddedEvent

func (*PrivacyPolicyAddedEvent) Data

func (e *PrivacyPolicyAddedEvent) Data() interface{}

func (*PrivacyPolicyAddedEvent) UniqueConstraints

func (e *PrivacyPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type PrivacyPolicyChangedEvent

type PrivacyPolicyChangedEvent struct {
	eventstore.BaseEvent `json:"-"`

	TOSLink     *string `json:"tosLink,omitempty"`
	PrivacyLink *string `json:"privacyLink,omitempty"`
	HelpLink    *string `json:"helpLink,omitempty"`
}

func NewPrivacyPolicyChangedEvent

func NewPrivacyPolicyChangedEvent(
	base *eventstore.BaseEvent,
	changes []PrivacyPolicyChanges,
) (*PrivacyPolicyChangedEvent, error)

func (*PrivacyPolicyChangedEvent) Data

func (e *PrivacyPolicyChangedEvent) Data() interface{}

func (*PrivacyPolicyChangedEvent) UniqueConstraints

type PrivacyPolicyChanges

type PrivacyPolicyChanges func(*PrivacyPolicyChangedEvent)

type PrivacyPolicyRemovedEvent

type PrivacyPolicyRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
}

func NewPrivacyPolicyRemovedEvent

func NewPrivacyPolicyRemovedEvent(base *eventstore.BaseEvent) *PrivacyPolicyRemovedEvent

func (*PrivacyPolicyRemovedEvent) Data

func (e *PrivacyPolicyRemovedEvent) Data() interface{}

func (*PrivacyPolicyRemovedEvent) UniqueConstraints

type SecondFactorAddedEvent

type SecondFactorAddedEvent struct {
	eventstore.BaseEvent `json:"-"`

	MFAType domain.SecondFactorType `json:"mfaType,omitempty"`
}

func NewSecondFactorAddedEvent

func NewSecondFactorAddedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.SecondFactorType,
) *SecondFactorAddedEvent

func (*SecondFactorAddedEvent) Data

func (e *SecondFactorAddedEvent) Data() interface{}

func (*SecondFactorAddedEvent) UniqueConstraints

func (e *SecondFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

type SecondFactorRemovedEvent

type SecondFactorRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	MFAType              domain.SecondFactorType `json:"mfaType"`
}

func NewSecondFactorRemovedEvent

func NewSecondFactorRemovedEvent(
	base *eventstore.BaseEvent,
	mfaType domain.SecondFactorType,
) *SecondFactorRemovedEvent

func (*SecondFactorRemovedEvent) Data

func (e *SecondFactorRemovedEvent) Data() interface{}

func (*SecondFactorRemovedEvent) UniqueConstraints

func (e *SecondFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL