Documentation
¶
Index ¶
- Variables
- func GetJobLogPath(jobID string) (string, error)
- func GetJobMetadataPath(jobID string) (string, error)
- func GetJobPath(jobID string) (string, error)
- func IsValidStatusTransition(current, next JobStatus) bool
- func WriteJob(jobID string, job BuildJob) error
- type Artifacts
- type BuildJob
- type JobData
- type JobStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildsDir string
BuildsDir is the directory where all build jobs are stored
Functions ¶
func GetJobLogPath ¶
getJobLogPath returns the path to a job's log file
func GetJobMetadataPath ¶
getJobMetadataPath returns the path to a job's metadata file
func GetJobPath ¶
getJobPath returns the path to a job's directory
func IsValidStatusTransition ¶
IsValidStatusTransition checks if a status transition is valid
Types ¶
type Artifacts ¶ added in v0.8.5
type Artifacts struct { RawImage bool `json:"raw_image"` ISO bool `json:"iso"` ContainerFile bool `json:"container_file"` AWS bool `json:"aws"` GCP bool `json:"gcp"` Azure bool `json:"azure"` }
JobData contains the build configuration Artifacts specifies which artifacts to build
type BuildJob ¶
type BuildJob struct { JobData Status JobStatus `json:"status"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` WorkerID string `json:"worker_id,omitempty"` }
BuildJob represents a build job in the system
func BindNextAvailableJob ¶
BindNextAvailableJob attempts to bind the next available queued job to a worker Returns the job ID and job data if successful, or empty values if no job is available
type JobData ¶
type JobData struct { Variant string `json:"variant"` Model string `json:"model"` TrustedBoot bool `json:"trusted_boot"` KubernetesDistribution string `json:"kubernetes_distribution"` KubernetesVersion string `json:"kubernetes_version"` Image string `json:"image"` Version string `json:"version"` Artifacts Artifacts `json:"artifacts"` CloudConfig string `json:"cloud_config,omitempty"` }
Click to show internal directories.
Click to hide internal directories.