Documentation ¶
Index ¶
- type Factory
- func (_m *Factory) AssignNIPv4(eniID string, count int, mac string) ([]netip.Addr, error)
- func (_m *Factory) AssignNIPv6(eniID string, count int, mac string) ([]netip.Addr, error)
- func (_m *Factory) CreateNetworkInterface(ipv4 int, ipv6 int, eniType string) (*daemon.ENI, []netip.Addr, []netip.Addr, error)
- func (_m *Factory) DeleteNetworkInterface(eniID string) error
- func (_m *Factory) GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)
- func (_m *Factory) LoadNetworkInterface(mac string) ([]netip.Addr, []netip.Addr, error)
- func (_m *Factory) UnAssignNIPv4(eniID string, ips []netip.Addr, mac string) error
- func (_m *Factory) UnAssignNIPv6(eniID string, ips []netip.Addr, mac string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory is an autogenerated mock type for the Factory type
func NewFactory ¶
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 ¶
AssignNIPv4 provides a mock function with given fields: eniID, count, mac
func (*Factory) AssignNIPv6 ¶
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 ¶
DeleteNetworkInterface provides a mock function with given fields: eniID
func (*Factory) GetAttachedNetworkInterface ¶
GetAttachedNetworkInterface provides a mock function with given fields: preferTrunkID
func (*Factory) LoadNetworkInterface ¶
LoadNetworkInterface provides a mock function with given fields: mac
func (*Factory) UnAssignNIPv4 ¶
UnAssignNIPv4 provides a mock function with given fields: eniID, ips, mac