RunnerBuildReq class

Constructors

RunnerBuildReq({String? arch, Map<String, String> args = const {}, List<BinarySpec> binaries = const [], String? branch, String? bucket, String? context, String? dockerTarget, String? dockerfile, String? image, String? os, String? ref, String? repo, String? sha, String? tag})
Returns a new RunnerBuildReq instance.

Properties

arch ↔ String?
Arch is the target architecture for the artifact lane.
getter/setter pair
args ↔ Map<String, String>
Args are --build-arg values. They are what lets several images off ONE Dockerfile mean different things — the sandbox classes are three entries differing only by STAGE. Validated at the k8s choke point, with VERSION and REVISION taking precedence: those are receipts the builder derives from the tag and the commit, and a caller that could overwrite them could make an image lie about which commit it is.
getter/setter pair
binaries ↔ List<BinarySpec>
Binaries selects the ARTIFACT lane (artifact.go): build what the repo's hanzo.yml binaries: block declares — a Go binary, an npm tarball, a Rust binary — and publish it to hanzoai/s3 instead of pushing an image. It is the same recipe hanzoai/ci reads, sent verbatim, so image is meaningless here and must be absent.
getter/setter pair
branch ↔ String?
Branch is the branch to build when no SHA or Ref is given.
getter/setter pair
bucket ↔ String?
Bucket mirrors hanzo.yml's bucket: — where the artifact lane publishes.
getter/setter pair
context ↔ String?
Context is the build context path within the repo.
getter/setter pair
dockerfile ↔ String?
Dockerfile is the path to build from; empty uses the zero-config frontend.
getter/setter pair
dockerTarget ↔ String?
DockerTarget is the multi-stage build target to stop at.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
image ↔ String?
Image is the output image ref to push. Required on the image lane, and it must target a registry namespace the caller's org owns.
getter/setter pair
os ↔ String?
OS is the target operating system for the artifact lane.
getter/setter pair
ref ↔ String?
Ref is the git ref to build when no SHA is given.
getter/setter pair
repo ↔ String?
Repo is the repository clone URL to build. Required on the image lane.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha ↔ String?
SHA is the commit to pin; it wins over Ref and Branch.
getter/setter pair
tag ↔ String?
Tag is the publish path segment, so both entry points write ONE index at ONE URL. It defaults to the pinned ref, and must be named explicitly for a branch.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → RunnerBuildReq?
Returns a new RunnerBuildReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RunnerBuildReq>
mapFromJson(dynamic json) → Map<String, RunnerBuildReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RunnerBuildReq>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.