2021-01-12 12:59:51 +01:00
|
|
|
package domain
|
|
|
|
|
|
|
|
import (
|
2021-02-23 15:13:04 +01:00
|
|
|
"github.com/caos/zitadel/internal/eventstore/v1/models"
|
2021-01-12 12:59:51 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type Project struct {
|
|
|
|
models.ObjectRoot
|
|
|
|
|
2021-08-24 08:34:10 +02:00
|
|
|
State ProjectState
|
|
|
|
Name string
|
|
|
|
ProjectRoleAssertion bool
|
|
|
|
ProjectRoleCheck bool
|
|
|
|
HasProjectCheck bool
|
|
|
|
PrivateLabelingSetting PrivateLabelingSetting
|
2021-01-12 12:59:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectState int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
ProjectStateUnspecified ProjectState = iota
|
|
|
|
ProjectStateActive
|
|
|
|
ProjectStateInactive
|
|
|
|
ProjectStateRemoved
|
|
|
|
)
|
|
|
|
|
2021-08-24 08:34:10 +02:00
|
|
|
type PrivateLabelingSetting int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
PrivateLabelingSettingUnspecified PrivateLabelingSetting = iota
|
|
|
|
PrivateLabelingSettingEnforceProjectResourceOwnerPolicy
|
|
|
|
PrivateLabelingSettingAllowLoginUserResourceOwnerPolicy
|
|
|
|
)
|
|
|
|
|
2021-01-12 12:59:51 +01:00
|
|
|
func (o *Project) IsValid() bool {
|
|
|
|
return o.Name != ""
|
|
|
|
}
|