tc

package
v0.0.0-...-987032a Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shaper

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

func NewTcShaper

func NewTcShaper(qos v1alpha1.SQLTrafficQoS, totalBandWidth string) (*Shaper, error)

func (*Shaper) AddClasses

func (t *Shaper) AddClasses() error

func (*Shaper) AddFilter

func (t *Shaper) AddFilter() error

AddFilter add bpf filter, default obj name is "tc.o", reqired `addClsAct`

func (*Shaper) ListClass

func (t *Shaper) ListClass() ([]netlink.Class, error)

ListClass list class

Jump to

Keyboard shortcuts

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