driver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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 TcCmdLineImpl

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

TcCmdLineImpl is a concrete implementation of TC interface utilizing TC command line

func NewTcCmdLineImpl

func NewTcCmdLineImpl(dev string, log klog.Logger, executor exec.Interface) *TcCmdLineImpl

NewTcCmdLineImpl creates a new instance of TcCmdLineImpl

func (*TcCmdLineImpl) ChainAdd

func (t *TcCmdLineImpl) ChainAdd(qdisc types.QDisc, chain types.Chain) error

ChainAdd implements TC interface

func (*TcCmdLineImpl) ChainDel

func (t *TcCmdLineImpl) ChainDel(qdisc types.QDisc, chain types.Chain) error

ChainDel implements TC interface

func (*TcCmdLineImpl) ChainList

func (t *TcCmdLineImpl) ChainList(qdisc types.QDisc) ([]types.Chain, error)

ChainList implements TC interface

func (*TcCmdLineImpl) FilterAdd

func (t *TcCmdLineImpl) FilterAdd(qdisc types.QDisc, filter types.Filter) error

FilterAdd implements TC interface

func (*TcCmdLineImpl) FilterDel

func (t *TcCmdLineImpl) FilterDel(qdisc types.QDisc, filterAttr *types.FilterAttrs) error

FilterDel implements TC interface

func (*TcCmdLineImpl) FilterList

func (t *TcCmdLineImpl) FilterList(qdisc types.QDisc) ([]types.Filter, error)

FilterList implements TC interface

func (*TcCmdLineImpl) QDiscAdd

func (t *TcCmdLineImpl) QDiscAdd(qdisc types.QDisc) error

QDiscAdd implements TC interface

func (*TcCmdLineImpl) QDiscDel

func (t *TcCmdLineImpl) QDiscDel(qdisc types.QDisc) error

QDiscDel implements TC interface

func (*TcCmdLineImpl) QDiscList

func (t *TcCmdLineImpl) QDiscList() ([]types.QDisc, error)

QDiscList implements TC interface

Jump to

Keyboard shortcuts

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