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