terwayqos

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BitsToBytes

func BitsToBytes[T uint64 | float64 | int](bits T) T

Types

type NetworkQoS

type NetworkQoS struct {
	// IngressLimit and EgressLimit is the bandwidth in bps
	// are used to set bandwidth for Pod. The unit is bps.
	// For example, 10M means 10 megabits per second.
	IngressLimit string `json:"ingressLimit"`
	EgressLimit  string `json:"egressLimit"`
}

type Node

type Node struct {
	HwTxBpsMax uint64 `text:"hw_tx_bps_max"`
	HwRxBpsMax uint64 `text:"hw_rx_bps_max"`
	L1TxBpsMin uint64 `text:"offline_l1_tx_bps_min"`
	L1TxBpsMax uint64 `text:"offline_l1_tx_bps_max"`
	L1RxBpsMin uint64 `text:"offline_l1_rx_bps_min"`
	L1RxBpsMax uint64 `text:"offline_l1_rx_bps_max"`
	L2TxBpsMin uint64 `text:"offline_l2_tx_bps_min"`
	L2TxBpsMax uint64 `text:"offline_l2_tx_bps_max"`
	L2RxBpsMin uint64 `text:"offline_l2_rx_bps_min"`
	L2RxBpsMax uint64 `text:"offline_l2_rx_bps_max"`
}

func (Node) MarshalText

func (n Node) MarshalText() (text []byte, err error)

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func Object

func Object() *Plugin

func (*Plugin) Register

func (p *Plugin) Register(op hooks.Options)

type Pod

type Pod struct {
	PodName      string    `json:"podName"`
	PodNamespace string    `json:"podNamespace"`
	PodUID       string    `json:"podUID"`
	Prio         int       `json:"prio"`
	CgroupDir    string    `json:"cgroupDir"`
	QoSConfig    QoSConfig `json:"qosConfig"`
}

type QoS

type QoS struct {
	IngressRequestBps uint64 `json:"ingressRequestBps"`
	IngressLimitBps   uint64 `json:"ingressLimitBps"`
	EgressRequestBps  uint64 `json:"egressRequestBps"`
	EgressLimitBps    uint64 `json:"egressLimitBps"`
}

type QoSConfig

type QoSConfig struct {
	IngressBandwidth uint64 `json:"ingressBandwidth"`
	EgressBandwidth  uint64 `json:"egressBandwidth"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL