device

package
v0.0.0-...-211d904 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct{}

func NewBridge

func NewBridge() *Bridge

func (*Bridge) Attach

func (b *Bridge) Attach(bridge, hostVeth *net.Interface) error

func (*Bridge) Create

func (b *Bridge) Create(name string, ip net.IP, subnet *net.IPNet) (*net.Interface, error)

type Veth

type Veth struct{}

func NewVeth

func NewVeth() *Veth

func (*Veth) Create

func (v *Veth) Create(namePrefix string) (*net.Interface, *net.Interface, error)

func (*Veth) MoveToNetworkNamespace

func (v *Veth) MoveToNetworkNamespace(containerVeth *net.Interface, pid int) error

Jump to

Keyboard shortcuts

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