Documentation
¶
Overview ¶
Package builder runs source-to-image builds in the ah-builder systemd unit.
Index ¶
Constants ¶
View Source
const ( DefaultBuildDir = "/var/lib/ah-builds" BrokerSocket = "/run/ah-build-broker/broker.sock" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildRequest ¶
type BuildRequest struct {
BuildID string `json:"build_id"`
ServiceID string `json:"service_id"`
TenantID string `json:"tenant_id"`
SourceType string `json:"source_type"`
SourceURL string `json:"source_url"`
SourceRef string `json:"source_ref"`
ImageTag string `json:"image_tag"`
}
BuildRequest describes a build to execute.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder coordinates builds in the ah-builder systemd service.
func NewBuilder ¶
NewBuilder creates a builder.
func (*Builder) Build ¶
Build asks the narrow systemd broker to start a fixed ah-build@ unit, then streams its secret-free log file until the worker exits or the request is cancelled.
func (*Builder) CancelBuild ¶
CancelBuild stops only the fixed unit associated with a generated build ID.
Click to show internal directories.
Click to hide internal directories.