mocks

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	mock.Mock
}

Actuator is an autogenerated mock type for the Actuator type

func NewActuator

func NewActuator(t mockConstructorTestingTNewActuator) *Actuator

NewActuator creates a new instance of Actuator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Actuator) Actuate

func (_m *Actuator) Actuate(objects *tc.Objects) error

Actuate provides a mock function with given fields: objects

type Generator

type Generator struct {
	mock.Mock
}

Generator is an autogenerated mock type for the Generator type

func NewTCGenerator

func NewTCGenerator(t mockConstructorTestingTNewTCGenerator) *Generator

NewTCGenerator creates a new instance of Generator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Generator) GenerateFromPolicyRuleSet

func (_m *Generator) GenerateFromPolicyRuleSet(ruleSet policyrules.PolicyRuleSet) (*tc.Objects, error)

GenerateFromPolicyRuleSet provides a mock function with given fields: ruleSet

type TC

type TC struct {
	mock.Mock
}

TC is an autogenerated mock type for the TC type

func NewTC

func NewTC(t mockConstructorTestingTNewTC) *TC

NewTC creates a new instance of TC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TC) ChainAdd

func (_m *TC) ChainAdd(qdisc types.QDisc, chain types.Chain) error

ChainAdd provides a mock function with given fields: qdisc, chain

func (*TC) ChainDel

func (_m *TC) ChainDel(qdisc types.QDisc, chain types.Chain) error

ChainDel provides a mock function with given fields: qdisc, chain

func (*TC) ChainList

func (_m *TC) ChainList(qdisc types.QDisc) ([]types.Chain, error)

ChainList provides a mock function with given fields: qdisc

func (*TC) FilterAdd

func (_m *TC) FilterAdd(qdisc types.QDisc, filter types.Filter) error

FilterAdd provides a mock function with given fields: qdisc, filter

func (*TC) FilterDel

func (_m *TC) FilterDel(qdisc types.QDisc, filterAttr *types.FilterAttrs) error

FilterDel provides a mock function with given fields: qdisc, filterAttr

func (*TC) FilterList

func (_m *TC) FilterList(qdisc types.QDisc) ([]types.Filter, error)

FilterList provides a mock function with given fields: qdisc

func (*TC) QDiscAdd

func (_m *TC) QDiscAdd(qdisc types.QDisc) error

QDiscAdd provides a mock function with given fields: qdisc

func (*TC) QDiscDel

func (_m *TC) QDiscDel(qdisc types.QDisc) error

QDiscDel provides a mock function with given fields: qdisc

func (*TC) QDiscList

func (_m *TC) QDiscList() ([]types.QDisc, error)

QDiscList provides a mock function with given fields:

Jump to

Keyboard shortcuts

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