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

@@ -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,