Documentation ¶
Index ¶
Constants ¶
View Source
const ( AnnotaionPodIngressBandwidth = "kubernetes.io/ingress-bandwidth" AnnotaionPodEgressBandwidth = "kubernetes.io/egress-bandwidth" AnnotaionPodBindwidthMode = "kubernetes.io/bindwidth-mode" )
View Source
const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE )
bandwidth limit unit
Variables ¶
This section is empty.
Functions ¶
func GetPodBandwidth ¶
func InitBandwidthManager ¶
func InitBandwidthManager()
func ProbeBandwidthManager ¶
func ProbeBandwidthManager()
Types ¶
type BandwidthManager ¶
type BandwidthManager struct {
Mode ccev2.BindwidthMode
}
var (
GlobalManager *BandwidthManager
)
func (*BandwidthManager) AcceptType ¶
func (*BandwidthManager) AcceptType() event.EndpointProbeEventType
AcceptType implements event.EndpointProbeEventHandler.
func (*BandwidthManager) Handle ¶
func (manager *BandwidthManager) Handle(event *event.EndpointProbeEvent) (*ccev2.ExtFeatureStatus, error)
Handle implements event.EndpointProbeEventHandler.
Click to show internal directories.
Click to hide internal directories.