Documentation
¶
Overview ¶
Package util provides functionality we could not find a home for elsewhere
Index ¶
Constants ¶
const PortablePosixValidChar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"
PortablePosixValidChar is the list of valid characters allowed for portability
Variables ¶
This section is empty.
Functions ¶
func IsPathPrefix ¶
IsPathPrefix returns true iff prefixPath is a path prefix for path
func IsPortableFilename ¶
IsPortableFilename is a function that determines if a filename is using portable posix characters.
func IsPortablePath ¶
IsPortablePath looks at each component of a path, and verifies that each component uses portable characters only. Also ensures that the separator is always a "/" (even on Windows). we only want relative paths
func ParseSourceURI ¶
ParseSourceURI will parse a URI for a source. If it contains a bottle reference it will extract it along with any part selectors.
Types ¶
This section is empty.