Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildStatus ¶
type BuildStatus int8
const ( STATUS_PENDING BuildStatus = 10 STATUS_BUILDING BuildStatus = 20 STATUS_TIMEOUT BuildStatus = 30 STATUS_FAILED BuildStatus = 40 STATUS_BUILD BuildStatus = 50 )
type Commit ¶
type Package ¶
type Package struct {
//Id int64 `json:"ID"`
Name string `json:"Name" xorm:"pk notnull"`
PackageBaseId int64 `json:"PackageBaseID" xorm:"index notnull"`
PackageBase string `json:"PackageBase" xorm:"index notnull"`
Version string `json:"Version" xorm:"notnull"`
Description string `json:"Description"`
URL string `json:"URL" xorm:"'url'"`
NumVotes int `json:"NumVotes"`
Popularity float64 `json:"Popularity"`
OutOfDate time.Time `json:"OutOfDate"`
Maintainer string `json:"Maintainer"`
FirstSubmitted time.Time `json:"FirstSubmitted"`
LastModified time.Time `json:"LastModified"`
URLPath string `json:"URLPath" xorm:"'url_path'"`
Depends []string `json:"Depends"`
MakeDepends []string `json:"MakeDepends"`
CheckDepends []string `json:"CheckDepends"`
Conflicts []string `json:"Conflicts"`
Provides []string `json:"Provides"`
Replaces []string `json:"Replaces"`
OptDepends []string `json:"OptDepends"`
Groups []string `json:"Groups"`
License []string `json:"License"`
Keywords []string `json:"Keywords"`
}
type WorkResult ¶
type WorkResult struct {
Id int64
BuildId int64
Status WorkResultStatus
PacmanExitCode int
PacmanLogBase64 string
MakepkgExtractExitCode int
MakepkgExtractLogBase64 string
MakepkgBuildExitCode int
MakepkgBuildLogBase64 string
CreatedAt time.Time `xorm:"created"`
}
func (*WorkResult) GetBuildStatus ¶
func (r *WorkResult) GetBuildStatus() BuildStatus
type WorkResultStatus ¶
type WorkResultStatus int8
const ( WORK_RESULT_STATUS_INTERNAL_ERROR WorkResultStatus = 0 WORK_RESULT_STATUS_TIMEOUT WorkResultStatus = 10 WORK_RESULT_STATUS_FAILED WorkResultStatus = 20 WORK_RESULT_STATUS_SUCCESS WorkResultStatus = 30 )
type Worker ¶
type Worker struct {
Id int64
Type WorkerType
Status WorkerStatus
HetznerId int
Name string
IPv4 string `xorm:"'ipv4'"`
IPv6 string `xorm:"'ipv6'"`
CreatedAt time.Time `xorm:"created"`
UpdatedAt time.Time `xorm:"updated"`
}
type WorkerStatus ¶
type WorkerStatus int8
const ( WORKER_STATUS_CREATED WorkerStatus = 10 WORKER_STATUS_RUNNING WorkerStatus = 20 WORKER_STATUS_STOPPED WorkerStatus = 30 )
type WorkerType ¶
type WorkerType int8
const ( WORKER_TYPE_OTHER WorkerType = 0 WORKER_TYPE_HETZNER WorkerType = 10 )
Click to show internal directories.
Click to hide internal directories.