brunel/domain/buildqueue.go

46 lines
900 B
Go
Raw Permalink Normal View History

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"
2024-08-10 15:06:31 +02:00
// BuildType is an amd64 build
BuildTypeAmd64 BuildType = "amd64"
2024-07-29 23:40:26 +02:00
)
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"`
}
type BuildState struct {
Name string `gorm:"primarykey"`
Status string
BuildVersion string
2024-08-10 15:06:31 +02:00
Type string
BuildNumber int
}