mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-11 07:43:40 +00:00
26 lines
454 B
Go
26 lines
454 B
Go
//go:generate stringer -type=Milestone
|
|
|
|
package milestone
|
|
|
|
type Milestone int
|
|
|
|
const (
|
|
unknown Milestone = iota
|
|
InstanceCreated
|
|
AuthenticationSucceededOnInstance
|
|
ProjectCreated
|
|
ApplicationCreated
|
|
AuthenticationSucceededOnApplication
|
|
InstanceDeleted
|
|
|
|
milestonesCount
|
|
)
|
|
|
|
func All() []Milestone {
|
|
milestones := make([]Milestone, milestonesCount-1)
|
|
for i := 1; i < int(milestonesCount); i++ {
|
|
milestones[i] = Milestone(i)
|
|
}
|
|
return milestones
|
|
}
|