buildpack

package
v0.15.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidLocator = iota
	FromBuilderLocator
	URILocator
	IDLocator
	PackageLocator
	RegistryLocator
)

Variables

This section is empty.

Functions

func HasDockerLocator added in v0.15.0

func HasDockerLocator(locator string) bool

func ParseBuilderLocator added in v0.15.0

func ParseBuilderLocator(locator string) (path string)

func ParseIDLocator

func ParseIDLocator(locator string) (id string, version string)

ParseIDLocator parses a buildpack locator of the form <id>@<version> into its ID and version. If version is omitted, the version returned will be empty. Any "from=builder:" or "urn:cnb" prefix will be ignored.

func ParseLocator added in v0.15.0

func ParseLocator(locator string) (id string)

func ParsePackageLocator added in v0.15.0

func ParsePackageLocator(locator string) (path string)

func ParseRegistryID added in v0.11.0

func ParseRegistryID(registryID string) (namespace string, name string, version string, err error)

func ParseRegistryLocator added in v0.15.0

func ParseRegistryLocator(locator string) (path string)

Types

type LocatorType

type LocatorType int

func GetLocatorType

func GetLocatorType(locator string, buildpacksFromBuilder []dist.BuildpackInfo) (LocatorType, error)

GetLocatorType determines which type of locator is designated by the given input. If a type cannot be determined, `INVALID_LOCATOR` will be returned. If an error is encountered, it will be returned.

func (LocatorType) String

func (l LocatorType) String() string

Jump to

Keyboard shortcuts

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