mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 06:27:23 +00:00

* fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename iam command side to instance * fix: rename orgiampolicy to domain policy * fix: merge conflicts * fix: protos * fix: md files * implement deprecated org iam policy again Co-authored-by: Livio Amstutz <livio.a@gmail.com>
31 lines
539 B
Go
31 lines
539 B
Go
package instance
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/domain"
|
|
"github.com/caos/zitadel/internal/eventstore"
|
|
)
|
|
|
|
const (
|
|
instanceEventTypePrefix = eventstore.EventType("instance.")
|
|
)
|
|
|
|
const (
|
|
AggregateType = "instance"
|
|
AggregateVersion = "v1"
|
|
)
|
|
|
|
type Aggregate struct {
|
|
eventstore.Aggregate
|
|
}
|
|
|
|
func NewAggregate() *Aggregate {
|
|
return &Aggregate{
|
|
Aggregate: eventstore.Aggregate{
|
|
Type: AggregateType,
|
|
Version: AggregateVersion,
|
|
ID: domain.IAMID,
|
|
ResourceOwner: domain.IAMID,
|
|
},
|
|
}
|
|
}
|