eni

package
v1.8.4 Latest Latest
Warning

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

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

Documentation

Index

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

Jump to

Keyboard shortcuts

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