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