labels

package
v12.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeHost = "host"

	SchemeDocker = "docker"
	ArgDocker    = "//node:22-bookworm"

	SchemeLXC = "lxc"
	ArgLXC    = "//debian:bookworm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Label

type Label struct {
	Name   string
	Schema string
	Arg    string
}

func Parse

func Parse(str string) (*Label, error)

type Labels

type Labels []*Label

func (Labels) Names

func (l Labels) Names() []string

func (Labels) PickPlatform

func (l Labels) PickPlatform(runsOn []string) string

func (Labels) RequireDocker

func (l Labels) RequireDocker() bool

func (Labels) ToStrings

func (l Labels) ToStrings() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL