Documentation ¶
Overview ¶
Package options contains all the general options for configuring the general objects like hosts, switches, routers and interfaces
Index ¶
- Constants
- func Capture(opts ...g.Option) *g.Capture
- func Customize(opts []g.Option, extraOptions ...g.Option) []g.Option
- func Filter(h g.FilterHook, stmts ...filters.Statement) g.FilterRule
- func Interface(name string, opts ...g.Option) *g.Interface
- type Address
- type AgingTime
- type CaptureNetwork
- type EmptyDir
- type ExistingDockerContainer
- type ExistingNamespace
- type ExtraEnv
- type FullyRandomNAT
- type Group
- type HardwareAddress
- type HelloTime
- type LogToDebug
- type MTU
- type MulticastSnooping
- type NSPrefix
- type Netem
- type NetemOption
- type PeerHardwareAddress
- type Persistent
- type PersistentNAT
- type RandomNAT
- type Route
- type SourcePortRange
- type Tbf
- type TbfOption
- type TxQLen
- type VLANFiltering
Constants ¶
const ( SouthBound = Group(g.DeviceGroupSouthBound) NorthBound = Group(g.DeviceGroupNorthBound) )
Variables ¶
This section is empty.
Functions ¶
func Customize ¶ added in v1.5.0
Customize clones and extends a list of options without altering the list of base options.
func Filter ¶ added in v0.3.0
func Filter(h g.FilterHook, stmts ...filters.Statement) g.FilterRule
Types ¶
type AgingTime ¶
AgingTime configures the bridge's FDB entries ageing time, ie the number of seconds a MAC address will be kept in the FDB after a packet has been received from that address. After this time has passed, entries are cleaned up.
type CaptureNetwork ¶ added in v1.2.0
func CaptureAll ¶ added in v1.2.0
func CaptureAll(opts ...g.Option) CaptureNetwork
func (CaptureNetwork) Apply ¶ added in v1.2.0
func (c CaptureNetwork) Apply(n *g.Network)
type EmptyDir ¶ added in v1.4.0
type EmptyDir string
Mount an empty dir to shadow parts of the root filesystem
type ExistingDockerContainer ¶ added in v0.1.0
type ExistingDockerContainer string
Name of an existing Docker container which is used for this node
func (ExistingDockerContainer) Apply ¶ added in v0.1.0
func (d ExistingDockerContainer) Apply(n *g.BaseNode)
type ExistingNamespace ¶
type ExistingNamespace string
The name of an existing network namespace which is used instead of creating a new one.
func (ExistingNamespace) Apply ¶
func (e ExistingNamespace) Apply(n *g.BaseNode)
type ExtraEnv ¶ added in v1.6.0
Extra environment variable for processes started in the nodes network namespace
type FullyRandomNAT ¶ added in v1.5.0
type FullyRandomNAT bool
func (FullyRandomNAT) Apply ¶ added in v1.5.0
func (frn FullyRandomNAT) Apply(n *g.NAT)
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 HelloTime ¶
HelloTime sets the time in seconds between hello packets sent by the bridge, when it is a root bridge or a designated bridges. Only relevant if STP is enabled. Valid values are between 1 and 10 seconds.
type LogToDebug ¶ added in v1.1.0
type LogToDebug bool
Log output of sub-processes to debug log-level
func (LogToDebug) Apply ¶ added in v1.1.0
func (l LogToDebug) Apply(n *g.BaseNode)
type MulticastSnooping ¶
type MulticastSnooping bool
MulticastSnooping configures multicast snooping.
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 {
Apply(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
Persistent keeps a network from beeing torn down.
func (Persistent) Apply ¶
func (p Persistent) Apply(n *g.Network)
type PersistentNAT ¶ added in v1.5.0
type PersistentNAT bool
func (PersistentNAT) Apply ¶ added in v1.5.0
func (pn PersistentNAT) Apply(n *g.NAT)
type Route ¶ added in v0.2.3
func DefaultGatewayIP ¶ added in v0.2.3
func DefaultGatewayIPv4 ¶ added in v0.2.3
type SourcePortRange ¶ added in v1.5.0
func (SourcePortRange) Apply ¶ added in v1.5.0
func (spr SourcePortRange) Apply(n *g.NAT)
type VLANFiltering ¶
type VLANFiltering bool
VLANfiltering configures VLAN filtering. When disabled, the bridge will not consider the VLAN tag when handling packets
func (VLANFiltering) Apply ¶
func (vf VLANFiltering) Apply(b *nl.Bridge)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package capture contains the options to configure to packet capturing
|
Package capture contains the options to configure to packet capturing |
Package filters contains the options for configuring NFTables filtering
|
Package filters contains the options for configuring NFTables filtering |
Package tc contains the options for configuring per-interface Traffic Control (TC) queuing disciplines
|
Package tc contains the options for configuring per-interface Traffic Control (TC) queuing disciplines |