path

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAbsPath

func CleanAbsPath(path string) string

CleanAbsPath removes any ".." and "." from the path and ensures it starts with a "/". If the path refers to the root directory, it returns "/".

func RegularFilePathForValidatedDigest

func RegularFilePathForValidatedDigest(d digest.Digest) (string, error)

RegularFilePath returns the path used in the composefs backing store for a regular file with the provided content digest.

The caller MUST ensure d is a valid digest (in particular, that it contains no path separators or .. entries)

Types

This section is empty.

Jump to

Keyboard shortcuts

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