brunel/domain/buildqueue.go

36 lines
682 B
Go
Raw 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"
)
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"`
}