Versions in this module Expand all Collapse all v0 v0.1.0 Nov 21, 2018 Changes in this version + const DIRECTION_EGRESS + const DIRECTION_INGRESS + var BANDWIDTH_REGEXP *regexp.Regexp + func Addrule(rule *types.TrafficShappingRule, tc TC) + func BuildRule(podIP net.IP, id string, bandwidth string) *types.TrafficShappingRule + func Delrule(rule *types.TrafficShappingRule, tc TC) + func GenerateRuleID(direction, podID string) string + type NullTC struct + func (n *NullTC) AddRule(rule *types.TrafficShappingRule) error + func (n *NullTC) DeleteRule(rule *types.TrafficShappingRule) error + type System struct + Direction string + Interface string + func (s *System) AddRule(rule *types.TrafficShappingRule) error + func (s *System) DeleteRule(rule *types.TrafficShappingRule) error + type TC interface + AddRule func(rule *types.TrafficShappingRule) error + DeleteRule func(rule *types.TrafficShappingRule) error + func NewNull() TC + func NewSystem(iface string, direction string) (TC, error)