2024-07-29 23:40:26 +02:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type BuildStatus string
|
|
|
|
type BuildType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
// BuildType is a v3 build
|
|
|
|
BuildTypeNormal BuildType = "v3"
|
|
|
|
// BuildType is a LTO build
|
|
|
|
BuildTypeLTO BuildType = "lto"
|
|
|
|
// BuildType is an i386 build
|
|
|
|
BuildTypeI386 BuildType = "i386"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Package is queued for building
|
|
|
|
Queued BuildStatus = "Queued"
|
|
|
|
// Package is being built
|
|
|
|
Building BuildStatus = "Building"
|
|
|
|
)
|
|
|
|
|
|
|
|
type BuildQueueItem struct {
|
|
|
|
Source SourcePackage
|
|
|
|
Status BuildStatus
|
|
|
|
Type BuildType
|
|
|
|
Patch bool
|
|
|
|
Rebuild bool
|
|
|
|
BuildNumber int
|
|
|
|
BuildVersion string
|
|
|
|
}
|
|
|
|
|
|
|
|
type BuildQueueCount struct {
|
|
|
|
Queued int `json:"queued"`
|
|
|
|
Building int `json:"building"`
|
|
|
|
}
|
2024-07-30 16:41:35 +02:00
|
|
|
|
|
|
|
type BuildState struct {
|
|
|
|
Name string `gorm:"primarykey"`
|
|
|
|
Status string
|
|
|
|
BuildVersion string
|
|
|
|
BuildNumber int
|
|
|
|
}
|