Documentation
¶
Index ¶
- Variables
- func Apply(ctx context.Context, opts WinOpts) error
- func CleanupQosPolicies()
- func Revert(ctx context.Context, opts WinOpts) error
- type BlackholeOpts
- type CorruptPackagesOpts
- type DelayOpts
- type Direction
- type Family
- type Filter
- type LimitBandwidthOpts
- type Mode
- type PackageLossOpts
- type WinOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModeAdd = akn.ModeAdd ModeDelete = akn.ModeDelete )
View Source
var ( FamilyV4 = akn.FamilyV4 FamilyV6 = akn.FamilyV6 )
Functions ¶
func CleanupQosPolicies ¶
func CleanupQosPolicies()
Types ¶
type BlackholeOpts ¶
func (*BlackholeOpts) QoSCommands ¶
func (o *BlackholeOpts) QoSCommands(_ Mode) ([]string, error)
func (*BlackholeOpts) String ¶
func (o *BlackholeOpts) String() string
func (*BlackholeOpts) WinDivertCommands ¶
func (o *BlackholeOpts) WinDivertCommands(mode Mode) ([]string, error)
type CorruptPackagesOpts ¶
func (*CorruptPackagesOpts) QoSCommands ¶
func (o *CorruptPackagesOpts) QoSCommands(_ Mode) ([]string, error)
func (*CorruptPackagesOpts) String ¶
func (o *CorruptPackagesOpts) String() string
func (*CorruptPackagesOpts) WinDivertCommands ¶
func (o *CorruptPackagesOpts) WinDivertCommands(mode Mode) ([]string, error)
type DelayOpts ¶
type LimitBandwidthOpts ¶
type LimitBandwidthOpts struct {
Bandwidth string
IncludeCidrs []net.IPNet
PortRange network.PortRange
}
func (*LimitBandwidthOpts) QoSCommands ¶
func (o *LimitBandwidthOpts) QoSCommands(mode Mode) ([]string, error)
func (*LimitBandwidthOpts) String ¶
func (o *LimitBandwidthOpts) String() string
func (*LimitBandwidthOpts) WinDivertCommands ¶
func (o *LimitBandwidthOpts) WinDivertCommands(_ Mode) ([]string, error)
type PackageLossOpts ¶
type PackageLossOpts struct {
Filter
Loss uint
Duration time.Duration
// contains filtered or unexported fields
}
func (*PackageLossOpts) QoSCommands ¶
func (o *PackageLossOpts) QoSCommands(_ Mode) ([]string, error)
func (*PackageLossOpts) String ¶
func (o *PackageLossOpts) String() string
func (*PackageLossOpts) WinDivertCommands ¶
func (o *PackageLossOpts) WinDivertCommands(mode Mode) ([]string, error)
Click to show internal directories.
Click to hide internal directories.