Documentation ¶
Index ¶
- Constants
- func DefaultNetwork() (*g.Network, error)
- func Interface(name string, opts ...g.Option) *g.Interface
- type Address
- type AgingTime
- type Buffer
- type Corruption
- type Duplicate
- type ExistingDockerContainer
- type ExistingNamespace
- type Forwarding
- type Gap
- type Gateway
- type Group
- type HardwareAddress
- type HelloTime
- type Jitter
- type Latency
- type Limit
- type Loss
- type MTU
- type MinBurst
- type MulticastSnooping
- type NSPrefix
- type Netem
- type NetemOption
- type PeakRate
- type PeerHardwareAddress
- type Persistent
- type Probability
- type Rate
- type Reordering
- type Tbf
- type TbfOption
- type TxQLen
- type VLANFiltering
Constants ¶
View Source
const ( SouthBound = Group(g.DeviceGroupSouthBound) NorthBound = Group(g.DeviceGroupNorthBound) )
Variables ¶
This section is empty.
Functions ¶
func DefaultNetwork ¶
Types ¶
type Address ¶
func AddressIPv4 ¶
type Corruption ¶ added in v0.1.0
type Corruption Probability
func (Corruption) ApplyNetem ¶ added in v0.1.0
func (c Corruption) ApplyNetem(n *Netem)
type Duplicate ¶ added in v0.1.0
type Duplicate Probability
func (Duplicate) ApplyNetem ¶ added in v0.1.0
type ExistingDockerContainer ¶ added in v0.1.0
type ExistingDockerContainer string
func (ExistingDockerContainer) Apply ¶ added in v0.1.0
func (d ExistingDockerContainer) Apply(n *g.BaseNode)
type ExistingNamespace ¶
type ExistingNamespace string
func (ExistingNamespace) Apply ¶
func (e ExistingNamespace) Apply(n *g.BaseNode)
type Forwarding ¶ added in v0.1.0
type Forwarding bool
func (Forwarding) Apply ¶ added in v0.1.0
func (b Forwarding) Apply(h *g.Host)
type Gateway ¶
func GatewayIPv4 ¶
type HardwareAddress ¶
type HardwareAddress net.HardwareAddr
func AddressMAC ¶ added in v0.2.0
func AddressMAC(s string) HardwareAddress
func AddressMACBytes ¶ added in v0.2.0
func AddressMACBytes(b []byte) HardwareAddress
func (HardwareAddress) Apply ¶
func (a HardwareAddress) Apply(la *nl.LinkAttrs)
type Jitter ¶ added in v0.1.0
func (Jitter) ApplyNetem ¶ added in v0.1.0
type Latency ¶ added in v0.1.0
func (Latency) ApplyNetem ¶ added in v0.1.0
type MulticastSnooping ¶
type MulticastSnooping bool
func (MulticastSnooping) Apply ¶
func (mcs MulticastSnooping) Apply(b *nl.Bridge)
type Netem ¶ added in v0.1.0
type Netem nl.NetemQdiscAttrs
func WithNetem ¶ added in v0.1.0
func WithNetem(opts ...NetemOption) Netem
type NetemOption ¶ added in v0.1.0
type NetemOption interface {
ApplyNetem(n *Netem)
}
type PeerHardwareAddress ¶
type PeerHardwareAddress net.HardwareAddr
func (PeerHardwareAddress) Apply ¶ added in v0.1.0
func (p PeerHardwareAddress) Apply(v *nl.Veth)
type Persistent ¶
type Persistent bool
func (Persistent) Apply ¶
func (p Persistent) Apply(n *g.Network)
type Probability ¶ added in v0.1.0
type Reordering ¶ added in v0.1.0
type Reordering Probability
func (Reordering) ApplyNetem ¶ added in v0.1.0
func (p Reordering) ApplyNetem(n *Netem)
type VLANFiltering ¶
type VLANFiltering bool
func (VLANFiltering) Apply ¶
func (vf VLANFiltering) Apply(b *nl.Bridge)
Click to show internal directories.
Click to hide internal directories.