filepath

package
Version: v0.0.0-...-bdeab2c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: BSD-3-Clause Imports: 5 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 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
t or T : Toggle theme light dark auto
y or Y : Canonical URL