mocks

package
v0.0.0-...-18c0211 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 CNIPluginLibOps

type CNIPluginLibOps struct {
	mock.Mock
}

CNIPluginLibOps is an autogenerated mock type for the CNIPluginLibOps type

func NewCNIPluginLibOps

func NewCNIPluginLibOps(t interface {
	mock.TestingT
	Cleanup(func())
}) *CNIPluginLibOps

NewCNIPluginLibOps creates a new instance of CNIPluginLibOps. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CNIPluginLibOps) AddRoute

func (_m *CNIPluginLibOps) AddRoute(ipn *net.IPNet, gw net.IP, dev netlink.Link, mtu int) error

AddRoute provides a mock function with given fields: ipn, gw, dev, mtu

func (*CNIPluginLibOps) SetupVeth

func (_m *CNIPluginLibOps) SetupVeth(contVethName string, hostVethName string, mtu int, contVethMac string, hostNS ns.NetNS) (net.Interface, net.Interface, error)

SetupVeth provides a mock function with given fields: contVethName, hostVethName, mtu, contVethMac, hostNS

type NetNS

type NetNS struct {
	mock.Mock
}

NetNS is an autogenerated mock type for the NetNS type

func NewNetNS

func NewNetNS(t mockConstructorTestingTNewNetNS) *NetNS

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

func (*NetNS) Close

func (_m *NetNS) Close() error

Close provides a mock function with given fields:

func (*NetNS) Do

func (_m *NetNS) Do(toRun func(ns.NetNS) error) error

Do provides a mock function with given fields: toRun

func (*NetNS) Fd

func (_m *NetNS) Fd() uintptr

Fd provides a mock function with given fields:

func (*NetNS) Path

func (_m *NetNS) Path() string

Path provides a mock function with given fields:

func (*NetNS) Set

func (_m *NetNS) Set() error

Set 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