Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNIPluginLibOps ¶
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 ¶
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 ¶
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.