paths

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver handles path resolution for Docker volumes and bind mounts

func NewResolver

func NewResolver() (*Resolver, error)

NewResolver creates a new path resolver It uses STACKMAN_WORKDIR environment variable or current working directory

func (*Resolver) BasePath

func (r *Resolver) BasePath() string

BasePath returns the base path used for resolution

func (*Resolver) Resolve

func (r *Resolver) Resolve(source string) string

Resolve converts relative paths to absolute paths Based on the algorithm from the tech spec: - ./path and ../path are resolved relative to basePath - Relative paths without ./ or ../ are resolved relative to basePath - Absolute paths are returned as-is - Paths with :// (like nfs://) are returned as-is

Jump to

Keyboard shortcuts

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