mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
198bc017b8
Adds the API to create, update, delete targets for execution in a new ExecutionService (v3alpha)
19 lines
393 B
Go
19 lines
393 B
Go
package target
|
|
|
|
import "github.com/zitadel/zitadel/internal/eventstore"
|
|
|
|
const (
|
|
AggregateType = "target"
|
|
AggregateVersion = "v1"
|
|
)
|
|
|
|
func NewAggregate(aggrID, instanceID string) *eventstore.Aggregate {
|
|
return &eventstore.Aggregate{
|
|
ID: aggrID,
|
|
Type: AggregateType,
|
|
ResourceOwner: instanceID,
|
|
InstanceID: instanceID,
|
|
Version: AggregateVersion,
|
|
}
|
|
}
|