interfaces

package
v0.0.0-...-8b14c8e Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package interfaces is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

MockNetlink is a mock of Netlink interface.

func NewMockNetlink(ctrl *gomock.Controller) *MockNetlink

NewMockNetlink creates a new mock instance.

func (*MockNetlink) EXPECT

func (m *MockNetlink) EXPECT() *MockNetlinkMockRecorder

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

func (*MockNetlink) LinkByIndex

func (m *MockNetlink) LinkByIndex(arg0 int) (netlink.Link, error)

LinkByIndex mocks base method.

func (*MockNetlink) LinkByName

func (m *MockNetlink) LinkByName(arg0 string) (netlink.Link, error)

LinkByName mocks base method.

func (*MockNetlink) LinkSetVfState

func (m *MockNetlink) LinkSetVfState(arg0 netlink.Link, arg1 int, arg2 uint32) error

LinkSetVfState mocks base method.

type MockNetlinkMockRecorder

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

MockNetlinkMockRecorder is the mock recorder for MockNetlink.

func (*MockNetlinkMockRecorder) LinkByIndex

func (mr *MockNetlinkMockRecorder) LinkByIndex(arg0 any) *gomock.Call

LinkByIndex indicates an expected call of LinkByIndex.

func (*MockNetlinkMockRecorder) LinkByName

func (mr *MockNetlinkMockRecorder) LinkByName(arg0 any) *gomock.Call

LinkByName indicates an expected call of LinkByName.

func (*MockNetlinkMockRecorder) LinkSetVfState

func (mr *MockNetlinkMockRecorder) LinkSetVfState(arg0, arg1, arg2 any) *gomock.Call

LinkSetVfState indicates an expected call of LinkSetVfState.

type Netlink interface {
	LinkByIndex(int) (netlink.Link, error)
	LinkByName(string) (netlink.Link, error)
	LinkSetVfState(netlink.Link, int, uint32) error
}

Jump to

Keyboard shortcuts

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