labels

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemeHost   = "host"
	SchemeDocker = "docker"
)

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 added in v0.2.0

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 added in v0.2.0

func (l Labels) ToStrings() []string

Jump to

Keyboard shortcuts

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