Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IN_RATE_PATTERN = regexp.MustCompile(`qdisc tbf [0-9a-f]+: root refcnt \d+ rate (\d+)([KMG]?)bit burst (\d+)([KMG]?)b`)
View Source
var OUT_RATE_PATTERN = regexp.MustCompile(`police 0x[0-9a-f]+ rate (\d+)([KMG]?)bit burst (\d+)([KMG]?)b`)
Functions ¶
This section is empty.
Types ¶
type BandwidthManager ¶
type BandwidthManager interface { SetLimits(lager.Logger, garden.BandwidthLimits) error GetLimits(lager.Logger) (garden.ContainerBandwidthStat, error) }
type ContainerBandwidthManager ¶
type ContainerBandwidthManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(containerPath, containerID string, runner command_runner.CommandRunner) *ContainerBandwidthManager
func (*ContainerBandwidthManager) GetLimits ¶
func (m *ContainerBandwidthManager) GetLimits(logger lager.Logger) (garden.ContainerBandwidthStat, error)
func (*ContainerBandwidthManager) SetLimits ¶
func (m *ContainerBandwidthManager) SetLimits( logger lager.Logger, limits garden.BandwidthLimits, ) error
Click to show internal directories.
Click to hide internal directories.