Documentation ¶
Overview ¶
Package docker is a primitive wrapper over shelling out to 'docker' tool.
Assumes 'docker' binary is in PATH.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Labels ¶
type Labels struct { Created time.Time // org.opencontainers.image.created=<RFC3339 timestamp> BuildTool string // org.chromium.build.tool="cloudbuildhelper v1.2.3" BuildMode string // org.chromium.build.mode="local" (or "cloudbuild") Inputs string // org.chromium.build.inputs=<SHA256 of context tarball> BuildID string // org.chromium.build.id="... CanonicalTag string // org.chromium.build.canonical=... Extra map[string]string // whatever was supplied via -label CLI flag }
Labels is a schema for docker image labels we set.
See https://github.com/opencontainers/image-spec/blob/master/annotations.md for org.opencontainers.image.* labels.
func (*Labels) AsBuildArgs ¶
AsBuildArgs returns ["--label", "k=v", "--label", "k=v", ...].
Click to show internal directories.
Click to hide internal directories.