Documentation ¶
Index ¶
- type ENIInfoGetter
- type ENIMetadata
- func (e *ENIMetadata) GetENIByMac(mac string) (*daemon.ENI, error)
- func (e *ENIMetadata) GetENIPrivateAddressesByMACv2(mac string) ([]netip.Addr, error)
- func (e *ENIMetadata) GetENIPrivateIPv6AddressesByMACv2(mac string) ([]netip.Addr, error)
- func (e *ENIMetadata) GetENIs(containsMainENI bool) ([]*daemon.ENI, error)
- func (e *ENIMetadata) GetSecondaryENIMACs() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ENIInfoGetter ¶
type ENIInfoGetter interface { GetENIByMac(mac string) (*daemon.ENI, error) GetENIPrivateAddressesByMACv2(mac string) ([]netip.Addr, error) GetENIPrivateIPv6AddressesByMACv2(mac string) ([]netip.Addr, error) GetENIs(containsMainENI bool) ([]*daemon.ENI, error) GetSecondaryENIMACs() ([]string, error) }
ENIInfoGetter interface to get eni information
type ENIMetadata ¶
type ENIMetadata struct {
// contains filtered or unexported fields
}
func NewENIMetadata ¶
func NewENIMetadata(ipv4, ipv6 bool) *ENIMetadata
func (*ENIMetadata) GetENIByMac ¶
func (e *ENIMetadata) GetENIByMac(mac string) (*daemon.ENI, error)
func (*ENIMetadata) GetENIPrivateAddressesByMACv2 ¶
func (e *ENIMetadata) GetENIPrivateAddressesByMACv2(mac string) ([]netip.Addr, error)
func (*ENIMetadata) GetENIPrivateIPv6AddressesByMACv2 ¶
func (e *ENIMetadata) GetENIPrivateIPv6AddressesByMACv2(mac string) ([]netip.Addr, error)
func (*ENIMetadata) GetENIs ¶
func (e *ENIMetadata) GetENIs(containsMainENI bool) ([]*daemon.ENI, error)
func (*ENIMetadata) GetSecondaryENIMACs ¶
func (e *ENIMetadata) GetSecondaryENIMACs() ([]string, error)
GetSecondaryENIMACs return secondary ENI macs
Click to show internal directories.
Click to hide internal directories.