fdimport

package
v0.0.0-...-7775246 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Overview

Package fdimport provides the Import function.

Index

Constants

This section is empty.

Variables

This section is empty.

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().

Jump to

Keyboard shortcuts

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