Documentation ¶
Index ¶
Constants ¶
View Source
const ( InvalidLocator = iota FromBuilderLocator URILocator IDLocator PackageLocator RegistryLocator )
Variables ¶
This section is empty.
Functions ¶
func ParseIDLocator ¶
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.
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
Click to show internal directories.
Click to hide internal directories.