Documentation
¶
Overview ¶
Package models defines all models used within the application. It knows nothing about databases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶ added in v0.8.0
type AccessToken struct {
ID uint `json:"id"`
UserID uint `json:"user_id"`
Token string `json:"token"`
Name string `json:"name"`
}
AccessToken allows API access
type Artifact ¶ added in v0.10.0
type Artifact struct {
ID uint `json:"id"`
JobID uint `json:"job_id"`
Filename string `json:"filename"`
}
Artifact is part of the result of a job
type FileUpload ¶ added in v0.3.0
type FileUpload struct {
ID uint `json:"id"`
Filename string `json:"filename"`
SHA256Sum string `json:"sha256sum"`
UploadedAt time.Time `json:"uploaded_at"`
Completed bool `json:"completed"`
UploadID uint `json:"upload_id"`
}
FileUpload is an individual file that was uploaded
type Job ¶
type Job struct {
ID uint `json:"id"`
Type JobType `json:"type"`
Status JobStatus `json:"status"`
// The upload that has triggered this job.
// The uploadID is also set to all child jobs.
UploadID uint `json:"upload_id"`
// Some job's artifacts serve as input to other jobs.
// For example: a build job's artifacts is an input to an autopkgtest job
InputArtifactID uint `json:"input_artifact_id"`
}
Job is a builds a test, etc.
type JobStatus ¶
type JobStatus int
JobStatus is the status of the job
Click to show internal directories.
Click to hide internal directories.