labels

package
v4.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Labels = map[string]string{
	"BP_OCI_AUTHORS":       "org.opencontainers.image.authors",
	"BP_OCI_CREATED":       "org.opencontainers.image.created",
	"BP_OCI_DESCRIPTION":   "org.opencontainers.image.description",
	"BP_OCI_DOCUMENTATION": "org.opencontainers.image.documentation",
	"BP_OCI_LICENSES":      "org.opencontainers.image.licenses",
	"BP_OCI_REF_NAME":      "org.opencontainers.image.ref.name",
	"BP_OCI_REVISION":      "org.opencontainers.image.revision",
	"BP_OCI_SOURCE":        "org.opencontainers.image.source",
	"BP_OCI_TITLE":         "org.opencontainers.image.title",
	"BP_OCI_URL":           "org.opencontainers.image.url",
	"BP_OCI_VENDOR":        "org.opencontainers.image.vendor",
	"BP_OCI_VERSION":       "org.opencontainers.image.version",
}

Functions

func ParseLabels

func ParseLabels(rest string) (map[string]string, error)

func ReadKey

func ReadKey(buf string) (string, string, error)

ReadKey from the string

A key is either all words before the equals sign, or a single or double quoted word group, again before an equals sign.

If key is quoted and there are characters between the ending quote and the equals sign, those are discarded.

It returns the key, a string with the remainder of the characters or an error.

func ReadToNext

func ReadToNext(buf string, chars string) (string, string, rune)

ReadToNext rune in string consuming the character

It returns a string of read characters, a string of the remaining characters and the specific rune that was read.

func ReadValue

func ReadValue(buf string) (string, string, error)

ReadValue from the string

A value is either all words up to the first space character, or a single or double quoted word group, again before the first space.

If value is quoted and there are characters between the ending quote and the equals sign, those are discarded.

It returns the value, a string with the remainder of the characters or an error.

Types

type Build

type Build struct {
	Logger bard.Logger
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type Detect

type Detect struct{}

func (Detect) Detect

func (Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

Jump to

Keyboard shortcuts

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