rootlessport

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

Package rootlessport provides reexec for RootlessKit-based port forwarder.

init() contains reexec.Register() for ReexecKey .

The reexec requires Config to be provided via stdin.

The reexec writes human-readable error message on stdout on error.

Debug log is printed on stderr.

Index

Constants

View Source
const (
	// ReexecKey is the reexec key for the parent process.
	ReexecKey = "containers-rootlessport"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Mappings    []ocicni.PortMapping
	NetNSPath   string
	ExitFD      int
	ReadyFD     int
	TmpDir      string
	ChildIP     string
	ContainerID string
	RootlessCNI bool
}

Config needs to be provided to the process via stdin as a JSON string. stdin needs to be closed after the message has been written.

Jump to

Keyboard shortcuts

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