mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FakeNic = []nic.NetworkInterfaceCard{
	{
		Id:          "fakeName",
		Description: "fakeDescription",
		Addresses: []string{
			addr1.String(),
		},
	},
}

Functions

This section is empty.

Types

type MockNicService

type MockNicService struct {
	mock.Mock
	FakeNics []nic.NetworkInterfaceCard
}

func (*MockNicService) GetAllNics

func (m *MockNicService) GetAllNics() ([]nic.NetworkInterfaceCard, error)

func (*MockNicService) GetNicByName

func (m *MockNicService) GetNicByName(interfaceId string) (nic.NetworkInterfaceCard, error)

func (*MockNicService) InitNics

func (m *MockNicService) InitNics() error

Jump to

Keyboard shortcuts

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