util

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package util provides functionality we could not find a home for elsewhere

Index

Constants

View Source
const PortablePosixValidChar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-"

PortablePosixValidChar is the list of valid characters allowed for portability

Variables

This section is empty.

Functions

func IsPathPrefix

func IsPathPrefix(path, prefixPath string) bool

IsPathPrefix returns true iff prefixPath is a path prefix for path

func IsPortableFilename

func IsPortableFilename(filename string) bool

IsPortableFilename is a function that determines if a filename is using portable posix characters.

func IsPortablePath

func IsPortablePath(path string) bool

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

func ParseSourceURI(uri string) (digest.Digest, selectors.LabelSelectorSet, error)

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.

Jump to

Keyboard shortcuts

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