Documentation
¶
Index ¶
- type ENI
- type FakeFactory
- func (f *FakeFactory) AssignNIPv4(eniID string, count int, mac string) ([]netip.Addr, error)
- func (f *FakeFactory) AssignNIPv6(eniID string, count int, mac string) ([]netip.Addr, error)
- func (f *FakeFactory) CreateNetworkInterface(ipv4, ipv6 int, eniType string) (*daemon.ENI, []netip.Addr, []netip.Addr, error)
- func (f *FakeFactory) DeleteNetworkInterface(eniID string) error
- func (f *FakeFactory) GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)
- func (f *FakeFactory) LoadNetworkInterface(mac string) ([]netip.Addr, []netip.Addr, error)
- func (f *FakeFactory) UnAssignNIPv4(eniID string, ips []netip.Addr, mac string) error
- func (f *FakeFactory) 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 FakeFactory ¶
type FakeFactory struct {
sync.Mutex
ENIS map[string]*ENI
// contains filtered or unexported fields
}
func NewFakeFactory ¶
func NewFakeFactory() *FakeFactory
func (*FakeFactory) AssignNIPv4 ¶
func (*FakeFactory) AssignNIPv6 ¶
func (*FakeFactory) CreateNetworkInterface ¶
func (*FakeFactory) DeleteNetworkInterface ¶
func (f *FakeFactory) DeleteNetworkInterface(eniID string) error
func (*FakeFactory) GetAttachedNetworkInterface ¶
func (f *FakeFactory) GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)
func (*FakeFactory) LoadNetworkInterface ¶
func (*FakeFactory) UnAssignNIPv4 ¶
func (*FakeFactory) UnAssignNIPv6 ¶
Click to show internal directories.
Click to hide internal directories.