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

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