filepath

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: BSD-3-Clause Imports: 5 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 is responsible for translating namespaced file paths (eg. from a container point of view) to the root-namespace point of view

func NewResolver

func NewResolver(procRoot string) *Resolver

NewResolver returns a new `Resolver`

func (*Resolver) LoadPIDMounts

func (p *Resolver) LoadPIDMounts(pidPath string) *Resolver

LoadPIDMounts retrieves the mounts for a certain PID

func (*Resolver) Resolve

func (p *Resolver) Resolve(path string) string

Resolve a path from a potentially namespaced process to the host path Note that `LoadPIDMounts` must be called before this method

Jump to

Keyboard shortcuts

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