mocks

package
v1.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*Factory) AssignNIPv4

func (_m *Factory) AssignNIPv4(eniID string, count int, mac string) ([]netip.Addr, error)

AssignNIPv4 provides a mock function with given fields: eniID, count, mac

func (*Factory) AssignNIPv6

func (_m *Factory) AssignNIPv6(eniID string, count int, mac string) ([]netip.Addr, error)

AssignNIPv6 provides a mock function with given fields: eniID, count, mac

func (*Factory) CreateNetworkInterface

func (_m *Factory) CreateNetworkInterface(ipv4 int, ipv6 int, eniType string) (*daemon.ENI, []netip.Addr, []netip.Addr, error)

CreateNetworkInterface provides a mock function with given fields: ipv4, ipv6, eniType

func (*Factory) DeleteNetworkInterface

func (_m *Factory) DeleteNetworkInterface(eniID string) error

DeleteNetworkInterface provides a mock function with given fields: eniID

func (*Factory) GetAttachedNetworkInterface

func (_m *Factory) GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)

GetAttachedNetworkInterface provides a mock function with given fields: preferTrunkID

func (*Factory) LoadNetworkInterface

func (_m *Factory) LoadNetworkInterface(mac string) ([]netip.Addr, []netip.Addr, error)

LoadNetworkInterface provides a mock function with given fields: mac

func (*Factory) UnAssignNIPv4

func (_m *Factory) UnAssignNIPv4(eniID string, ips []netip.Addr, mac string) error

UnAssignNIPv4 provides a mock function with given fields: eniID, ips, mac

func (*Factory) UnAssignNIPv6

func (_m *Factory) UnAssignNIPv6(eniID string, ips []netip.Addr, mac string) error

UnAssignNIPv6 provides a mock function with given fields: eniID, ips, mac

Jump to

Keyboard shortcuts

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