ebpfem

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_LATENCY_US = 0
	DEFAULT_BANDWIDTH  = 1_000_000_000

	BLOCKED_LATENCY_US = 1_000_000_000
	BLOCKED_BANDWIDTH  = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EBPFem

type EBPFem struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *EBPFem
func (e *EBPFem) BlockLink(source orchestrator.MachineID, target net.IPNet) error

func (*EBPFem) Register

func (e *EBPFem) Register(id orchestrator.MachineID, netIf string) error

func (*EBPFem) SetBandwidth

func (e *EBPFem) SetBandwidth(source orchestrator.MachineID, target net.IPNet, bandwidth uint64) error

func (*EBPFem) SetLatency

func (e *EBPFem) SetLatency(source orchestrator.MachineID, target net.IPNet, latency uint32) error

func (*EBPFem) Stop

func (e *EBPFem) Stop() error
func (e *EBPFem) 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