Documentation ¶
Index ¶
- Constants
- func HasDockerLocator(locator string) bool
- func ParseBuilderLocator(locator string) (path string)
- func ParseIDLocator(locator string) (id string, version string)
- func ParseLocator(locator string) (id string)
- func ParsePackageLocator(locator string) (path string)
- func ParseRegistryID(registryID string) (namespace string, name string, version string, err error)
- func ParseRegistryLocator(locator string) (path string)
- type LocatorType
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 ParseBuilderLocator ¶ added in v0.15.0
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.
func ParseLocator ¶ added in v0.15.0
func ParsePackageLocator ¶ added in v0.15.0
func ParseRegistryID ¶ added in v0.11.0
func ParseRegistryLocator ¶ added in v0.15.0
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.