brunel/domain/buildqueue.go
2024-08-10 14:06:31 +01:00

46 lines
900 B
Go

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"
// BuildType is an amd64 build
BuildTypeAmd64 BuildType = "amd64"
)
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
Type string
BuildNumber int
}