package fdimport
import "gvisor.dev/gvisor/pkg/sentry/fdimport"
Package fdimport provides the Import function.
Index ¶
- func Import(ctx context.Context, fdTable *kernel.FDTable, fds map[int]*fd.FD, opts ImportOptions) (*host.TTYFileDescription, error)
- type ImportOptions
Functions ¶
func Import ¶
func Import(ctx context.Context, fdTable *kernel.FDTable, fds map[int]*fd.FD, opts ImportOptions) (*host.TTYFileDescription, error)
Import imports a map of FDs into the given FDTable. If console is true, sets up TTY for sentry stdin, stdout, and stderr FDs. Used FDs are either closed or released. It's safe for the caller to close any remaining files upon return.
Types ¶
type ImportOptions ¶
type ImportOptions struct { Console bool Restorable bool UID auth.KUID GID auth.KGID ContainerName string }
ImportOptions contains options for Import().
Source Files ¶
fdimport.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 4 hours ago –
Tools for package owners.