networkqos

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNetworkQoSStatus

func CheckNetworkQoSStatus() error

func GetFlavorQuotaMinRate

func GetFlavorQuotaMinRate(node *corev1.Node) (int64, error)

func GetOfflineHighBandwidthPercent

func GetOfflineHighBandwidthPercent(serverRateQuota int64, qosConf *api.NetworkQos) (string, error)

func GetOfflineLowBandwidthPercent

func GetOfflineLowBandwidthPercent(serverRateQuota int64, qosConf *api.NetworkQos) (string, error)

func GetOnlineBandwidthWatermark

func GetOnlineBandwidthWatermark(serverRateQuota int64, qosConf *api.NetworkQos) (string, error)

func InstallNetworkQoS

func InstallNetworkQoS() error

Types

type NetworkQoSManager

type NetworkQoSManager interface {
	Init() error
	HealthCheck() error
	EnableNetworkQoS(qosConf *api.NetworkQos) error
	DisableNetworkQoS() error
}

func GetNetworkQoSManager

func GetNetworkQoSManager(config *config.Configuration) NetworkQoSManager

func NewNetworkQoSManager

func NewNetworkQoSManager(config *config.Configuration) NetworkQoSManager

type NetworkQoSManagerImp

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

func (*NetworkQoSManagerImp) DisableNetworkQoS

func (m *NetworkQoSManagerImp) DisableNetworkQoS() error

func (*NetworkQoSManagerImp) EnableNetworkQoS

func (m *NetworkQoSManagerImp) EnableNetworkQoS(qosConf *api.NetworkQos) error

func (*NetworkQoSManagerImp) GetBandwidthConfigs

func (m *NetworkQoSManagerImp) GetBandwidthConfigs(qosConf *api.NetworkQos) (onlineBandwidthWatermark, offlineLowBandwidth, offlineHighBandwidth string, err error)

func (*NetworkQoSManagerImp) HealthCheck

func (m *NetworkQoSManagerImp) HealthCheck() error

func (*NetworkQoSManagerImp) Init

func (m *NetworkQoSManagerImp) Init() error

Directories

Path Synopsis
cni
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
tc
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ebpf/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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