Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemeHost = "host" SchemeDocker = "docker" ArgDocker = "//node:22-bookworm" SchemeLXC = "lxc" ArgLXC = "//debian:bookworm" // OptionPlatform is the name of the label option that sets the OS/architecture passed to the // container runtime, e.g. "platform=linux/amd64". OptionPlatform = "platform" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Label struct {
Name string
Schema string
Arg string
// Options are encoded in the string form as a trailing query, e.g. "...?platform=linux/amd64".
Options map[string]string
}
func MustParse ¶ added in v12.7.0
MustParse is like Parse but panics if the string cannot be parsed.
type Labels ¶
type Labels []*Label
func (Labels) PickDockerImagePlatform ¶ added in v12.12.0
PickDockerImagePlatform returns the Docker image platform (e.g. "linux/amd64") configured for the first matching docker label in runsOn, or "" when none is set.
func (Labels) PickPlatform ¶
func (Labels) RequireDocker ¶
Click to show internal directories.
Click to hide internal directories.