filepath

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

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