mock_netlink

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_netlink is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

MockLink is a mock of Link interface.

func NewMockLink(ctrl *gomock.Controller) *MockLink

NewMockLink creates a new mock instance.

func (*MockLink) Attrs

func (m *MockLink) Attrs() *netlink0.LinkAttrs

Attrs mocks base method.

func (*MockLink) EXPECT

func (m *MockLink) EXPECT() *MockLinkMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLink) Type

func (m *MockLink) Type() string

Type mocks base method.

type MockLinkMockRecorder

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

MockLinkMockRecorder is the mock recorder for MockLink.

func (*MockLinkMockRecorder) Attrs

func (mr *MockLinkMockRecorder) Attrs() *gomock.Call

Attrs indicates an expected call of Attrs.

func (*MockLinkMockRecorder) Type

func (mr *MockLinkMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

type MockNetlinkLib

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

MockNetlinkLib is a mock of NetlinkLib interface.

func NewMockNetlinkLib

func NewMockNetlinkLib(ctrl *gomock.Controller) *MockNetlinkLib

NewMockNetlinkLib creates a new mock instance.

func (*MockNetlinkLib) AddrAdd

func (m *MockNetlinkLib) AddrAdd(link netlink.Link, ip string) error

AddrAdd mocks base method.

func (*MockNetlinkLib) AddrDel

func (m *MockNetlinkLib) AddrDel(link netlink.Link, ip string) error

AddrDel mocks base method.

func (*MockNetlinkLib) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNetlinkLib) GetRouteSrc

func (m *MockNetlinkLib) GetRouteSrc(dst string) (string, error)

GetRouteSrc mocks base method.

func (*MockNetlinkLib) IPv4Addresses

func (m *MockNetlinkLib) IPv4Addresses(link netlink.Link) ([]netlink0.Addr, error)

IPv4Addresses mocks base method.

func (*MockNetlinkLib) IsLinkAdminStateUp

func (m *MockNetlinkLib) IsLinkAdminStateUp(link netlink.Link) bool

IsLinkAdminStateUp mocks base method.

func (*MockNetlinkLib) LinkByName

func (m *MockNetlinkLib) LinkByName(name string) (netlink.Link, error)

LinkByName mocks base method.

func (*MockNetlinkLib) LinkSetUp

func (m *MockNetlinkLib) LinkSetUp(link netlink.Link) error

LinkSetUp mocks base method.

func (*MockNetlinkLib) NeighList

func (m *MockNetlinkLib) NeighList(linkIndex int) ([]netlink0.Neigh, error)

NeighList mocks base method.

type MockNetlinkLibMockRecorder

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

MockNetlinkLibMockRecorder is the mock recorder for MockNetlinkLib.

func (*MockNetlinkLibMockRecorder) AddrAdd

func (mr *MockNetlinkLibMockRecorder) AddrAdd(link, ip interface{}) *gomock.Call

AddrAdd indicates an expected call of AddrAdd.

func (*MockNetlinkLibMockRecorder) AddrDel

func (mr *MockNetlinkLibMockRecorder) AddrDel(link, ip interface{}) *gomock.Call

AddrDel indicates an expected call of AddrDel.

func (*MockNetlinkLibMockRecorder) GetRouteSrc

func (mr *MockNetlinkLibMockRecorder) GetRouteSrc(dst interface{}) *gomock.Call

GetRouteSrc indicates an expected call of GetRouteSrc.

func (*MockNetlinkLibMockRecorder) IPv4Addresses

func (mr *MockNetlinkLibMockRecorder) IPv4Addresses(link interface{}) *gomock.Call

IPv4Addresses indicates an expected call of IPv4Addresses.

func (*MockNetlinkLibMockRecorder) IsLinkAdminStateUp

func (mr *MockNetlinkLibMockRecorder) IsLinkAdminStateUp(link interface{}) *gomock.Call

IsLinkAdminStateUp indicates an expected call of IsLinkAdminStateUp.

func (*MockNetlinkLibMockRecorder) LinkByName

func (mr *MockNetlinkLibMockRecorder) LinkByName(name interface{}) *gomock.Call

LinkByName indicates an expected call of LinkByName.

func (*MockNetlinkLibMockRecorder) LinkSetUp

func (mr *MockNetlinkLibMockRecorder) LinkSetUp(link interface{}) *gomock.Call

LinkSetUp indicates an expected call of LinkSetUp.

func (*MockNetlinkLibMockRecorder) NeighList

func (mr *MockNetlinkLibMockRecorder) NeighList(linkIndex interface{}) *gomock.Call

NeighList indicates an expected call of NeighList.

Jump to

Keyboard shortcuts

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