netem

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULTRATE = "10.0Gbps"

Variables

View Source
var (
	IPTABLES_BIN string
	IPSET_BIN    string
	TC_BIN       string
)

Functions

This section is empty.

Types

type Netem

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

func New

func New() *Netem
func (n *Netem) BlockLink(source orchestrator.MachineID, target net.IPNet) error

func (*Netem) Register

func (n *Netem) Register(id orchestrator.MachineID, netIf string) error

func (*Netem) SetBandwidth

func (n *Netem) SetBandwidth(source orchestrator.MachineID, target net.IPNet, bandwidthKbps uint64) error

func (*Netem) SetLatency

func (n *Netem) SetLatency(source orchestrator.MachineID, target net.IPNet, latencyUs uint32) error

func (*Netem) Stop

func (n *Netem) Stop() error
func (n *Netem) UnblockLink(source orchestrator.MachineID, target net.IPNet) error

Jump to

Keyboard shortcuts

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