pathmap

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapper

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

Mapper translates between guest-visible and host-visible paths for one session.

func New

func New(mounts []sandboxenv.MountSpec) (*Mapper, error)

func (*Mapper) GuestToHost

func (m *Mapper) GuestToHost(guestPath string) (string, sandboxenv.MountSpec, error)

func (*Mapper) HostToGuest

func (m *Mapper) HostToGuest(hostPath string) (string, sandboxenv.MountSpec, error)

func (*Mapper) VisibleRoots

func (m *Mapper) VisibleRoots() []string

Jump to

Keyboard shortcuts

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