Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ReadKey ¶
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 ¶
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 ¶
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 ¶
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)