container

package
v0.0.0-...-2ef223d Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountTunDev

func MountTunDev(newroot string) error

MountTunDev this will bind mount /dev/net/tun into the container rootfs, this is intended to be ran inside a container BEFORE pivot root/chroot

Types

type TunDevice

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

func New

func New(fdOffset int) (*TunDevice, error)

func (*TunDevice) Close

func (t *TunDevice) Close() error

func (*TunDevice) ReadLoop

func (t *TunDevice) ReadLoop()

func (*TunDevice) SetupNetwork

func (t *TunDevice) SetupNetwork() error

func (*TunDevice) WriteLoop

func (t *TunDevice) WriteLoop()

Jump to

Keyboard shortcuts

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