1
0

feat(daemon): task groups

This commit is contained in:
2024-02-26 08:55:27 +00:00
parent 2b4db95166
commit e633fd2e79
9 changed files with 117 additions and 55 deletions

View File

@ -44,13 +44,16 @@ const (
)
type Job struct {
ID int64
ID int64
// Job UUID
UUID string
// Group UUID
Group string
RepoName string
Commit string
Params string
Artifact artifact.Artifact
Target distro.KernelInfo
@ -61,6 +64,21 @@ func (job *Job) GenUUID() {
job.UUID = uuid.New().String()
}
// ListJobsParams is the parameters for ListJobs command
type ListJobsParams struct {
// Group UUID
Group string
// Repo name
Repo string
// Commit hash
Commit string
// Status of the job
Status Status
}
type Repo struct {
ID int64
Name string