feat: asset storage (#1696)

* feat: remove assets

* feat: minio implementation

* fix: remove assets from tests

* feat: minio implementation

* feat: Env vars

* fix: sprintf

* fix: sprintf

* Update internal/eventstore/repository/repository.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: error handling

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Fabi
2021-05-03 10:15:50 +02:00
committed by GitHub
parent a5c6bf5498
commit 667cc30291
110 changed files with 306 additions and 938 deletions

View File

@@ -42,10 +42,6 @@ func (e *FeaturesSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *FeaturesSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewFeaturesSetEvent(
base *eventstore.BaseEvent,
changes []FeaturesChanges,

View File

@@ -27,10 +27,6 @@ func (e *ProjectSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return nil
}
func (e *ProjectSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIAMProjectSetEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -27,10 +27,6 @@ func (e *GlobalOrgSetEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *GlobalOrgSetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGlobalOrgSetEventEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -52,10 +52,6 @@ func (e *SetupStepEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
}
}
func (e *SetupStepEvent) Assets() []*eventstore.Asset {
return nil
}
func SetupStepMapper(event *repository.Event) (eventstore.EventReader, error) {
step := &SetupStepEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),

View File

@@ -37,10 +37,6 @@ func (e *MigrateUniqueConstraintEvent) UniqueConstraints() []*eventstore.EventUn
return constraints
}
func (e *MigrateUniqueConstraintEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMigrateUniqueConstraintEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -59,10 +59,6 @@ func (e *IDPConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddIDPConfigNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *IDPConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigAddedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigAddedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -99,10 +95,6 @@ func (e *IDPConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
}
}
func (e *IDPConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIDPConfigChangedEvent(
base *eventstore.BaseEvent,
configID,
@@ -175,10 +167,6 @@ func (e *IDPConfigDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *IDPConfigDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigDeactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigDeactivatedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -217,10 +205,6 @@ func (e *IDPConfigReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *IDPConfigReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigReactivatedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigReactivatedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),
@@ -262,10 +246,6 @@ func (e *IDPConfigRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewRemoveIDPConfigNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *IDPConfigRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func IDPConfigRemovedEventMapper(event *repository.Event) (eventstore.EventReader, error) {
e := &IDPConfigRemovedEvent{
BaseEvent: *eventstore.BaseEventFromRepo(event),

View File

@@ -36,10 +36,6 @@ func (e *OIDCConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *OIDCConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigAddedEvent(
base *eventstore.BaseEvent,
clientID,
@@ -98,10 +94,6 @@ func (e *OIDCConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OIDCConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigChangedEvent(
base *eventstore.BaseEvent,
idpConfigID string,

View File

@@ -38,10 +38,6 @@ func (e *AddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint {
return nil
}
func (e *AddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -44,10 +44,6 @@ func (e *MemberAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewAddMemberUniqueConstraint(e.Aggregate().ID, e.UserID)}
}
func (e *MemberAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMemberAddedEvent(
base *eventstore.BaseEvent,
userID string,
@@ -89,10 +85,6 @@ func (e *MemberChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *MemberChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMemberChangedEvent(
base *eventstore.BaseEvent,
userID string,
@@ -132,10 +124,6 @@ func (e *MemberRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewRemoveMemberUniqueConstraint(e.Aggregate().ID, e.UserID)}
}
func (e *MemberRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRemovedEvent(
base *eventstore.BaseEvent,
userID string,

View File

@@ -49,10 +49,6 @@ func (e *DomainAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *DomainAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainAddedEvent {
return &DomainAddedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -92,10 +88,6 @@ func (e *DomainVerificationAddedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *DomainVerificationAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerificationAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -140,10 +132,6 @@ func (e *DomainVerificationFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *DomainVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerificationFailedEvent {
return &DomainVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -181,10 +169,6 @@ func (e *DomainVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddOrgDomainUniqueConstraint(e.Domain)}
}
func (e *DomainVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainVerifiedEvent {
return &DomainVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -222,10 +206,6 @@ func (e *DomainPrimarySetEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *DomainPrimarySetEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainPrimarySetEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string) *DomainPrimarySetEvent {
return &DomainPrimarySetEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -267,10 +247,6 @@ func (e *DomainRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewRemoveOrgDomainUniqueConstraint(e.Domain)}
}
func (e *DomainRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, domain string, verified bool) *DomainRemovedEvent {
return &DomainRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -45,10 +45,6 @@ func (e *OrgAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
return []*eventstore.EventUniqueConstraint{NewAddOrgNameUniqueConstraint(e.Name)}
}
func (e *OrgAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgAddedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgAddedEvent {
return &OrgAddedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -90,10 +86,6 @@ func (e *OrgChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
}
}
func (e *OrgChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, oldName, newName string) *OrgChangedEvent {
return &OrgChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -130,10 +122,6 @@ func (e *OrgDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *OrgDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgDeactivatedEvent {
return &OrgDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -168,10 +156,6 @@ func (e *OrgReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *OrgReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *OrgReactivatedEvent {
return &OrgReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -207,10 +191,6 @@ func (e *OrgRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewRemoveOrgNameUniqueConstraint(e.name)}
}
func (e *OrgRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate, name string) *OrgRemovedEvent {
return &OrgRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -30,10 +30,6 @@ func (e *LabelPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *LabelPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyAddedEvent(
base *eventstore.BaseEvent,
primaryColor,
@@ -78,10 +74,6 @@ func (e *LabelPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LabelPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []LabelPolicyChanges,
@@ -143,10 +135,6 @@ func (e *LabelPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LabelPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLabelPolicyRemovedEvent(base *eventstore.BaseEvent) *LabelPolicyRemovedEvent {
return &LabelPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -33,10 +33,6 @@ func (e *LoginPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *LoginPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyAddedEvent(
base *eventstore.BaseEvent,
allowUserNamePassword,
@@ -89,10 +85,6 @@ func (e *LoginPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LoginPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []LoginPolicyChanges,
@@ -166,10 +158,6 @@ func (e *LoginPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *LoginPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewLoginPolicyRemovedEvent(base *eventstore.BaseEvent) *LoginPolicyRemovedEvent {
return &LoginPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -29,10 +29,6 @@ func (e *MailTemplateAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *MailTemplateAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateAddedEvent(
base *eventstore.BaseEvent,
template []byte,
@@ -70,10 +66,6 @@ func (e *MailTemplateChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *MailTemplateChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateChangedEvent(
base *eventstore.BaseEvent,
changes []MailTemplateChanges,
@@ -123,10 +115,6 @@ func (e *MailTemplateRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *MailTemplateRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTemplateRemovedEvent(base *eventstore.BaseEvent) *MailTemplateRemovedEvent {
return &MailTemplateRemovedEvent{
BaseEvent: *base,

View File

@@ -50,10 +50,6 @@ func (e *MailTextAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return []*eventstore.EventUniqueConstraint{NewAddMailTextUniqueConstraint(e.Aggregate().ResourceOwner, e.MailTextType, e.Language)}
}
func (e *MailTextAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextAddedEvent(
base *eventstore.BaseEvent,
mailTextType,
@@ -112,10 +108,6 @@ func (e *MailTextChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *MailTextChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextChangedEvent(
base *eventstore.BaseEvent,
mailTextType,
@@ -202,10 +194,6 @@ func (e *MailTextRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return []*eventstore.EventUniqueConstraint{NewRemoveMailTextUniqueConstraint(e.Aggregate().ResourceOwner, e.MailTextType, e.Language)}
}
func (e *MailTextRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMailTextRemovedEvent(base *eventstore.BaseEvent, mailTextType, language string) *MailTextRemovedEvent {
return &MailTextRemovedEvent{
BaseEvent: *base,

View File

@@ -55,10 +55,6 @@ func (e *SecondFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *SecondFactorAddedEvent) Assets() []*eventstore.Asset {
return nil
}
type SecondFactorRemovedEvent struct {
eventstore.BaseEvent `json:"-"`
MFAType domain.SecondFactorType `json:"mfaType"`
@@ -95,10 +91,6 @@ func (e *SecondFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *SecondFactorRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
type MultiFactorAddedEvent struct {
eventstore.BaseEvent `json:"-"`
@@ -136,10 +128,6 @@ func (e *MultiFactorAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *MultiFactorAddedEvent) Assets() []*eventstore.Asset {
return nil
}
type MultiFactorRemovedEvent struct {
eventstore.BaseEvent `json:"-"`
MFAType domain.MultiFactorType `json:"mfaType"`
@@ -175,7 +163,3 @@ func (e *MultiFactorRemovedEvent) Data() interface{} {
func (e *MultiFactorRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint {
return nil
}
func (e *MultiFactorRemovedEvent) Assets() []*eventstore.Asset {
return nil
}

View File

@@ -30,10 +30,6 @@ func (e *IdentityProviderAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *IdentityProviderAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderAddedEvent(
base *eventstore.BaseEvent,
idpConfigID string,
@@ -74,10 +70,6 @@ func (e *IdentityProviderRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *IdentityProviderRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderRemovedEvent(
base *eventstore.BaseEvent,
idpConfigID string,
@@ -115,10 +107,6 @@ func (e *IdentityProviderCascadeRemovedEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *IdentityProviderCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewIdentityProviderCascadeRemovedEvent(
base *eventstore.BaseEvent,
idpConfigID string,

View File

@@ -28,10 +28,6 @@ func (e *OrgIAMPolicyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OrgIAMPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyAddedEvent(
base *eventstore.BaseEvent,
userLoginMustBeDomain bool,
@@ -70,10 +66,6 @@ func (e *OrgIAMPolicyChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *OrgIAMPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []OrgIAMPolicyChanges,
@@ -123,10 +115,6 @@ func (e *OrgIAMPolicyRemovedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *OrgIAMPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOrgIAMPolicyRemovedEvent(base *eventstore.BaseEvent) *OrgIAMPolicyRemovedEvent {
return &OrgIAMPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -28,10 +28,6 @@ func (e *PasswordAgePolicyAddedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *PasswordAgePolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyAddedEvent(
base *eventstore.BaseEvent,
expireWarnDays,
@@ -73,10 +69,6 @@ func (e *PasswordAgePolicyChangedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *PasswordAgePolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordAgePolicyChanges,
@@ -132,10 +124,6 @@ func (e *PasswordAgePolicyRemovedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *PasswordAgePolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordAgePolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordAgePolicyRemovedEvent {
return &PasswordAgePolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -32,10 +32,6 @@ func (e *PasswordComplexityPolicyAddedEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *PasswordComplexityPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyAddedEvent(
base *eventstore.BaseEvent,
minLength uint64,
@@ -85,10 +81,6 @@ func (e *PasswordComplexityPolicyChangedEvent) UniqueConstraints() []*eventstore
return nil
}
func (e *PasswordComplexityPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordComplexityPolicyChanges,
@@ -162,10 +154,6 @@ func (e *PasswordComplexityPolicyRemovedEvent) UniqueConstraints() []*eventstore
return nil
}
func (e *PasswordComplexityPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordComplexityPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordComplexityPolicyRemovedEvent {
return &PasswordComplexityPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -29,10 +29,6 @@ func (e *PasswordLockoutPolicyAddedEvent) UniqueConstraints() []*eventstore.Even
return nil
}
func (e *PasswordLockoutPolicyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyAddedEvent(
base *eventstore.BaseEvent,
maxAttempts uint64,
@@ -74,10 +70,6 @@ func (e *PasswordLockoutPolicyChangedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *PasswordLockoutPolicyChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyChangedEvent(
base *eventstore.BaseEvent,
changes []PasswordLockoutPolicyChanges,
@@ -133,10 +125,6 @@ func (e *PasswordLockoutPolicyRemovedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *PasswordLockoutPolicyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewPasswordLockoutPolicyRemovedEvent(base *eventstore.BaseEvent) *PasswordLockoutPolicyRemovedEvent {
return &PasswordLockoutPolicyRemovedEvent{
BaseEvent: *base,

View File

@@ -36,10 +36,6 @@ func (e *APIConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *APIConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -90,10 +86,6 @@ func (e *APIConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *APIConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -154,10 +146,6 @@ func (e *APIConfigSecretChangedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *APIConfigSecretChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -202,10 +190,6 @@ func (e *APIConfigSecretCheckSucceededEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *APIConfigSecretCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -248,10 +232,6 @@ func (e *APIConfigSecretCheckFailedEvent) UniqueConstraints() []*eventstore.Even
return nil
}
func (e *APIConfigSecretCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAPIConfigSecretCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,10 +48,6 @@ func (e *ApplicationAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewAddApplicationUniqueConstraint(e.Name, e.Aggregate().ID)}
}
func (e *ApplicationAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -101,10 +97,6 @@ func (e *ApplicationChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
}
}
func (e *ApplicationChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -151,10 +143,6 @@ func (e *ApplicationDeactivatedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *ApplicationDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationDeactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -197,10 +185,6 @@ func (e *ApplicationReactivatedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *ApplicationReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationReactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -244,10 +228,6 @@ func (e *ApplicationRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return []*eventstore.EventUniqueConstraint{NewRemoveApplicationUniqueConstraint(e.name, e.Aggregate().ID)}
}
func (e *ApplicationRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -50,10 +50,6 @@ func (e *GrantAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewAddProjectGrantUniqueConstraint(e.GrantedOrgID, e.Aggregate().ID)}
}
func (e *GrantAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -101,10 +97,6 @@ func (e *GrantChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *GrantChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -150,10 +142,6 @@ func (e *GrantCascadeChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *GrantCascadeChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantCascadeChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -198,10 +186,6 @@ func (e *GrantDeactivateEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *GrantDeactivateEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantDeactivateEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -244,10 +228,6 @@ func (e *GrantReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *GrantReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantReactivatedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -291,10 +271,6 @@ func (e *GrantRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewRemoveProjectGrantUniqueConstraint(e.grantedOrgID, e.Aggregate().ID)}
}
func (e *GrantRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewGrantRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,10 +48,6 @@ func (e *GrantMemberAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewAddProjectGrantMemberUniqueConstraint(e.Aggregate().ID, e.UserID, e.GrantID)}
}
func (e *GrantMemberAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -100,10 +96,6 @@ func (e *GrantMemberChangedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *GrantMemberChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -151,10 +143,6 @@ func (e *GrantMemberRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return []*eventstore.EventUniqueConstraint{NewRemoveProjectGrantMemberUniqueConstraint(e.Aggregate().ID, e.UserID, e.GrantID)}
}
func (e *GrantMemberRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectGrantMemberRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -36,10 +36,6 @@ func (e *ApplicationKeyAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *ApplicationKeyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationKeyAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -92,10 +88,6 @@ func (e *ApplicationKeyRemovedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *ApplicationKeyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewApplicationKeyRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -49,10 +49,6 @@ func (e *OIDCConfigAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *OIDCConfigAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -138,10 +134,6 @@ func (e *OIDCConfigChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *OIDCConfigChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -274,10 +266,6 @@ func (e *OIDCConfigSecretChangedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *OIDCConfigSecretChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -322,10 +310,6 @@ func (e *OIDCConfigSecretCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *OIDCConfigSecretCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -368,10 +352,6 @@ func (e *OIDCConfigSecretCheckFailedEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *OIDCConfigSecretCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewOIDCConfigSecretCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -48,10 +48,6 @@ func (e *ProjectAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewAddProjectNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *ProjectAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -103,10 +99,6 @@ func (e *ProjectChangeEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *ProjectChangeEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectChangeEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -175,10 +167,6 @@ func (e *ProjectDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *ProjectDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *ProjectDeactivatedEvent {
return &ProjectDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -207,10 +195,6 @@ func (e *ProjectReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *ProjectReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *ProjectReactivatedEvent {
return &ProjectReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -241,10 +225,6 @@ func (e *ProjectRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewRemoveProjectNameUniqueConstraint(e.Name, e.Aggregate().ResourceOwner)}
}
func (e *ProjectRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewProjectRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -47,10 +47,6 @@ func (e *RoleAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstraint
return []*eventstore.EventUniqueConstraint{NewAddProjectRoleUniqueConstraint(e.Key, e.Aggregate().ID)}
}
func (e *RoleAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -99,10 +95,6 @@ func (e *RoleChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return nil
}
func (e *RoleChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -172,10 +164,6 @@ func (e *RoleRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewRemoveProjectRoleUniqueConstraint(e.Key, e.Aggregate().ID)}
}
func (e *RoleRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewRoleRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -59,10 +59,6 @@ func (e *HumanAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *HumanAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func (e *HumanAddedEvent) AddAddressData(
country,
locality,
@@ -170,10 +166,6 @@ func (e *HumanRegisteredEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *HumanRegisteredEvent) Assets() []*eventstore.Asset {
return nil
}
func (e *HumanRegisteredEvent) AddAddressData(
country,
locality,
@@ -260,10 +252,6 @@ func (e *HumanInitialCodeAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanInitialCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitialCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -305,10 +293,6 @@ func (e *HumanInitialCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanInitialCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitialCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitialCodeSentEvent {
return &HumanInitialCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -337,10 +321,6 @@ func (e *HumanInitializedCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *HumanInitializedCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitializedCheckSucceededEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckSucceededEvent {
return &HumanInitializedCheckSucceededEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -369,10 +349,6 @@ func (e *HumanInitializedCheckFailedEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanInitializedCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanInitializedCheckFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanInitializedCheckFailedEvent {
return &HumanInitializedCheckFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -403,10 +379,6 @@ func (e *HumanSignedOutEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *HumanSignedOutEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanSignedOutEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -32,10 +32,6 @@ func (e *HumanAddressChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanAddressChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewAddressChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -34,10 +34,6 @@ func (e *HumanEmailChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanEmailChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, emailAddress string) *HumanEmailChangedEvent {
return &HumanEmailChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -75,10 +71,6 @@ func (e *HumanEmailVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanEmailVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerifiedEvent {
return &HumanEmailVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -109,10 +101,6 @@ func (e *HumanEmailVerificationFailedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *HumanEmailVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailVerificationFailedEvent {
return &HumanEmailVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -144,10 +132,6 @@ func (e *HumanEmailCodeAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanEmailCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -188,10 +172,6 @@ func (e *HumanEmailCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanEmailCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanEmailCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanEmailCodeSentEvent {
return &HumanEmailCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -50,10 +50,6 @@ func (e *HumanExternalIDPAddedEvent) UniqueConstraints() []*eventstore.EventUniq
return []*eventstore.EventUniqueConstraint{NewAddExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -101,10 +97,6 @@ func (e *HumanExternalIDPRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return []*eventstore.EventUniqueConstraint{NewRemoveExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -150,10 +142,6 @@ func (e *HumanExternalIDPCascadeRemovedEvent) UniqueConstraints() []*eventstore.
return []*eventstore.EventUniqueConstraint{NewRemoveExternalIDPUniqueConstraint(e.IDPConfigID, e.ExternalUserID)}
}
func (e *HumanExternalIDPCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPCascadeRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -197,10 +185,6 @@ func (e *HumanExternalIDPCheckSucceededEvent) UniqueConstraints() []*eventstore.
return nil
}
func (e *HumanExternalIDPCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanExternalIDPCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -24,10 +24,6 @@ func (e *HumanMFAInitSkippedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanMFAInitSkippedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanMFAInitSkippedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanMFAInitSkippedEvent {
return &HumanMFAInitSkippedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -33,10 +33,6 @@ func (e *HumanOTPAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
return nil
}
func (e *HumanOTPAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -76,10 +72,6 @@ func (e *HumanOTPVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *HumanOTPVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPVerifiedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -113,10 +105,6 @@ func (e *HumanOTPRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *HumanOTPRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -149,10 +137,6 @@ func (e *HumanOTPCheckSucceededEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *HumanOTPCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -192,10 +176,6 @@ func (e *HumanOTPCheckFailedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanOTPCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanOTPCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -24,10 +24,6 @@ func (e *HumanWebAuthNAddedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanWebAuthNAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNAddedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID,
@@ -72,10 +68,6 @@ func (e *HumanWebAuthNVerifiedEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanWebAuthNVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNVerifiedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID,
@@ -126,10 +118,6 @@ func (e *HumanWebAuthNSignCountChangedEvent) UniqueConstraints() []*eventstore.E
return nil
}
func (e *HumanWebAuthNSignCountChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNSignCountChangedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID string,
@@ -168,10 +156,6 @@ func (e *HumanWebAuthNRemovedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanWebAuthNRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNRemovedEvent(
base *eventstore.BaseEvent,
webAuthNTokenID string,
@@ -210,10 +194,6 @@ func (e *HumanWebAuthNBeginLoginEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *HumanWebAuthNBeginLoginEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNBeginLoginEvent(base *eventstore.BaseEvent, challenge string, allowedCredentialIDs [][]byte, userVerification domain.UserVerificationRequirement, info *AuthRequestInfo) *HumanWebAuthNBeginLoginEvent {
return &HumanWebAuthNBeginLoginEvent{
BaseEvent: *base,
@@ -248,10 +228,6 @@ func (e *HumanWebAuthNCheckSucceededEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanWebAuthNCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNCheckSucceededEvent(
base *eventstore.BaseEvent,
info *AuthRequestInfo) *HumanWebAuthNCheckSucceededEvent {
@@ -285,10 +261,6 @@ func (e *HumanWebAuthNCheckFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *HumanWebAuthNCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanWebAuthNCheckFailedEvent(
base *eventstore.BaseEvent,
info *AuthRequestInfo) *HumanWebAuthNCheckFailedEvent {

View File

@@ -37,10 +37,6 @@ func (e *HumanPasswordChangedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *HumanPasswordChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -88,10 +84,6 @@ func (e *HumanPasswordCodeAddedEvent) UniqueConstraints() []*eventstore.EventUni
return nil
}
func (e *HumanPasswordCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -135,10 +127,6 @@ func (e *HumanPasswordCodeSentEvent) UniqueConstraints() []*eventstore.EventUniq
return nil
}
func (e *HumanPasswordCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPasswordCodeSentEvent {
return &HumanPasswordCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -168,10 +156,6 @@ func (e *HumanPasswordCheckSucceededEvent) UniqueConstraints() []*eventstore.Eve
return nil
}
func (e *HumanPasswordCheckSucceededEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCheckSucceededEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -212,10 +196,6 @@ func (e *HumanPasswordCheckFailedEvent) UniqueConstraints() []*eventstore.EventU
return nil
}
func (e *HumanPasswordCheckFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPasswordCheckFailedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -35,10 +35,6 @@ func (e *HumanPhoneChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanPhoneChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneChangedEvent(ctx context.Context, aggregate *eventstore.Aggregate, phone string) *HumanPhoneChangedEvent {
return &HumanPhoneChangedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -74,10 +70,6 @@ func (e *HumanPhoneRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *HumanPhoneRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneRemovedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneRemovedEvent {
return &HumanPhoneRemovedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -108,10 +100,6 @@ func (e *HumanPhoneVerifiedEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanPhoneVerifiedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneVerifiedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerifiedEvent {
return &HumanPhoneVerifiedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -141,10 +129,6 @@ func (e *HumanPhoneVerificationFailedEvent) UniqueConstraints() []*eventstore.Ev
return nil
}
func (e *HumanPhoneVerificationFailedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneVerificationFailedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneVerificationFailedEvent {
return &HumanPhoneVerificationFailedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -176,10 +160,6 @@ func (e *HumanPhoneCodeAddedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanPhoneCodeAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneCodeAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -221,10 +201,6 @@ func (e *HumanPhoneCodeSentEvent) UniqueConstraints() []*eventstore.EventUniqueC
return nil
}
func (e *HumanPhoneCodeSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanPhoneCodeSentEvent(ctx context.Context, aggregate *eventstore.Aggregate) *HumanPhoneCodeSentEvent {
return &HumanPhoneCodeSentEvent{
BaseEvent: *eventstore.NewBaseEventForPush(

View File

@@ -35,10 +35,6 @@ func (e *HumanProfileChangedEvent) UniqueConstraints() []*eventstore.EventUnique
return nil
}
func (e *HumanProfileChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewHumanProfileChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -33,10 +33,6 @@ func (e *MachineAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return []*eventstore.EventUniqueConstraint{NewAddUsernameUniqueConstraint(e.UserName, e.Aggregate().ResourceOwner, e.userLoginMustBeDomain)}
}
func (e *MachineAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -85,10 +81,6 @@ func (e *MachineChangedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *MachineChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -34,10 +34,6 @@ func (e *MachineKeyAddedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *MachineKeyAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineKeyAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -85,10 +81,6 @@ func (e *MachineKeyRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *MachineKeyRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewMachineKeyRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -57,10 +57,6 @@ func (e *UserLockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrain
return nil
}
func (e *UserLockedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserLockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserLockedEvent {
return &UserLockedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -89,10 +85,6 @@ func (e *UserUnlockedEvent) UniqueConstraints() []*eventstore.EventUniqueConstra
return nil
}
func (e *UserUnlockedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserUnlockedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserUnlockedEvent {
return &UserUnlockedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -121,10 +113,6 @@ func (e *UserDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *UserDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserDeactivatedEvent {
return &UserDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -153,10 +141,6 @@ func (e *UserReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
return nil
}
func (e *UserReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserReactivatedEvent {
return &UserReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -188,10 +172,6 @@ func (e *UserRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueConstrai
return []*eventstore.EventUniqueConstraint{NewRemoveUsernameUniqueConstraint(e.userName, e.Aggregate().ResourceOwner, e.loginMustBeDomain)}
}
func (e *UserRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -235,10 +215,6 @@ func (e *UserTokenAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return nil
}
func (e *UserTokenAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserTokenAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -297,10 +273,6 @@ func (e *DomainClaimedEvent) UniqueConstraints() []*eventstore.EventUniqueConstr
}
}
func (e *DomainClaimedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainClaimedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -344,10 +316,6 @@ func (e *DomainClaimedSentEvent) UniqueConstraints() []*eventstore.EventUniqueCo
return nil
}
func (e *DomainClaimedSentEvent) Assets() []*eventstore.Asset {
return nil
}
func NewDomainClaimedSentEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -386,10 +354,6 @@ func (e *UsernameChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCons
}
}
func (e *UsernameChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUsernameChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,

View File

@@ -52,10 +52,6 @@ func (e *UserGrantAddedEvent) UniqueConstraints() []*eventstore.EventUniqueConst
return []*eventstore.EventUniqueConstraint{NewAddUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.UserID, e.ProjectID, e.ProjectGrantID)}
}
func (e *UserGrantAddedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantAddedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -102,10 +98,6 @@ func (e *UserGrantChangedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return nil
}
func (e *UserGrantChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -146,10 +138,6 @@ func (e *UserGrantCascadeChangedEvent) UniqueConstraints() []*eventstore.EventUn
return nil
}
func (e *UserGrantCascadeChangedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantCascadeChangedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -192,10 +180,6 @@ func (e *UserGrantRemovedEvent) UniqueConstraints() []*eventstore.EventUniqueCon
return []*eventstore.EventUniqueConstraint{NewRemoveUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.userID, e.projectID, e.projectGrantID)}
}
func (e *UserGrantRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -236,10 +220,6 @@ func (e *UserGrantCascadeRemovedEvent) UniqueConstraints() []*eventstore.EventUn
return []*eventstore.EventUniqueConstraint{NewRemoveUserGrantUniqueConstraint(e.Aggregate().ResourceOwner, e.userID, e.projectID, e.projectGrantID)}
}
func (e *UserGrantCascadeRemovedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantCascadeRemovedEvent(
ctx context.Context,
aggregate *eventstore.Aggregate,
@@ -277,10 +257,6 @@ func (e *UserGrantDeactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *UserGrantDeactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantDeactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserGrantDeactivatedEvent {
return &UserGrantDeactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(
@@ -309,10 +285,6 @@ func (e *UserGrantReactivatedEvent) UniqueConstraints() []*eventstore.EventUniqu
return nil
}
func (e *UserGrantReactivatedEvent) Assets() []*eventstore.Asset {
return nil
}
func NewUserGrantReactivatedEvent(ctx context.Context, aggregate *eventstore.Aggregate) *UserGrantReactivatedEvent {
return &UserGrantReactivatedEvent{
BaseEvent: *eventstore.NewBaseEventForPush(