org

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AggregateType    = "org"
	AggregateVersion = "v1"
)
View Source
const (
	UniqueOrgDomain = "org_domain"

	OrgDomainAddedEventType              = domainEventPrefix + "added"
	OrgDomainVerificationAddedEventType  = domainEventPrefix + "verification.added"
	OrgDomainVerificationFailedEventType = domainEventPrefix + "verification.failed"
	OrgDomainVerifiedEventType           = domainEventPrefix + "verified"
	OrgDomainPrimarySetEventType         = domainEventPrefix + "primary.set"
	OrgDomainRemovedEventType            = domainEventPrefix + "removed"
)
View Source
const (
	IDPConfigAddedEventType       eventstore.EventType = "org.idp.config.added"
	IDPConfigChangedEventType     eventstore.EventType = "org.idp.config.changed"
	IDPConfigRemovedEventType     eventstore.EventType = "org.idp.config.removed"
	IDPConfigDeactivatedEventType eventstore.EventType = "org.idp.config.deactivated"
	IDPConfigReactivatedEventType eventstore.EventType = "org.idp.config.reactivated"
)
View Source
const (
	IDPJWTConfigAddedEventType   eventstore.EventType = "org.idp." + idpconfig.JWTConfigAddedEventType
	IDPJWTConfigChangedEventType eventstore.EventType = "org.idp." + idpconfig.JWTConfigChangedEventType
)
View Source
const (
	IDPOIDCConfigAddedEventType   eventstore.EventType = "org.idp." + idpconfig.OIDCConfigAddedEventType
	IDPOIDCConfigChangedEventType eventstore.EventType = "org.idp." + idpconfig.OIDCConfigChangedEventType
)
View Source
const (
	MetadataSetType        = orgEventTypePrefix + metadata.SetEventType
	MetadataRemovedType    = orgEventTypePrefix + metadata.RemovedEventType
	MetadataRemovedAllType = orgEventTypePrefix + metadata.RemovedAllEventType
)
View Source
const (
	OrgAddedEventType       = orgEventTypePrefix + "added"
	OrgChangedEventType     = orgEventTypePrefix + "changed"
	OrgDeactivatedEventType = orgEventTypePrefix + "deactivated"
	OrgReactivatedEventType = orgEventTypePrefix + "reactivated"
	OrgRemovedEventType     = orgEventTypePrefix + "removed"
)

Variables

View Source
var (
	CustomTextSetEventType             = orgEventTypePrefix + policy.CustomTextSetEventType
	CustomTextRemovedEventType         = orgEventTypePrefix + policy.CustomTextRemovedEventType
	CustomTextTemplateRemovedEventType = orgEventTypePrefix + policy.CustomTextTemplateRemovedEventType
)
View Source
var (
	TriggerActionsSetEventType            = orgEventTypePrefix + flow.TriggerActionsSetEventType
	TriggerActionsCascadeRemovedEventType = orgEventTypePrefix + flow.TriggerActionsCascadeRemovedEventType
	FlowClearedEventType                  = orgEventTypePrefix + flow.FlowClearedEventType
)
View Source
var (
	MemberAddedEventType          = orgEventTypePrefix + member.AddedEventType
	MemberChangedEventType        = orgEventTypePrefix + member.ChangedEventType
	MemberRemovedEventType        = orgEventTypePrefix + member.RemovedEventType
	MemberCascadeRemovedEventType = orgEventTypePrefix + member.CascadeRemovedEventType
)
View Source
var (
	DomainPolicyAddedEventType   = orgEventTypePrefix + policy.DomainPolicyAddedEventType
	DomainPolicyChangedEventType = orgEventTypePrefix + policy.DomainPolicyChangedEventType
	DomainPolicyRemovedEventType = orgEventTypePrefix + policy.DomainPolicyRemovedEventType
)
View Source
var (
	LabelPolicyAddedEventType     = orgEventTypePrefix + policy.LabelPolicyAddedEventType
	LabelPolicyChangedEventType   = orgEventTypePrefix + policy.LabelPolicyChangedEventType
	LabelPolicyActivatedEventType = orgEventTypePrefix + policy.LabelPolicyActivatedEventType
	LabelPolicyRemovedEventType   = orgEventTypePrefix + policy.LabelPolicyRemovedEventType

	LabelPolicyLogoAddedEventType       = orgEventTypePrefix + policy.LabelPolicyLogoAddedEventType
	LabelPolicyLogoRemovedEventType     = orgEventTypePrefix + policy.LabelPolicyLogoRemovedEventType
	LabelPolicyIconAddedEventType       = orgEventTypePrefix + policy.LabelPolicyIconAddedEventType
	LabelPolicyIconRemovedEventType     = orgEventTypePrefix + policy.LabelPolicyIconRemovedEventType
	LabelPolicyLogoDarkAddedEventType   = orgEventTypePrefix + policy.LabelPolicyLogoDarkAddedEventType
	LabelPolicyLogoDarkRemovedEventType = orgEventTypePrefix + policy.LabelPolicyLogoDarkRemovedEventType
	LabelPolicyIconDarkAddedEventType   = orgEventTypePrefix + policy.LabelPolicyIconDarkAddedEventType
	LabelPolicyIconDarkRemovedEventType = orgEventTypePrefix + policy.LabelPolicyIconDarkRemovedEventType

	LabelPolicyFontAddedEventType   = orgEventTypePrefix + policy.LabelPolicyFontAddedEventType
	LabelPolicyFontRemovedEventType = orgEventTypePrefix + policy.LabelPolicyFontRemovedEventType

	LabelPolicyAssetsRemovedEventType = orgEventTypePrefix + policy.LabelPolicyAssetsRemovedEventType
)
View Source
var (
	LoginPolicyAddedEventType   = orgEventTypePrefix + policy.LoginPolicyAddedEventType
	LoginPolicyChangedEventType = orgEventTypePrefix + policy.LoginPolicyChangedEventType
	LoginPolicyRemovedEventType = orgEventTypePrefix + policy.LoginPolicyRemovedEventType
)
View Source
var (
	LoginPolicySecondFactorAddedEventType   = orgEventTypePrefix + policy.LoginPolicySecondFactorAddedEventType
	LoginPolicySecondFactorRemovedEventType = orgEventTypePrefix + policy.LoginPolicySecondFactorRemovedEventType

	LoginPolicyMultiFactorAddedEventType   = orgEventTypePrefix + policy.LoginPolicyMultiFactorAddedEventType
	LoginPolicyMultiFactorRemovedEventType = orgEventTypePrefix + policy.LoginPolicyMultiFactorRemovedEventType
)
View Source
var (
	LoginPolicyIDPProviderAddedEventType          = orgEventTypePrefix + policy.LoginPolicyIDPProviderAddedType
	LoginPolicyIDPProviderRemovedEventType        = orgEventTypePrefix + policy.LoginPolicyIDPProviderRemovedType
	LoginPolicyIDPProviderCascadeRemovedEventType = orgEventTypePrefix + policy.LoginPolicyIDPProviderCascadeRemovedType
)
View Source
var (
	MailTemplateAddedEventType   = orgEventTypePrefix + policy.MailTemplatePolicyAddedEventType
	MailTemplateChangedEventType = orgEventTypePrefix + policy.MailTemplatePolicyChangedEventType
	MailTemplateRemovedEventType = orgEventTypePrefix + policy.MailTemplatePolicyRemovedEventType
)
View Source
var (
	MailTextAddedEventType   = orgEventTypePrefix + policy.MailTextPolicyAddedEventType
	MailTextChangedEventType = orgEventTypePrefix + policy.MailTextPolicyChangedEventType
	MailTextRemovedEventType = orgEventTypePrefix + policy.MailTextPolicyRemovedEventType
)
View Source
var (
	PasswordAgePolicyAddedEventType   = orgEventTypePrefix + policy.PasswordAgePolicyAddedEventType
	PasswordAgePolicyChangedEventType = orgEventTypePrefix + policy.PasswordAgePolicyChangedEventType
	PasswordAgePolicyRemovedEventType = orgEventTypePrefix + policy.PasswordAgePolicyRemovedEventType
)
View Source
var (
	PasswordComplexityPolicyAddedEventType   = orgEventTypePrefix + policy.PasswordComplexityPolicyAddedEventType
	PasswordComplexityPolicyChangedEventType = orgEventTypePrefix + policy.PasswordComplexityPolicyChangedEventType
	PasswordComplexityPolicyRemovedEventType = orgEventTypePrefix + policy.PasswordComplexityPolicyRemovedEventType
)
View Source
var (
	LockoutPolicyAddedEventType   = orgEventTypePrefix + policy.LockoutPolicyAddedEventType
	LockoutPolicyChangedEventType = orgEventTypePrefix + policy.LockoutPolicyChangedEventType
	LockoutPolicyRemovedEventType = orgEventTypePrefix + policy.LockoutPolicyRemovedEventType
)
View Source
var (
	PrivacyPolicyAddedEventType   = orgEventTypePrefix + policy.PrivacyPolicyAddedEventType
	PrivacyPolicyChangedEventType = orgEventTypePrefix + policy.PrivacyPolicyChangedEventType
	PrivacyPolicyRemovedEventType = orgEventTypePrefix + policy.PrivacyPolicyRemovedEventType
)

Functions

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 DomainAddedEventMapper

func DomainAddedEventMapper(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 DomainPrimarySetEventMapper

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

func DomainRemovedEventMapper

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

func DomainVerificationAddedEventMapper

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

func DomainVerificationFailedEventMapper

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

func DomainVerifiedEventMapper

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

func FlowClearedEventMapper

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

func IDPConfigAddedEventMapper

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

func IDPConfigChangedEventMapper

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

func IDPConfigDeactivatedEventMapper

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

func IDPConfigReactivatedEventMapper

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

func IDPConfigRemovedEventMapper

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

func IDPJWTConfigAddedEventMapper

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

func IDPJWTConfigChangedEventMapper

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

func IDPOIDCConfigAddedEventMapper

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

func IDPOIDCConfigChangedEventMapper

func IDPOIDCConfigChangedEventMapper(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 MemberAddedEventMapper

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

func MemberCascadeRemovedEventMapper

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

func MemberChangedEventMapper

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

func MemberRemovedEventMapper

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

func MetadataRemovedAllEventMapper

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

func MetadataRemovedEventMapper

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

func MetadataSetEventMapper

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

func MultiFactorAddedEventEventMapper

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

func MultiFactorRemovedEventEventMapper

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

func NewAddOrgDomainUniqueConstraint

func NewAddOrgDomainUniqueConstraint(orgDomain string) *eventstore.EventUniqueConstraint

func NewAddOrgNameUniqueConstraint

func NewAddOrgNameUniqueConstraint(orgName string) *eventstore.EventUniqueConstraint

func NewRemoveOrgDomainUniqueConstraint

func NewRemoveOrgDomainUniqueConstraint(orgDomain string) *eventstore.EventUniqueConstraint

func NewRemoveOrgNameUniqueConstraint

func NewRemoveOrgNameUniqueConstraint(orgName string) *eventstore.EventUniqueConstraint

func OrgAddedEventMapper

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

func OrgChangedEventMapper

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

func OrgDeactivatedEventMapper

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

func OrgReactivatedEventMapper

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

func OrgRemovedEventMapper

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

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 RegisterEventMappers

func RegisterEventMappers(es *eventstore.Eventstore)

func SecondFactorAddedEventEventMapper

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

func SecondFactorRemovedEventEventMapper

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

func TriggerActionsCascadeRemovedEventMapper

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

func TriggerActionsSetEventMapper

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

Types

type Aggregate

type Aggregate struct {
	eventstore.Aggregate
}

func NewAggregate

func NewAggregate(id string) *Aggregate

type CustomTextRemovedEvent

type CustomTextRemovedEvent struct {
	policy.CustomTextRemovedEvent
}

func NewCustomTextRemovedEvent

func NewCustomTextRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template,
	key string,
	language language.Tag,
) *CustomTextRemovedEvent

type CustomTextSetEvent

type CustomTextSetEvent struct {
	policy.CustomTextSetEvent
}

func NewCustomTextSetEvent

func NewCustomTextSetEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template,
	key,
	text string,
	language language.Tag,
) *CustomTextSetEvent

type CustomTextTemplateRemovedEvent

type CustomTextTemplateRemovedEvent struct {
	policy.CustomTextTemplateRemovedEvent
}

func NewCustomTextTemplateRemovedEvent

func NewCustomTextTemplateRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template string,
	language language.Tag,
) *CustomTextTemplateRemovedEvent

type DomainAddedEvent

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

	Domain string `json:"domain,omitempty"`
}

func NewDomainAddedEvent

func NewDomainAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainAddedEvent

func (*DomainAddedEvent) Data

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

func (*DomainAddedEvent) UniqueConstraints

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

type DomainPolicyAddedEvent

type DomainPolicyAddedEvent struct {
	policy.DomainPolicyAddedEvent
}

func NewDomainPolicyAddedEvent

func NewDomainPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userLoginMustBeDomain,
	validateOrgDomains,
	smtpSenderAddressMatchesInstanceDomain bool,
) *DomainPolicyAddedEvent

type DomainPolicyChangedEvent

type DomainPolicyChangedEvent struct {
	policy.DomainPolicyChangedEvent
}

func NewDomainPolicyChangedEvent

func NewDomainPolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.DomainPolicyChanges,
) (*DomainPolicyChangedEvent, error)

type DomainPolicyRemovedEvent

type DomainPolicyRemovedEvent struct {
	policy.DomainPolicyRemovedEvent
}

func NewDomainPolicyRemovedEvent

func NewDomainPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *DomainPolicyRemovedEvent

type DomainPrimarySetEvent

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

	Domain string `json:"domain,omitempty"`
}

func NewDomainPrimarySetEvent

func NewDomainPrimarySetEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainPrimarySetEvent

func (*DomainPrimarySetEvent) Data

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

func (*DomainPrimarySetEvent) UniqueConstraints

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

type DomainRemovedEvent

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

	Domain string `json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func NewDomainRemovedEvent

func NewDomainRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string, verified bool) *DomainRemovedEvent

func (*DomainRemovedEvent) Data

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

func (*DomainRemovedEvent) UniqueConstraints

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

type DomainVerificationAddedEvent

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

	Domain         string                         `json:"domain,omitempty"`
	ValidationType domain.OrgDomainValidationType `json:"validationType,omitempty"`
	ValidationCode *crypto.CryptoValue            `json:"validationCode,omitempty"`
}

func NewDomainVerificationAddedEvent

func NewDomainVerificationAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	domain string,
	validationType domain.OrgDomainValidationType,
	validationCode *crypto.CryptoValue) *DomainVerificationAddedEvent

func (*DomainVerificationAddedEvent) Data

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

func (*DomainVerificationAddedEvent) UniqueConstraints

type DomainVerificationFailedEvent

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

	Domain string `json:"domain,omitempty"`
}

func NewDomainVerificationFailedEvent

func NewDomainVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerificationFailedEvent

func (*DomainVerificationFailedEvent) Data

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

func (*DomainVerificationFailedEvent) UniqueConstraints

type DomainVerifiedEvent

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

	Domain string `json:"domain,omitempty"`
}

func NewDomainVerifiedEvent

func NewDomainVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerifiedEvent

func (*DomainVerifiedEvent) Data

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

func (*DomainVerifiedEvent) UniqueConstraints

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

type FlowClearedEvent

type FlowClearedEvent struct {
	flow.FlowClearedEvent
}

func NewFlowClearedEvent

func NewFlowClearedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	flowType domain.FlowType,
) *FlowClearedEvent

type IDPConfigAddedEvent

type IDPConfigAddedEvent struct {
	idpconfig.IDPConfigAddedEvent
}

func NewIDPConfigAddedEvent

func NewIDPConfigAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
	configType domain.IDPConfigType,
	stylingType domain.IDPConfigStylingType,
	autoRegister bool,
) *IDPConfigAddedEvent

type IDPConfigChangedEvent

type IDPConfigChangedEvent struct {
	idpconfig.IDPConfigChangedEvent
}

func NewIDPConfigChangedEvent

func NewIDPConfigChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	oldName string,
	changes []idpconfig.IDPConfigChanges,
) (*IDPConfigChangedEvent, error)

type IDPConfigDeactivatedEvent

type IDPConfigDeactivatedEvent struct {
	idpconfig.IDPConfigDeactivatedEvent
}

func NewIDPConfigDeactivatedEvent

func NewIDPConfigDeactivatedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID string,
) *IDPConfigDeactivatedEvent

type IDPConfigReactivatedEvent

type IDPConfigReactivatedEvent struct {
	idpconfig.IDPConfigReactivatedEvent
}

func NewIDPConfigReactivatedEvent

func NewIDPConfigReactivatedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID string,
) *IDPConfigReactivatedEvent

type IDPConfigRemovedEvent

type IDPConfigRemovedEvent struct {
	idpconfig.IDPConfigRemovedEvent
}

func NewIDPConfigRemovedEvent

func NewIDPConfigRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	configID,
	name string,
) *IDPConfigRemovedEvent

type IDPJWTConfigAddedEvent

type IDPJWTConfigAddedEvent struct {
	idpconfig.JWTConfigAddedEvent
}

func NewIDPJWTConfigAddedEvent

func NewIDPJWTConfigAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID,
	jwtEndpoint,
	issuer,
	keysEndpoint,
	headerName string,
) *IDPJWTConfigAddedEvent

type IDPJWTConfigChangedEvent

type IDPJWTConfigChangedEvent struct {
	idpconfig.JWTConfigChangedEvent
}

func NewIDPJWTConfigChangedEvent

func NewIDPJWTConfigChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID string,
	changes []idpconfig.JWTConfigChanges,
) (*IDPJWTConfigChangedEvent, error)

type IDPOIDCConfigAddedEvent

type IDPOIDCConfigAddedEvent struct {
	idpconfig.OIDCConfigAddedEvent
}

func NewIDPOIDCConfigAddedEvent

func NewIDPOIDCConfigAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	clientID,
	idpConfigID,
	issuer,
	authorizationEndpoint,
	tokenEndpoint string,
	clientSecret *crypto.CryptoValue,
	idpDisplayNameMapping,
	userNameMapping domain.OIDCMappingField,
	scopes ...string,
) *IDPOIDCConfigAddedEvent

type IDPOIDCConfigChangedEvent

type IDPOIDCConfigChangedEvent struct {
	idpconfig.OIDCConfigChangedEvent
}

func NewIDPOIDCConfigChangedEvent

func NewIDPOIDCConfigChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID string,
	changes []idpconfig.OIDCConfigChanges,
) (*IDPOIDCConfigChangedEvent, error)

type IdentityProviderAddedEvent

type IdentityProviderAddedEvent struct {
	policy.IdentityProviderAddedEvent
}

func NewIdentityProviderAddedEvent

func NewIdentityProviderAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID string,
	idpProviderType domain.IdentityProviderType,
) *IdentityProviderAddedEvent

type IdentityProviderCascadeRemovedEvent

type IdentityProviderCascadeRemovedEvent struct {
	policy.IdentityProviderCascadeRemovedEvent
}

func NewIdentityProviderCascadeRemovedEvent

func NewIdentityProviderCascadeRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID string,
) *IdentityProviderCascadeRemovedEvent

type IdentityProviderRemovedEvent

type IdentityProviderRemovedEvent struct {
	policy.IdentityProviderRemovedEvent
}

func NewIdentityProviderRemovedEvent

func NewIdentityProviderRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	idpConfigID string,
) *IdentityProviderRemovedEvent

type LabelPolicyActivatedEvent

type LabelPolicyActivatedEvent struct {
	policy.LabelPolicyActivatedEvent
}

func NewLabelPolicyActivatedEvent

func NewLabelPolicyActivatedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *LabelPolicyActivatedEvent

type LabelPolicyAddedEvent

type LabelPolicyAddedEvent struct {
	policy.LabelPolicyAddedEvent
}

func NewLabelPolicyAddedEvent

func NewLabelPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	primaryColor,
	backgroundColor,
	warnColor,
	fontColor,
	primaryColorDark,
	backgroundColorDark,
	warnColorDark,
	fontColorDark string,
	hideLoginNameSuffix,
	errorMsgPopup,
	disableWatermark bool,
) *LabelPolicyAddedEvent

type LabelPolicyAssetsRemovedEvent

type LabelPolicyAssetsRemovedEvent struct {
	policy.LabelPolicyAssetsRemovedEvent
}

func NewLabelPolicyAssetsRemovedEvent

func NewLabelPolicyAssetsRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *LabelPolicyAssetsRemovedEvent

func (*LabelPolicyAssetsRemovedEvent) Data

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

func (*LabelPolicyAssetsRemovedEvent) UniqueConstraints

type LabelPolicyChangedEvent

type LabelPolicyChangedEvent struct {
	policy.LabelPolicyChangedEvent
}

func NewLabelPolicyChangedEvent

func NewLabelPolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.LabelPolicyChanges,
) (*LabelPolicyChangedEvent, error)

type LabelPolicyFontAddedEvent

type LabelPolicyFontAddedEvent struct {
	policy.LabelPolicyFontAddedEvent
}

func NewLabelPolicyFontAddedEvent

func NewLabelPolicyFontAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyFontAddedEvent

type LabelPolicyFontRemovedEvent

type LabelPolicyFontRemovedEvent struct {
	policy.LabelPolicyFontRemovedEvent
}

func NewLabelPolicyFontRemovedEvent

func NewLabelPolicyFontRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyFontRemovedEvent

type LabelPolicyIconAddedEvent

type LabelPolicyIconAddedEvent struct {
	policy.LabelPolicyIconAddedEvent
}

func NewLabelPolicyIconAddedEvent

func NewLabelPolicyIconAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyIconAddedEvent

type LabelPolicyIconDarkAddedEvent

type LabelPolicyIconDarkAddedEvent struct {
	policy.LabelPolicyIconDarkAddedEvent
}

func NewLabelPolicyIconDarkAddedEvent

func NewLabelPolicyIconDarkAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyIconDarkAddedEvent

type LabelPolicyIconDarkRemovedEvent

type LabelPolicyIconDarkRemovedEvent struct {
	policy.LabelPolicyIconDarkRemovedEvent
}

func NewLabelPolicyIconDarkRemovedEvent

func NewLabelPolicyIconDarkRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyIconDarkRemovedEvent

type LabelPolicyIconRemovedEvent

type LabelPolicyIconRemovedEvent struct {
	policy.LabelPolicyIconRemovedEvent
}

func NewLabelPolicyIconRemovedEvent

func NewLabelPolicyIconRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyIconRemovedEvent

type LabelPolicyLogoAddedEvent

type LabelPolicyLogoAddedEvent struct {
	policy.LabelPolicyLogoAddedEvent
}

func NewLabelPolicyLogoAddedEvent

func NewLabelPolicyLogoAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyLogoAddedEvent

type LabelPolicyLogoDarkAddedEvent

type LabelPolicyLogoDarkAddedEvent struct {
	policy.LabelPolicyLogoDarkAddedEvent
}

func NewLabelPolicyLogoDarkAddedEvent

func NewLabelPolicyLogoDarkAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyLogoDarkAddedEvent

type LabelPolicyLogoDarkRemovedEvent

type LabelPolicyLogoDarkRemovedEvent struct {
	policy.LabelPolicyLogoDarkRemovedEvent
}

func NewLabelPolicyLogoDarkRemovedEvent

func NewLabelPolicyLogoDarkRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyLogoDarkRemovedEvent

type LabelPolicyLogoRemovedEvent

type LabelPolicyLogoRemovedEvent struct {
	policy.LabelPolicyLogoRemovedEvent
}

func NewLabelPolicyLogoRemovedEvent

func NewLabelPolicyLogoRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	storageKey string,
) *LabelPolicyLogoRemovedEvent

type LabelPolicyRemovedEvent

type LabelPolicyRemovedEvent struct {
	policy.LabelPolicyRemovedEvent
}

func NewLabelPolicyRemovedEvent

func NewLabelPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *LabelPolicyRemovedEvent

type LockoutPolicyAddedEvent

type LockoutPolicyAddedEvent struct {
	policy.LockoutPolicyAddedEvent
}

func NewLockoutPolicyAddedEvent

func NewLockoutPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	maxAttempts uint64,
	showLockoutFailure bool,
) *LockoutPolicyAddedEvent

type LockoutPolicyChangedEvent

type LockoutPolicyChangedEvent struct {
	policy.LockoutPolicyChangedEvent
}

func NewLockoutPolicyChangedEvent

func NewLockoutPolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.LockoutPolicyChanges,
) (*LockoutPolicyChangedEvent, error)

type LockoutPolicyRemovedEvent

type LockoutPolicyRemovedEvent struct {
	policy.LockoutPolicyRemovedEvent
}

func NewLockoutPolicyRemovedEvent

func NewLockoutPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *LockoutPolicyRemovedEvent

type LoginPolicyAddedEvent

type LoginPolicyAddedEvent struct {
	policy.LoginPolicyAddedEvent
}

func NewLoginPolicyAddedEvent

func NewLoginPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	allowUsernamePassword,
	allowRegister,
	allowExternalIDP,
	forceMFA,
	hidePasswordReset,
	ignoreUnknownUsernames,
	allowDomainDiscovery,
	disableLoginWithEmail,
	disableLoginWithPhone bool,
	passwordlessType domain.PasswordlessType,
	defaultRedirectURI string,
	passwordCheckLifetime,
	externalLoginCheckLifetime,
	mfaInitSkipLifetime,
	secondFactorCheckLifetime,
	multiFactorCheckLifetime time.Duration,
) *LoginPolicyAddedEvent

type LoginPolicyChangedEvent

type LoginPolicyChangedEvent struct {
	policy.LoginPolicyChangedEvent
}

func NewLoginPolicyChangedEvent

func NewLoginPolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.LoginPolicyChanges,
) (*LoginPolicyChangedEvent, error)

type LoginPolicyMultiFactorAddedEvent

type LoginPolicyMultiFactorAddedEvent struct {
	policy.MultiFactorAddedEvent
}

func NewLoginPolicyMultiFactorAddedEvent

func NewLoginPolicyMultiFactorAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mfaType domain.MultiFactorType,
) *LoginPolicyMultiFactorAddedEvent

type LoginPolicyMultiFactorRemovedEvent

type LoginPolicyMultiFactorRemovedEvent struct {
	policy.MultiFactorRemovedEvent
}

func NewLoginPolicyMultiFactorRemovedEvent

func NewLoginPolicyMultiFactorRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mfaType domain.MultiFactorType,
) *LoginPolicyMultiFactorRemovedEvent

type LoginPolicyRemovedEvent

type LoginPolicyRemovedEvent struct {
	policy.LoginPolicyRemovedEvent
}

func NewLoginPolicyRemovedEvent

func NewLoginPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *LoginPolicyRemovedEvent

type LoginPolicySecondFactorAddedEvent

type LoginPolicySecondFactorAddedEvent struct {
	policy.SecondFactorAddedEvent
}

func NewLoginPolicySecondFactorAddedEvent

func NewLoginPolicySecondFactorAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mfaType domain.SecondFactorType,
) *LoginPolicySecondFactorAddedEvent

type LoginPolicySecondFactorRemovedEvent

type LoginPolicySecondFactorRemovedEvent struct {
	policy.SecondFactorRemovedEvent
}

func NewLoginPolicySecondFactorRemovedEvent

func NewLoginPolicySecondFactorRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mfaType domain.SecondFactorType,
) *LoginPolicySecondFactorRemovedEvent

type MailTemplateAddedEvent

type MailTemplateAddedEvent struct {
	policy.MailTemplateAddedEvent
}

func NewMailTemplateAddedEvent

func NewMailTemplateAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	template []byte,
) *MailTemplateAddedEvent

type MailTemplateChangedEvent

type MailTemplateChangedEvent struct {
	policy.MailTemplateChangedEvent
}

func NewMailTemplateChangedEvent

func NewMailTemplateChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.MailTemplateChanges,
) (*MailTemplateChangedEvent, error)

type MailTemplateRemovedEvent

type MailTemplateRemovedEvent struct {
	policy.MailTemplateRemovedEvent
}

func NewMailTemplateRemovedEvent

func NewMailTemplateRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *MailTemplateRemovedEvent

type MailTextAddedEvent

type MailTextAddedEvent struct {
	policy.MailTextAddedEvent
}

func NewMailTextAddedEvent

func NewMailTextAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mailTextType,
	language,
	title,
	preHeader,
	subject,
	greeting,
	text,
	buttonText string,
) *MailTextAddedEvent

type MailTextChangedEvent

type MailTextChangedEvent struct {
	policy.MailTextChangedEvent
}

func NewMailTextChangedEvent

func NewMailTextChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mailTextType,
	language string,
	changes []policy.MailTextChanges,
) (*MailTextChangedEvent, error)

type MailTextRemovedEvent

type MailTextRemovedEvent struct {
	policy.MailTextRemovedEvent
}

func NewMailTextRemovedEvent

func NewMailTextRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	mailTextType,
	language string,
) *MailTextRemovedEvent

type MemberAddedEvent

type MemberAddedEvent struct {
	member.MemberAddedEvent
}

func NewMemberAddedEvent

func NewMemberAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userID string,
	roles ...string,
) *MemberAddedEvent

type MemberCascadeRemovedEvent

type MemberCascadeRemovedEvent struct {
	member.MemberCascadeRemovedEvent
}

func NewMemberCascadeRemovedEvent

func NewMemberCascadeRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userID string,
) *MemberCascadeRemovedEvent

type MemberChangedEvent

type MemberChangedEvent struct {
	member.MemberChangedEvent
}

func NewMemberChangedEvent

func NewMemberChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userID string,
	roles ...string,
) *MemberChangedEvent

type MemberRemovedEvent

type MemberRemovedEvent struct {
	member.MemberRemovedEvent
}

func NewMemberRemovedEvent

func NewMemberRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	userID string,
) *MemberRemovedEvent

type MetadataRemovedAllEvent

type MetadataRemovedAllEvent struct {
	metadata.RemovedAllEvent
}

func NewMetadataRemovedAllEvent

func NewMetadataRemovedAllEvent(ctx context.Context, aggregate *eventstore.Aggregate) *MetadataRemovedAllEvent

type MetadataRemovedEvent

type MetadataRemovedEvent struct {
	metadata.RemovedEvent
}

func NewMetadataRemovedEvent

func NewMetadataRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, key string) *MetadataRemovedEvent

type MetadataSetEvent

type MetadataSetEvent struct {
	metadata.SetEvent
}

func NewMetadataSetEvent

func NewMetadataSetEvent(ctx context.Context, aggregate *eventstore.Aggregate, key string, value []byte) *MetadataSetEvent

type OrgAddedEvent

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

	Name string `json:"name,omitempty"`
}

func NewOrgAddedEvent

func NewOrgAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgAddedEvent

func (*OrgAddedEvent) Data

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

func (*OrgAddedEvent) UniqueConstraints

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

type OrgChangedEvent

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

	Name string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func NewOrgChangedEvent

func NewOrgChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, oldName, newName string) *OrgChangedEvent

func (*OrgChangedEvent) Data

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

func (*OrgChangedEvent) UniqueConstraints

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

type OrgDeactivatedEvent

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

func NewOrgDeactivatedEvent

func NewOrgDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgDeactivatedEvent

func (*OrgDeactivatedEvent) Data

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

func (*OrgDeactivatedEvent) UniqueConstraints

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

type OrgReactivatedEvent

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

func NewOrgReactivatedEvent

func NewOrgReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgReactivatedEvent

func (*OrgReactivatedEvent) Data

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

func (*OrgReactivatedEvent) UniqueConstraints

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

type OrgRemovedEvent

type OrgRemovedEvent struct {
	eventstore.BaseEvent `json:"-"`
	// contains filtered or unexported fields
}

func NewOrgRemovedEvent

func NewOrgRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgRemovedEvent

func (*OrgRemovedEvent) Data

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

func (*OrgRemovedEvent) UniqueConstraints

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

type PasswordAgePolicyAddedEvent

type PasswordAgePolicyAddedEvent struct {
	policy.PasswordAgePolicyAddedEvent
}

func NewPasswordAgePolicyAddedEvent

func NewPasswordAgePolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	expireWarnDays,
	maxAgeDays uint64,
) *PasswordAgePolicyAddedEvent

type PasswordAgePolicyChangedEvent

type PasswordAgePolicyChangedEvent struct {
	policy.PasswordAgePolicyChangedEvent
}

func NewPasswordAgePolicyChangedEvent

func NewPasswordAgePolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.PasswordAgePolicyChanges,
) (*PasswordAgePolicyChangedEvent, error)

type PasswordAgePolicyRemovedEvent

type PasswordAgePolicyRemovedEvent struct {
	policy.PasswordAgePolicyRemovedEvent
}

func NewPasswordAgePolicyRemovedEvent

func NewPasswordAgePolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *PasswordAgePolicyRemovedEvent

type PasswordComplexityPolicyAddedEvent

type PasswordComplexityPolicyAddedEvent struct {
	policy.PasswordComplexityPolicyAddedEvent
}

func NewPasswordComplexityPolicyAddedEvent

func NewPasswordComplexityPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	minLength uint64,
	hasLowercase,
	hasUppercase,
	hasNumber,
	hasSymbol bool,
) *PasswordComplexityPolicyAddedEvent

type PasswordComplexityPolicyChangedEvent

type PasswordComplexityPolicyChangedEvent struct {
	policy.PasswordComplexityPolicyChangedEvent
}

type PasswordComplexityPolicyRemovedEvent

type PasswordComplexityPolicyRemovedEvent struct {
	policy.PasswordComplexityPolicyRemovedEvent
}

func NewPasswordComplexityPolicyRemovedEvent

func NewPasswordComplexityPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *PasswordComplexityPolicyRemovedEvent

type PrivacyPolicyAddedEvent

type PrivacyPolicyAddedEvent struct {
	policy.PrivacyPolicyAddedEvent
}

func NewPrivacyPolicyAddedEvent

func NewPrivacyPolicyAddedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	tosLink,
	privacyLink,
	helpLink string,
) *PrivacyPolicyAddedEvent

type PrivacyPolicyChangedEvent

type PrivacyPolicyChangedEvent struct {
	policy.PrivacyPolicyChangedEvent
}

func NewPrivacyPolicyChangedEvent

func NewPrivacyPolicyChangedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	changes []policy.PrivacyPolicyChanges,
) (*PrivacyPolicyChangedEvent, error)

type PrivacyPolicyRemovedEvent

type PrivacyPolicyRemovedEvent struct {
	policy.PrivacyPolicyRemovedEvent
}

func NewPrivacyPolicyRemovedEvent

func NewPrivacyPolicyRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
) *PrivacyPolicyRemovedEvent

type TriggerActionsCascadeRemovedEvent

type TriggerActionsCascadeRemovedEvent struct {
	flow.TriggerActionsCascadeRemovedEvent
}

func NewTriggerActionsCascadeRemovedEvent

func NewTriggerActionsCascadeRemovedEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	flowType domain.FlowType,
	actionID string,
) *TriggerActionsCascadeRemovedEvent

type TriggerActionsSetEvent

type TriggerActionsSetEvent struct {
	flow.TriggerActionsSetEvent
}

func NewTriggerActionsSetEvent

func NewTriggerActionsSetEvent(
	ctx context.Context,
	aggregate *eventstore.Aggregate,
	flowType domain.FlowType,
	triggerType domain.TriggerType,
	actionIDs []string,
) *TriggerActionsSetEvent

Jump to

Keyboard shortcuts

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